CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

User Fortran with CFX 14.5.7 on winnt_amd64

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 17, 2014, 14:30
Default
  #21
ves
Member
 
Veskov Eugene
Join Date: Feb 2011
Posts: 31
Rep Power: 15
ves is on a distinguished road
I am add intel compiler paths to PATH variable in CFX console, path

C:\Program Files (x86)\Intel\ComposerXE-2011\compiler\lib\ia32; C:\Program Files (x86)\Intel\ComposerXE-2011\compiler\lib\intel64;

also included (this paths have ifconsol.lib)

I have linker error:
************************************************** *****
d:\ans_work\cfx\example19_files\user_files>Tstat.b at

d:\ans_work\cfx\example19_files\user_files>cd /d c:\Program Files\ANSYS Inc\v145
\CFX\bin\

c:\Program Files\ANSYS Inc\v145\CFX\bin>cfx5mkext -name TStat_Control -dest d:\
ans_work\cfx\example19_files\user_files\ d:\ans_work\cfx\example19_files\user_
files\TStat_Control.F
C:\Program Files (x86)\Intel\ComposerXE-2011\bin\intel64\ifort -Qvec- -iface:cvf
-MD -fpp -include:"c:\Program Files\ANSYS Inc\v145\CFX\include" -object:winnt-a
md64\\TStat_Control.o -c d:\ans_work\cfx\example19_files\user_files\TStat_C ontro
l.F
Intel(R) Visual Fortran Intel(R) 64 Compiler XE for applications running on Inte
l(R) 64, Version 12.0.0.104 Build 20101006
Copyright (C) 1985-2010 Intel Corporation. All rights reserved.

C:\Program Files (x86)\Intel\ComposerXE-2011\bin\intel64\ifort -threads -dll -ex
e:d:\ans_work\cfx\example19_files\user_files\\winn t-amd64\\TStat_Control.dll win
nt-amd64\\TStat_Control.o c:\Program Files\ANSYS Inc\v145\CFX\lib\winnt-amd64\so
lver-pcmpi.lib
Intel(R) Visual Fortran Intel(R) 64 Compiler XE for applications running on Inte
l(R) 64, Version 12.0.0.104 Build 20101006
Copyright (C) 1985-2010 Intel Corporation. All rights reserved.
ifort: command line warning #10161: unrecognized source type 'winnt-amd64\\TStat
_Control.o'; object file assumed

Microsoft (R) Incremental Linker Version 10.00.30319.01
Copyright (C) Microsoft Corporation. All rights reserved.

-out:d:\ans_work\cfx\example19_files\user_files\\wi nnt-amd64\\TStat_Control.dll

-dll
-implib:d:\ans_work\cfx\example19_files\user_files\ \winnt-amd64\\TStat_Control.l
ib
winnt-amd64\\TStat_Control.o
"c:\Program Files\ANSYS Inc\v145\CFX\lib\winnt-amd64\solver-pcmpi.lib"
LINK : fatal error LNK1104: cannot open file 'ifconsol.lib'
An error has occurred in cfx5mkext:

C:\Program Files (x86)\Intel\ComposerXE-2011\bin\intel64\ifort exited with
return code 80.
************************************************** ******
what s wrong?
ves is offline   Reply With Quote

Old   January 18, 2014, 10:35
Default ifort vs. mingw
  #22
HLo
New Member
 
HLo
Join Date: Dec 2013
Location: Germany
Posts: 26
Rep Power: 12
HLo is on a distinguished road
Hello ves,
as njdyck said, this thread is about the Mingw compiler toolchain. Maybe you may find better advice somewhere else in this forum.
Nevertheless I'll do a guess about your problem:
In most cases compiling needs a lot of prerequisites, often the required paths have to be checked for presence and for correct order. Sometimes there are additional environment variables to be set, e.g. LD_LIBRARY_PATH or similar. I don't know the spec. of Intel's ifort, somewhere in the manual should be a hint.
Good luck
HLo
HLo is offline   Reply With Quote

Old   December 13, 2015, 08:26
Default
  #23
New Member
 
Emil Günther
Join Date: Nov 2015
Posts: 18
Rep Power: 10
CFXNewbie is on a distinguished road
Hello everybody!

I have to do a fortran subroutine for the first time.

I've tried to compile one of the examples from the ansys documentation chapter 18, but wasn't succesfull so far.

My problem: The examples from the documentation are written in Fortran77, but at university i can only use a Fortran90 compiler (Visual Studio).

I tried to compile some examples on my computer at home using the free Fortran77 compiler Force, but recieved many errors. Maybe because ANSYS is not installed on my computer?

Can anyone help me?

Did anyone some subroutines using Fortran 90 and can give an example?


Thanks a lot!
Emil
CFXNewbie is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to set environmental variables of Intel Fortran +CFX? Christine MO CFX 0 September 23, 2011 11:11
Context of user fortran functions Bloshchitsyn Vladimir CFX 0 October 17, 2007 06:28
CFX arc-modeling, User Fortran, CEL.... Bloshchitsyn Vladimir CFX 0 October 15, 2007 06:17
how to use USER FORTRAN with CFX cfd_99 Main CFD Forum 1 June 4, 1999 05:42
CFX User Subroutine Archive David Creech Main CFD Forum 0 March 17, 1999 12:41


All times are GMT -4. The time now is 01:47.