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

fortran compiler

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

Like Tree1Likes
  • 1 Post By pingub

Reply
 
LinkBack Thread Tools Display Modes
Old   July 27, 2011, 11:14
Default fortran compiler
  #1
Member
 
sajad
Join Date: Nov 2010
Posts: 51
Rep Power: 6
sajad_abasi is on a distinguished road
hi dear friends.

when i run toturial 19 in cfx ansys gives me the following error:

CCL parser failed with message:
Perl Syntax errors detected:
cfx5mkext failed at (eval 108) line 1.

my system is win7 64 bit and my compiler is Intel Parallel Studio XE 2011

pls help me if any body know how to solve the problem.........
sajad_abasi is offline   Reply With Quote

Old   July 28, 2011, 02:39
Default
  #2
Member
 
Ali Torbaty
Join Date: Jul 2009
Location: Sydney, Australia
Posts: 71
Rep Power: 8
AliTr is on a distinguished road
first thing to say: make sure the PATH variable fully covers all FORTRAN and CFX addresses, you may need to merge addresses from both program command prompts manually
AliTr is offline   Reply With Quote

Old   July 28, 2011, 03:13
Default
  #3
Member
 
sajad
Join Date: Nov 2010
Posts: 51
Rep Power: 6
sajad_abasi is on a distinguished road
hi ali
and special thanks for your reply

i checked the variable path of system.there are some paths refer to ansys and fortran compiler but i dont know which path exactly must be added.

can you help me in detail?

when i run the session in gives me the following error:

.......the compiler comand "ifort" could not be found.plrease ensure that the compiler is on your path and try again................

what this mean to you?

best regards
sajad_abasi is offline   Reply With Quote

Old   July 28, 2011, 05:29
Default
  #4
New Member
 
Join Date: May 2010
Posts: 9
Rep Power: 7
pingub is on a distinguished road
If you have MSwindows and "Intel visual fortran compiler 64" installed on your system, the procedure is easy:
1) run the fortran build environment from the start menu, then a terminal window will open.
2) type the DOS command to reach the path where the .cfx file is
3) open the cfx file with the command "filename.cfx"
4) the cfx-pre window will open
5) follow the tutorial instruction (tools - command editor- !system ("cfx5mkext filename.H") <1 or die "cfx5mkext failed"

When you open the Intel build environment, it will set all the needed system variables. You can also define the system variable in the system setting, but it is difficult, time-wasting and un-necessary.

Good luck!
kjrzyh likes this.
pingub is offline   Reply With Quote

Old   July 28, 2011, 05:30
Default
  #5
New Member
 
Join Date: May 2010
Posts: 9
Rep Power: 7
pingub is on a distinguished road
Quote:
Originally Posted by sajad_abasi View Post
my system is win7 64 bit and my compiler is Intel Parallel Studio XE 2011
I don't know if you can do it with parallel studio...
pingub is offline   Reply With Quote

Old   July 29, 2011, 04:02
Default
  #6
Member
 
Ali Torbaty
Join Date: Jul 2009
Location: Sydney, Australia
Posts: 71
Rep Power: 8
AliTr is on a distinguished road
Quote:
Originally Posted by sajad_abasi View Post
.......the compiler comand "ifort" could not be found.plrease ensure that the compiler is on your path and try again................

what this mean to you?
Try this:

1- open cfx command prompt (CFX->Tools->Command Line)
2- run "PATH" command
3- copy the reult and paste it in a text file
4- open "Fortran Build Environment for applications..." command prompt
5- run "PATH" command in this new window
6- copy the result and paste it in the same text file
7- now merge the two PATH commands and make one
8- run this new PATH command in "Fortran Build Environment for applications..." command prompt.
9- in the "Fortran ..." command prompt change folder to project folder where the fortran code is saved and run "cfx5mkext yourfile.F" from command prompt
10- it should build subfolder with respected .dll file in it
AliTr is offline   Reply With Quote

Old   July 29, 2011, 16:02
Default
  #7
Member
 
sajad
Join Date: Nov 2010
Posts: 51
Rep Power: 6
sajad_abasi is on a distinguished road
hi to you two.

i will do what you write and i will know you the result.

thanks so much for your honestly help.
sajad_abasi is offline   Reply With Quote

Old   January 28, 2013, 10:36
Default
  #8
New Member
 
Join Date: Jan 2013
Posts: 5
Rep Power: 4
kjrzyh is on a distinguished road
I haved tried this method,it worked.
Thanks pingub!
kjrzyh is offline   Reply With Quote

Old   February 25, 2013, 10:33
Default
  #9
New Member
 
Latin America
Join Date: Feb 2013
Posts: 7
Rep Power: 4
ppramiu is on a distinguished road
Quote:
Originally Posted by AliTr View Post
Try this:

1- open cfx command prompt (CFX->Tools->Command Line)
2- run "PATH" command
3- copy the reult and paste it in a text file
4- open "Fortran Build Environment for applications..." command prompt
5- run "PATH" command in this new window
6- copy the result and paste it in the same text file
7- now merge the two PATH commands and make one
8- run this new PATH command in "Fortran Build Environment for applications..." command prompt.
9- in the "Fortran ..." command prompt change folder to project folder where the fortran code is saved and run "cfx5mkext yourfile.F" from command prompt
10- it should build subfolder with respected .dll file in it
Hi

I have done the suggestions above, but the folder and files. dll, are not created. When running the command: "cfx5mkext pt_erosion.F" inside the folder "userFortran" no error message appears but no folders or files are created : Confuso:. Can you help?

thank you
ppramiu is offline   Reply With Quote

Old   November 11, 2013, 17:34
Default
  #10
Senior Member
 
ali
Join Date: Oct 2009
Posts: 157
Rep Power: 7
alinik is on a distinguished road
Hi,

I am running CFX on linux machine. anyone know how to set this thing right in linux?

Thanks
alinik is offline   Reply With Quote

Old   November 12, 2013, 10:18
Default
  #11
Member
 
Join Date: Feb 2011
Posts: 85
Rep Power: 6
Antanas is on a distinguished road
Quote:
Originally Posted by ppramiu View Post
Hi

I have done the suggestions above, but the folder and files. dll, are not created. When running the command: "cfx5mkext pt_erosion.F" inside the folder "userFortran" no error message appears but no folders or files are created : Confuso:. Can you help?

thank you
Here is an example of how I do it:
1. Run CFX Standalone;
2. Set path to the location where my fortran sources are;
3. Open cfx command prompt;
4. Execute inside it following command: call "C:\Program Files (x86)\Intel\ComposerXE-2011\bin\ifortvars.bat" Intel64;
5. Then to compile my sources: cfx5mkext my_src.F;
6. Take compiled dlls from location that was set at step 2.
Antanas is offline   Reply With Quote

Old   May 20, 2014, 19:16
Default
  #12
New Member
 
Join Date: Apr 2014
Posts: 6
Rep Power: 3
CanadaFlanker is on a distinguished road
Quote:
Originally Posted by AliTr View Post
Try this:

1- open cfx command prompt (CFX->Tools->Command Line)
2- run "PATH" command
3- copy the reult and paste it in a text file
4- open "Fortran Build Environment for applications..." command prompt
5- run "PATH" command in this new window
6- copy the result and paste it in the same text file
7- now merge the two PATH commands and make one
8- run this new PATH command in "Fortran Build Environment for applications..." command prompt.
9- in the "Fortran ..." command prompt change folder to project folder where the fortran code is saved and run "cfx5mkext yourfile.F" from command prompt
10- it should build subfolder with respected .dll file in it
Hi Ali,

I am working on the same topic and trying your method, could you explain what does it mean by "merging" two paths of Fortran and CFX? I mean after I put both paths in one text file how do I call this file in command prompt? Thank you!
CanadaFlanker 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
Intel Fortran Compiler & Tutorial 17 Young CFX 1 March 30, 2011 01: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 CD-adapco 2 November 28, 2008 21:05
Fortran compiler Arnab CD-adapco 5 September 14, 2004 03:59


All times are GMT -4. The time now is 15:12.