Rev | Line | |
---|
[1155] | 1 | # L. Fita, LMD. October 2016 |
---|
| 2 | # Compilation of all required Fortran modules in `foudre' with gcc compilers |
---|
| 3 | # A following python 'library' creation is required |
---|
[1172] | 4 | # Diagnostics compilation _______ |
---|
| 5 | # f2py -m module_ForDiag -h module_ForDiag.pyf module_generic.F90 module_ForDiagnosticsVars.F90 module_ForDiagnostics.F90 >& run_f2py_ForDiag_wrapper.log |
---|
| 6 | # make |
---|
| 7 | # f2py -m module_ForDiag -c --f90exec=/usr/bin/gfortran-4.7 module_ForDiag.pyf module_generic.F90 module_ForDiagnosticsVars.F90 module_ForDiagnostics.F90 >& run_f2py_ForDiag_compile.log |
---|
| 8 | # Interpolation compilation _______ |
---|
| 9 | # f2py -m module_ForInt -h module_ForInt.pyf module_generic.F90 module_ForInterpolate.F90 >& run_f2py_ForInt_wrapper.log |
---|
| 10 | # f2py -m module_ForInt -c --f90exec=/usr/bin/gfortran-4.7 module_ForInt.pyf module_generic.F90 module_ForInterpolate.F90 >& run_f2py_ForInt_compile.log |
---|
[1155] | 11 | |
---|
| 12 | FC = gfortran-4.7 |
---|
| 13 | FCFLAGS = -c |
---|
| 14 | LIB_INC = |
---|
| 15 | RM = rm -f |
---|
| 16 | NCFOLD = /usr |
---|
| 17 | LIB_NETCDF = -L$(NCFOLD)/lib -lnetcdff -lnetcdf -I$(NCFOLD)/include |
---|
| 18 | |
---|
| 19 | ####### ###### ##### #### ### ## # |
---|
| 20 | |
---|
| 21 | MODULES = \ |
---|
| 22 | module_generic.o |
---|
| 23 | |
---|
| 24 | all : \ |
---|
| 25 | interpolate.o \ |
---|
| 26 | module_ForDiagnostics.o |
---|
| 27 | |
---|
| 28 | diags : \ |
---|
| 29 | module_ForDiagnostics.o |
---|
| 30 | clean : |
---|
| 31 | $(RM) *.mod *.o interpolate |
---|
| 32 | |
---|
| 33 | ######## ####### |
---|
| 34 | ## |
---|
| 35 | ######## |
---|
| 36 | |
---|
| 37 | module_generic.o: |
---|
| 38 | $(FC) $(FCFLAGS) $(LIB_NETCDF) $(LIB_INC) module_generic.F90 |
---|
| 39 | |
---|
| 40 | module_ForDiagnosticsVars.o: module_generic.o |
---|
| 41 | $(FC) $(FCFLAGS) $(LIB_INC) module_ForDiagnosticsVars.F90 |
---|
| 42 | |
---|
| 43 | module_ForDiagnostics.o: module_generic.o module_ForDiagnosticsVars.o |
---|
| 44 | $(FC) $(FCFLAGS) $(LIB_INC) module_ForDiagnostics.F90 |
---|
| 45 | |
---|
| 46 | FCEXECFLAGS = $(MODULES) $(LIB_NETCDF) $(LIB_INC) |
---|
| 47 | |
---|
| 48 | interpolate.o: module_generic.o |
---|
| 49 | $(FC) $(FCEXECFLAGS) interpolate.F90 -o interpolate |
---|
| 50 | |
---|
| 51 | |
---|
Note: See
TracBrowser
for help on using the repository browser.