CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   CFX (https://www.cfd-online.com/Forums/cfx/)
-   -   fortran compiler (https://www.cfd-online.com/Forums/cfx/90998-fortran-compiler.html)

sajad_abasi July 27, 2011 11:14

fortran compiler
 
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.........

AliTr July 28, 2011 02:39

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

sajad_abasi July 28, 2011 03:13

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

pingub July 28, 2011 05:29

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!

pingub July 28, 2011 05:30

Quote:

Originally Posted by sajad_abasi (Post 317739)
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...

AliTr July 29, 2011 04:02

Quote:

Originally Posted by sajad_abasi (Post 317823)
.......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

sajad_abasi July 29, 2011 16:02

hi to you two.

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

thanks so much for your honestly help.

kjrzyh January 28, 2013 09:36

I haved tried this method,it worked.
Thanks pingub!

ppramiu February 25, 2013 09:33

Quote:

Originally Posted by AliTr (Post 317995)
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

alinik November 11, 2013 16:34

Hi,

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

Thanks

Antanas November 12, 2013 09:18

Quote:

Originally Posted by ppramiu (Post 409951)
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.

CanadaFlanker May 20, 2014 19:16

Quote:

Originally Posted by AliTr (Post 317995)
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!


All times are GMT -4. The time now is 04:31.