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

Fortran Compiler-CFX12.1

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes
  • 3 Post By Araz
  • 1 Post By Araz

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 10, 2011, 05:08
Question Fortran Compiler-CFX12.1
  #1
Member
 
Araz
Join Date: Feb 2011
Location: Canada
Posts: 32
Rep Power: 15
Araz is on a distinguished road
Hi,

I have seen many posts about my problem but I'm still very confused, I hope you guide me in this regard:

I want to redesign the geometry of a compressor blade using CFX 12.1. I have my Fortran code which accounts for the movement of the blade wall.

According to cfx manual and tutorial19 (Air Conditioning Simulation), in order to use my code + cfx, I will need to compile my Fortran code using Intel Visual Fortran Compiler.

CFX manual says that: "The Intel Fortran 10.1 IA32 compiler is the recommended and supported compiler for ANSYS CFX 12.0".

My machine is Windows XP 32 bit.
and I have trial versions of Intel® Visual Fortran Composer XE 2011 and Microsoft Visual Studio 2010.
I want to know whether CFX 12.1 support these softwares or I should only install the fortran compiler v10.1?
I have also "Microsoft Visual Studio .NET 2003" and "compaq visual fortran 6.6" installed on my os.

I will be grateful if someone tell me what is the best option for me
Thanks a lot
jiguozhao, amin_gls and hadifallah like this.
Araz is offline   Reply With Quote

Old   March 10, 2011, 05:17
Default
  #2
New Member
 
catherina
Join Date: May 2009
Posts: 7
Rep Power: 17
gypas is on a distinguished road
Hi,

In my experience, all compiler versions work, when home tonight will give you the particulars. What I found tricky when installing was setting the paths correct, you might need some manual tweaking, but otherwise you are good to go.
Best
Cat


Quote:
Originally Posted by Araz View Post
Hi,

I have seen many posts about my problem but I'm still very confused, I hope you guide me in this regard:

I want to redesign the geometry of a compressor blade using CFX 12.1. I have my Fortran code which accounts for the movement of the blade wall.

According to cfx manual and tutorial19 (Air Conditioning Simulation), in order to use my code + cfx, I will need to compile my Fortran code using Intel Visual Fortran Compiler.

CFX manual says that: "The Intel Fortran 10.1 IA32 compiler is the recommended and supported compiler for ANSYS CFX 12.0".

My machine is Windows XP 32 bit.
and I have trial versions of Intel® Visual Fortran Composer XE 2011 and Microsoft Visual Studio 2010.
I want to know whether CFX 12.1 support these softwares or I should only install the fortran compiler v10.1?
I have also "Microsoft Visual Studio .NET 2003" and "compaq visual fortran 6.6" installed on my os.

I will be grateful if someone tell me what is the best option for me
Thanks a lot
gypas is offline   Reply With Quote

Old   March 11, 2011, 00:08
Default
  #3
Member
 
Araz
Join Date: Feb 2011
Location: Canada
Posts: 32
Rep Power: 15
Araz is on a distinguished road
Hi Dear Catherina,
Thank you for your post,



I tried the trial versions and it worked,


I ran "ifortvars.bat" in cfx launcher command line and added the followings to environment variables:
include: C:\Program Files\Intel\ComposerXE-2011\compiler\include;C:\Program Files\Intel\ComposerXE-2011\compiler\include\ia32

lib: C:\Program Files\Intel\ComposerXE-2011\compiler\lib;C:\Program Files\Intel\ComposerXE-2011\compiler\lib\ia32

PATH: c:\ANSYS Inc\v121\CFX\bin;C:\Program Files\Intel\ComposerXE-2011\bin;C:\Program Files\Intel\ComposerXE-2011\bin\ia32;C:\Program Files\Intel\ComposerXE-2011\redist;C:\Program Files\Intel\ComposerXE-2011\redist\ia32;C:\Program Files\Intel\ComposerXE-2011\redist\ia32\compiler;C:\Program Files\Intel\ComposerXE-2011\redist\ia32\mkl;C:\Program Files\Intel\ComposerXE-2011\redist\ia32\mpirt

Now, I have two questions:
1- I didn't add any PATH from vs2010 to environment variables since it had already included the old versoin of my vs. However, before installing this new version (vs 2010)I wasn't able to install fortran compiler completely because it couldn't find a supported Microsoft development environment on my pc. so, I don't know which of them is integrated to fortran compiler now?
2- Is "using fortran compiler" the only way to import our own subroutines in cfx? I mean, is it possible to use another programming language like C++ or something else, or even insert our code by hand into cfx in order to get rid of need for fortran compiler?

Thanks a lot
xiaovsfeg likes this.
Araz is offline   Reply With Quote

Old   May 12, 2011, 07:47
Default
  #4
New Member
 
xiaofeng
Join Date: May 2011
Posts: 4
Rep Power: 15
xiaovsfeg is on a distinguished road
Dear Araz:

I install the same software as you, except I use the Windows7-32bit. As you say,"ran "ifortvars.bat" in cfx launcher command line".I run it ,but there will be some errors.Could you tell me the details,thanks a lot.My E-mail is xiaovsfeg@163.com
xiaovsfeg is offline   Reply With Quote

Old   May 12, 2011, 18:07
Default
  #5
Member
 
Araz
Join Date: Feb 2011
Location: Canada
Posts: 32
Rep Power: 15
Araz is on a distinguished road
Hi Xiaovsfeg,
In order to run the "ifortvars.bat", you should find its location under the composer installation directory, for my case it was located at:
c:\Program Files\Intel\ComposerXE-2011\bin\ifortvars.bat
just copy and paste the path in the launcher command line and remember to surround the command with quotes ("), i.e.:
"c:\Program Files\Intel\ComposerXE-2011\bin\ifortvars.bat"

visit the following link for more information and follow the instructions :

http://www.mail-archive.com/nmusers@.../msg02986.html

Regards,
Araz
Araz is offline   Reply With Quote

Old   May 13, 2011, 00:42
Default
  #6
New Member
 
xiaofeng
Join Date: May 2011
Posts: 4
Rep Power: 15
xiaovsfeg is on a distinguished road
Dear Araz:
1.Thanks for your reply.I run the "c:\ProgramFiles\Intel\ComposerXE-2011\bin\ifortvars.bat"in cfx launcher command line. It appears the follow situation,
I don’t know what that means? or you meet the some problems.
2.I added the include\ path \lib\to the environment variables by my computer- property- environment variables.
And run the :! system ("cfx5mkext TStat_Control.F") == 0 or die "cfx5mkext failed" by Command Editor in CFX-Pre.But the system appears
ERROR
CCL parser failed with message:
Perl Syntax errors detected:
syntax error at (eval 14) line 2, near ""cfx5mkext failed"
$cclmain:2"
The message “The compiler commamd ‘ifort’ could not be found.please ensure that the compiler is on your PATH and try again”
My question is what is the “ifort” and how to compile on the the ‘path’.
Thanks

Xiaofeng
Attached Images
File Type: jpg 01.jpg (60.6 KB, 182 views)
xiaovsfeg is offline   Reply With Quote

Old   May 13, 2011, 01:30
Default
  #7
Member
 
Araz
Join Date: Feb 2011
Location: Canada
Posts: 32
Rep Power: 15
Araz is on a distinguished road
The attachment shows that "ifortvars.bat" has been run.
But it is not enough for compiling a Fortran routine,
Check if you have put the following in the environment variable ?
PATH:"c:\ANSYS Inc\v121\CFX\bin"
be careful of the correct location of the "bin" file in your pc.
Araz is offline   Reply With Quote

Old   May 13, 2011, 06:52
Default
  #8
New Member
 
xiaofeng
Join Date: May 2011
Posts: 4
Rep Power: 15
xiaovsfeg is on a distinguished road
Dear Araz:
Thanks for your help ,I added the path:PATH:"c:\Program files\ANSYS Inc\v121\CFX\bin"in the environment variable.But the message as the following picture.
so I think it's compiling a Fortran routine.It can be some error I don't find.I think you can give me some Suggestions.Thaks a lot .
Attached Images
File Type: jpg 02.jpg (42.1 KB, 133 views)
xiaovsfeg is offline   Reply With Quote

Old   June 1, 2011, 11:01
Default
  #9
New Member
 
Join Date: Jun 2011
Posts: 2
Rep Power: 0
shanbin is on a distinguished road
Quote:
Originally Posted by xiaovsfeg View Post
Dear Araz:
Thanks for your help ,I added the path:PATH:"c:\Program files\ANSYS Inc\v121\CFX\bin"in the environment variable.But the message as the following picture.
so I think it's compiling a Fortran routine.It can be some error I don't find.I think you can give me some Suggestions.Thaks a lot .
Hello. It seems I meet the same problem. Have you solved that? Thanks.
shanbin is offline   Reply With Quote

Old   June 1, 2011, 22:13
Default
  #10
New Member
 
xiaofeng
Join Date: May 2011
Posts: 4
Rep Power: 15
xiaovsfeg is on a distinguished road
Quote:
Originally Posted by shanbin View Post
Hello. It seems I meet the same problem. Have you solved that? Thanks.
I have solved it now.But I used the compaq visual fortran instead of the inter fortran . Steps as below:
1.Install compaq visual fortran 6.0 .
2.Change environment variables in the installation process.
3 Creat the new file in the CFX Root directory.Find and copy the .F and CFX5maket.dll files to he directory.Modify CFX5maket.dll files to correspond the compaq visual fortran.Note:In the CFX5maket.dll "# "Representative comments lines.
4 Run.
Best wishes.
xiaovsfeg is offline   Reply With Quote

Old   June 2, 2011, 09:11
Default
  #11
New Member
 
Join Date: Jun 2011
Posts: 2
Rep Power: 0
shanbin is on a distinguished road
Thank you very much. I decide to change the Fortran finally.


Quote:
Originally Posted by xiaovsfeg View Post
I have solved it now.But I used the compaq visual fortran instead of the inter fortran . Steps as below:
1.Install compaq visual fortran 6.0 .
2.Change environment variables in the installation process.
3 Creat the new file in the CFX Root directory.Find and copy the .F and CFX5maket.dll files to he directory.Modify CFX5maket.dll files to correspond the compaq visual fortran.Note:In the CFX5maket.dll "# "Representative comments lines.
4 Run.
Best wishes.
shanbin is offline   Reply With Quote

Old   February 14, 2012, 08:36
Default
  #12
New Member
 
AKS
Join Date: Feb 2012
Posts: 25
Rep Power: 14
cfd_begin is on a distinguished road
Dear xiovsfeg

can i use compaq visual fortran 6.5 for windows x64 using Ansys 12.1.
cfd_begin is offline   Reply With Quote

Old   November 2, 2014, 13:46
Default
  #13
New Member
 
hesam
Join Date: Dec 2013
Posts: 9
Rep Power: 12
ezlidor_shb is on a distinguished road
Hi, dear Araz
At first I wanted to thank u for your helpful post,
I've dove everything u said but after I run "ifort pt_mom_source.F" in the command line the following error appears,
ifort: error #10037: could not find 'link'.
what do u suggest I do?
thanks again.


Quote:
Originally Posted by Araz View Post
Hi Dear Catherina,
Thank you for your post,



I tried the trial versions and it worked,


I ran "ifortvars.bat" in cfx launcher command line and added the followings to environment variables:
include: C:\Program Files\Intel\ComposerXE-2011\compiler\include;C:\Program Files\Intel\ComposerXE-2011\compiler\include\ia32

lib: C:\Program Files\Intel\ComposerXE-2011\compiler\lib;C:\Program Files\Intel\ComposerXE-2011\compiler\lib\ia32

PATH: c:\ANSYS Inc\v121\CFX\bin;C:\Program Files\Intel\ComposerXE-2011\bin;C:\Program Files\Intel\ComposerXE-2011\bin\ia32;C:\Program Files\Intel\ComposerXE-2011\redist;C:\Program Files\Intel\ComposerXE-2011\redist\ia32;C:\Program Files\Intel\ComposerXE-2011\redist\ia32\compiler;C:\Program Files\Intel\ComposerXE-2011\redist\ia32\mkl;C:\Program Files\Intel\ComposerXE-2011\redist\ia32\mpirt

Now, I have two questions:
1- I didn't add any PATH from vs2010 to environment variables since it had already included the old versoin of my vs. However, before installing this new version (vs 2010)I wasn't able to install fortran compiler completely because it couldn't find a supported Microsoft development environment on my pc. so, I don't know which of them is integrated to fortran compiler now?
2- Is "using fortran compiler" the only way to import our own subroutines in cfx? I mean, is it possible to use another programming language like C++ or something else, or even insert our code by hand into cfx in order to get rid of need for fortran compiler?

Thanks a lot
ezlidor_shb is offline   Reply With Quote

Old   March 27, 2017, 06:37
Default
  #14
New Member
 
Tony
Join Date: Mar 2016
Posts: 24
Rep Power: 10
doublestrong is on a distinguished road
I got the same problem and solved it finally.

The error is ifort: error #10037: could not find 'link'. I saw this error after running 'cfx5mkext test.F' or 'ifort test.F'. When I run ifortvars.bat in C:\Program Files (x86)\Intel\ComposerXE-2011\bin to setup environmental variables of IVF, it shows that VS2010, which I have installed, has not been detected. I think the error means something goes wrong with the environmental variables of VS2010 (or other IDE you are using).

Since I have modified some files of IVF, I uninstalled it first. I run vcvars64.bat in command line to set the environmental variables of VS2010. The file is in E:\VisualStudio\VC\bin\amd64 for my computer. Then I re-install IVF and run 'ifortvars.bat intel64 VS2010' in command line after installation. No error is threw this time. Then I manage to compile my FORTRAN file.
doublestrong 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
Intel Fortran Compiler & Tutorial 17 Young CFX 1 March 30, 2011 02:39
Fortran Compiler and example Young CFX 1 March 22, 2011 23:26
OF 1.6 | Ubuntu 9.10 (64bit) | GLIBCXX_3.4.11 not found piprus OpenFOAM Installation 22 February 25, 2010 14:43
Fortran compiler Erik Siemens 2 November 28, 2008 21:05
Fortran compiler Arnab Siemens 5 September 14, 2004 04:59


All times are GMT -4. The time now is 14:05.