Using makefile for compiling DCS
To compile DCS a suitable makefile is provided. This makefile has a rule for printing its own usage:
This will print into the console the following message:
Make options of DCS code
Compiler choice: COMPILER=intel => default
COMPILER=gnu => GNU gfortran
COMPILER=intel => Intel Fortran
Compiling options
DEBUG=yes(no) => on(off) debug (default no)
F03STD=yes(no) => on(off) check standard fortran (default yes)
OPTIMIZE=yes(no) => on(off) optimization (default no)
OPENMP=yes(no) => on(off) OpenMP directives (default no)
Provided Rules: default=DCS => compile the code
cleanobj => cleaning compiled object
cleanmod => cleaning .mod files
cleanmsg => cleaning make-log massage files
clean => running cleanobj, cleanmod and cleanmsg
cleanall => running clean and cleanexe
tar => creating a tar archive of the project
doc => building the documentation
The options should be self-explanatory. For a standard, non-debug compilation just type make. A successful compilation should print the following message:
Compiler used intel => ifort
Source dir ./src/
Debug no
F-standard yes
Optimize no
Compiling options
[-cpp -c -module ./mod/ -static -assume protect_parens -assume norealloc_lhs -fp-model source -std03 ]
Linking options
[ -std03 ]
Compiling IR_Precision.f90
Compiling Data_Type_Conservative.f90
Compiling Data_Type_Vector.f90
Compiling Data_Type_Node.f90
Compiling Data_Type_Face.f90
Compiling Data_Type_Cell_Quad.f90
Compiling Data_Type_Mesh.f90
Compiling Data_Type_Cavity.f90
Compiling DCS.f90
Assembling DCS