CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   CFX (https://www.cfd-online.com/Forums/cfx/)
-   -   how to compile a user fortran routine in linux (https://www.cfd-online.com/Forums/cfx/170201-how-compile-user-fortran-routine-linux.html)

xyq916 April 26, 2016 10:46

how to compile a user fortran routine in linux
 
hi, everyone
I have successfully compiled a user fortran routine in windows 7. But recently, when I trying compiling a user fortran routine in linux. I've got some problems.
Please forgive me for a stupid questions I want to ask. What is the step to compiler a user Fortran routine in Linux. What software I should install before compile. I used ANSYS CFX 14.0 (Linux version). Thanks!

xyq916 May 3, 2016 06:17

Quote:

Originally Posted by xyq916 (Post 596788)
hi, everyone
I have successfully compiled a user fortran routine in windows 7. But recently, when I trying compiling a user fortran routine in linux. I've got some problems.
Please forgive me for a stupid questions I want to ask. What is the step to compiler a user Fortran routine in Linux. What software I should install before compile. I used ANSYS CFX 14.0 (Linux version). Thanks!

Thanks everyone!
This problem have been solved by myself. I unstall Intel Fortran Compiler (or you can also delete the environment varibles of Intel Fortran Compiler). Then,
I copy the file "cfx5mkext.ccl" to the working directory. And then add the Portland Group compiler flag "-Bstatic_pgi" to every line which starts with "ext link ldflags =" in cfx5mkext.ccl. See CFX tutorials "Compiling User Fortran for use on Linux Machines Without a Compiler Installation" for more details


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