![]() |
Compiling CFL3D
Hi all,
It seems the CFL3D code was recently set public again after a long period. The fact is that the official way ton compile it seems a bit outdated. Even the doc says: "The Install script is very old, and may or may not create a workable makefile for your particular machine." (here) While I followed instructions, I get the following error: Code:
$ ./Install # This seems to work Best regards, |
Well, I removed all occurences of the "unrecognizes command line options" in the Install script, and it started compile.
Now I have another error: Code:
============================================================== |
OK, I copy-pasted the following files from build/cfl/libs/ to build/cfl/mpi/ and it continues compiling:
module_kwstm.mod module_profileout.mod module_contour.mod Let's see if it will be OK now. |
I faced similar issues a while ago. Whilst I don't remember the specifics the notes I wrote for my future self are as follows:
Everything is easier with MPICH - just go sudo apt install MPICH ./Install mv ~/CFL3D/build/makefile ~/CFL3D/build/makefile.bu cp ~/CFL3D/build/makefile_mac_gnu ~/CFL3D/build/makefile now modify the makefile from gfortran to mpif90 I found I ended up having to run install more than once last time? For MPI you still need the cfl3d.inp It took me a while to work out how to open the files in Paraview. To do this open the the .g file in as a Plot3D. There is then an option to open the .q file in the properties section for the Paraview source. Good luck. |
OK, so it seems the compilation completed well.
Here, a sum up of what I did (CFL3D v6 on Linux Mint 17.3 64bit): EDIT: the method given in previous/following comments seems to be better than this one. 1- Download the CFL3D code: Code:
git clone https://github.com/nasa/CFL3D Code:
cd CFL3D/build/ ‘-ip’ ‘-fno-alias’ ‘-traceback’ ‘-module’ ‘-r8’ '-xHost' '-fpe0' 4- Launch the 'Install' script: Code:
./Install Code:
make cfd3d_libs Code:
cp cfl/libs/*.mod cfl/seq/ Code:
make cfl3d_seq |
Quote:
Your method worked as well and seems to be cleaner than mine (especially because I removed lots of options that can be subsituted by other ones with your method). Just to say, the only makefile template I found was "makefile_mac_gfortran_example". Thank you very much for advices and experience sharing. All the best, |
I got stuck while proceeding the installation of CFL3D in Linux V16. Kindly help me
We have these files but file format is .F90 only. How can I convert this .F90 to .mod ?
I am unable to copy-paste the following files from build/cfl/libs/ to build/cfl/mpi/ module_kwstm.mod module_profileout.mod module_contour.mod |
we have completed the below steps while installing CFL3D in linux :
./Install mv ~/CFL3D/build/makefile ~/CFL3D/build/makefile.bu cp ~/CFL3D/build/makefile_mac_gnu ~/CFL3D/build/makefile I renamed the below files which actually was in .f90 format, I have changed to .mod manually, then I copy-pasted the following files from build/cfl/libs/ to build/cfl/mpi/ module_kwstm.mod module_profileout.mod module_contour.mod cp ~/Desktop/CFL3D/build/cfl/libs/*.mod ~/Desktop/CFL3D/build/cfl/seq/ cp ~/Desktop/CFL3D/build/cfl/libs/*.mod ~/Desktop/CFL3D/build/cfl/mpi/ We got stuck while executing the below commands make cfl3d_seq make cfl3d_mpi Getting the below error : ================================================== ============ compiling cfl3d_libs ================================================== ============ ( cd cfl/libs; make -f makefile cfl3d_libs \ FFLAG="-O2 -w -module /home/midhun/Desktop/CFL3D/build/cfl/libs " \ FFLAG_SPEC="-O2 -w -module /home/midhun/Desktop/CFL3D/build/cfl/libs " \ LFLAG="-z muldefs" \ EXEC="cfl3d_libs" \ CPPFLAG="-P" \ CPPOPT="-DP3D_SINGLE -DLINUX -DINTEL -DDBLE_PRECSN " \ AROPT="rusc" \ RANLIB="true" \ CPP="cpp" \ CFLAG="" \ LLIBS="" \ FTN="mpif90" \ DIR="cfl/libs" \ CFLSRC_S="../../../source/cfl3d/libs" \ CFLSRC_D="../../../source/cfl3d/dist" \ HEADER="../../../header" ) make[1]: Entering directory '/home/midhun/Desktop/CFL3D/build/cfl/libs' mpif90 -DP3D_SINGLE -DLINUX -DINTEL -DDBLE_PRECSN -O2 -w -module /home/midhun/Desktop/CFL3D/build/cfl/libs -c add2x.F make[1]: mpif90: Command not found makefile:129: recipe for target 'add2x.o' failed make[1]: *** [add2x.o] Error 127 make[1]: Leaving directory '/home/midhun/Desktop/CFL3D/build/cfl/libs' makefile:370: recipe for target 'Zlibs' failed make: *** [Zlibs] Error 2 |
A makefile that works on Ubuntu linux
Code:
# |
All times are GMT -4. The time now is 16:11. |