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

Compiling User Fortran with CFX 14.0 on Win64

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree6Likes
  • 1 Post By Raijin Thunderkeg
  • 1 Post By Antanas
  • 1 Post By Raijin Thunderkeg
  • 1 Post By Raijin Thunderkeg
  • 1 Post By alinik
  • 1 Post By sunilpatil

Reply
 
LinkBack Thread Tools Display Modes
Old   December 20, 2013, 11:12
Default Compiling User Fortran with CFX 14.0 on Win64
  #1
Member
 
JESS
Join Date: Nov 2010
Posts: 31
Rep Power: 6
Raijin Thunderkeg is on a distinguished road
I installed Microsoft Visual Studio 2012 and Intel Visual Fortran Composer XE 2013 on my PC.
I try to compile the TStat_Control.F (No.19 in tutorial file).
I have added the enviroment variables as below:
include:
C:\Program Files (x86)\Intel\Composer XE 2013\compiler;
C:\Program Files (x86)\Intel\Composer XE 2013\compiler\include\intel64

lib:
C:\Program Files (x86)\Intel\Composer XE 2013\compiler\lib;
C:\Program Files (x86)\Intel\Composer XE 2013\compiler\lib\intel64

path:
C:\Program Files\ANSYS Inc\v140\CFX\bin;
C:\Program Files (x86)\Intel\Composer XE 2013\bin;
C:\Program Files (x86)\Intel\Composer XE 2013\bin\intel64;
C:\Program Files (x86)\Intel\Composer XE 2013\redist;
C:\Program Files (x86)\Intel\Composer XE 2013\redist\intel64;
C:\Program Files (x86)\Intel\Composer XE 2013\redist\intel64compiler;
C:\Program Files (x86)\Intel\Composer XE 2013\redist\intel64\mkl;
C:\Program Files (x86)\Intel\Composer XE 2013\redist\intel64\mpirt;

Then I run the "C:\Program Files (x86)\Intel\Composer XE 2013\bin\ifortvars" in command line, it appears:

Then I type the following command in the Command Editor dialog box
! system ("cfx5mkext TStat_Control.F") == 0 or die "cfx5mkext failed";
The error message is like this:
/*ERROR
CCL parser failed with message:
Perl Syntax errors detected:
cfx5mkext failed at (eval 103) line 1.*/


Can someone help me ? Thanks a lot.
Attached Images
File Type: png 1.png (83.4 KB, 22 views)
File Type: jpg 2.jpg (61.2 KB, 22 views)
aldlemy likes this.
Raijin Thunderkeg is offline   Reply With Quote

Old   December 20, 2013, 11:49
Default
  #2
Member
 
Join Date: Feb 2011
Posts: 85
Rep Power: 6
Antanas is on a distinguished road
Quote:
Originally Posted by Raijin Thunderkeg View Post
I installed Microsoft Visual Studio 2012 and Intel Visual Fortran Composer XE 2013 on my PC.
I try to compile the TStat_Control.F (No.19 in tutorial file).
I have added the enviroment variables as below:
include:
C:\Program Files (x86)\Intel\Composer XE 2013\compiler;
C:\Program Files (x86)\Intel\Composer XE 2013\compiler\include\intel64

lib:
C:\Program Files (x86)\Intel\Composer XE 2013\compiler\lib;
C:\Program Files (x86)\Intel\Composer XE 2013\compiler\lib\intel64

path:
C:\Program Files\ANSYS Inc\v140\CFX\bin;
C:\Program Files (x86)\Intel\Composer XE 2013\bin;
C:\Program Files (x86)\Intel\Composer XE 2013\bin\intel64;
C:\Program Files (x86)\Intel\Composer XE 2013\redist;
C:\Program Files (x86)\Intel\Composer XE 2013\redist\intel64;
C:\Program Files (x86)\Intel\Composer XE 2013\redist\intel64compiler;
C:\Program Files (x86)\Intel\Composer XE 2013\redist\intel64\mkl;
C:\Program Files (x86)\Intel\Composer XE 2013\redist\intel64\mpirt;

Then I run the "C:\Program Files (x86)\Intel\Composer XE 2013\bin\ifortvars" in command line, it appears:

Then I type the following command in the Command Editor dialog box
! system ("cfx5mkext TStat_Control.F") == 0 or die "cfx5mkext failed";
The error message is like this:
/*ERROR
CCL parser failed with message:
Perl Syntax errors detected:
cfx5mkext failed at (eval 103) line 1.*/


Can someone help me ? Thanks a lot.
1. Open CFX Launcher
2. Open Command Line (Tools -> Command Line)
3. Inside Command Line execute: call "C:\Program Files (x86)\Intel\Composer XE 2013\bin\ifortvars" Intel64
4. Inside Command Line change directory to that where your source file is located.
5. Execute cfx5mkext <your_source_file_name>.F
aldlemy likes this.
Antanas is offline   Reply With Quote

Old   December 20, 2013, 21:38
Default
  #3
Member
 
JESS
Join Date: Nov 2010
Posts: 31
Rep Power: 6
Raijin Thunderkeg is on a distinguished road
Quote:
Originally Posted by Antanas View Post
1. Open CFX Launcher
2. Open Command Line (Tools -> Command Line)
3. Inside Command Line execute: call "C:\Program Files (x86)\Intel\Composer XE 2013\bin\ifortvars" Intel64
4. Inside Command Line change directory to that where your source file is located.
5. Execute cfx5mkext <your_source_file_name>.F
Thanks for your help.
I do it in steps as you told me. A warning message is shown in the pic underlined with red color. Is this OK?
Attached Images
File Type: jpg 3.jpg (73.7 KB, 20 views)
aldlemy likes this.

Last edited by Raijin Thunderkeg; December 21, 2013 at 08:59.
Raijin Thunderkeg is offline   Reply With Quote

Old   December 20, 2013, 22:57
Default
  #4
Member
 
JESS
Join Date: Nov 2010
Posts: 31
Rep Power: 6
Raijin Thunderkeg is on a distinguished road
Quote:
Originally Posted by Antanas View Post
1. Open CFX Launcher
2. Open Command Line (Tools -> Command Line)
3. Inside Command Line execute: call "C:\Program Files (x86)\Intel\Composer XE 2013\bin\ifortvars" Intel64
4. Inside Command Line change directory to that where your source file is located.
5. Execute cfx5mkext <your_source_file_name>.F
Thanks very much. It really works that the .def can be run in CFX solvermanager. What's the matter with the warning message "unrecognized source type" and why the compile succeed in the command line but fail in the CFX command editor using "! system ("cfx5mkext TStat_Control.F") == 0 or die "cfx5mkext failed";" ? It really makes me confused. Could you explain more about this? I am sincerely grateful for your help.
aldlemy likes this.

Last edited by Raijin Thunderkeg; December 21, 2013 at 09:09.
Raijin Thunderkeg is offline   Reply With Quote

Old   December 23, 2013, 16:03
Default
  #5
Senior Member
 
ali
Join Date: Oct 2009
Posts: 157
Rep Power: 7
alinik is on a distinguished road
Hey guys,

When I want to compile my fortran code in command editor I also receive this message. Seems that you have resolved it before.
I am running CFX on a linux machine.

p, li { white-space: pre-wrap; } ERROR
CCL parser failed with message:
Perl Syntax errors detected:
cfx5mkext failed at (eval 106) line 1.


Any ideas?
aldlemy likes this.
alinik is offline   Reply With Quote

Old   May 14, 2015, 07:36
Smile Fortran Compiler error
  #6
Member
 
sunil
Join Date: Jul 2012
Location: Bangalore
Posts: 91
Rep Power: 5
sunilpatil is on a distinguished road
Hi,
I am trying to simulate Air conditioning simulation tutorial 19.I have installed visual studio 2015 and intel FORTRAN compiler. when i run "C:\Program Files (x86)\Intel\Composer XE 2015\bin\ifortvars.bat" from CFX command editor i get following error

ERROR CCL parser failed with message:
invalid object type ""C": leading character must be alphabetic or '_'


and when i run cfx5mkext TStat_Control from the windows command prompt it again gives some error and i am unable to generate .dll file for my simulation. I have attached error message, please help me to solve this problem




aldlemy likes this.
sunilpatil is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Importing external DLL to Ansys CFX using user Fortran snpradeep CFX 2 May 16, 2014 03:52
How to set environmental variables of Intel Fortran +CFX? Christine MO CFX 0 September 23, 2011 11:11
CFX User Fortran: Multiple Outputs pingub CFX 1 October 26, 2010 14:49
error msg when compiling user fortran Ollimarc CFX 0 March 13, 2008 19:16
how to use USER FORTRAN with CFX cfd_99 Main CFD Forum 1 June 4, 1999 05:42


All times are GMT -4. The time now is 17:25.