CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   CFX (https://www.cfd-online.com/Forums/cfx/)
-   -   User Fortran with CFX 14.5.7 on winnt_amd64 (https://www.cfd-online.com/Forums/cfx/127434-user-fortran-cfx-14-5-7-winnt_amd64.html)

ves January 17, 2014 14:30

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?

HLo January 18, 2014 10:35

ifort vs. mingw
 
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

CFXNewbie December 13, 2015 08:26

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


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