source: lmdz_wrf/trunk/tools/Makefile.ada.ifort @ 1410

Last change on this file since 1410 was 1171, checked in by lfita, 8 years ago

Adding compilation in `ada; with 'ifort'

File size: 1.9 KB
RevLine 
[1171]1# L. Fita, LMD. October 2016
2# Compilation of all required Fortran modules in `ada' with intel compilers
3# A following python 'library' creation is required
4
5# FOLLOWING: http://stackoverflow.com/questions/17156125/f2py-exposing-parameters-from-used-modules
6# FOLLOWING: http://osdir.com/ml/python.f2py.user/2006-08/msg00019.html
7# module load intel/2013.1
8# module load python/2.7.5
9# module load module load netcdf/seq/4.1.3
10# Diagnostics compilation _______
11# f2py -m module_ForDiag -h module_ForDiag.pyf module_generic.F90 module_ForDiagnosticsVars.F90 module_ForDiagnostics.F90 >& run_f2py_ForDiag_wrapper.log
12# make
13# f2py -m module_ForDiag -c --fcompiler=intelem module_ForDiag.pyf module_generic.F90 module_ForDiagnosticsVars.F90 module_ForDiagnostics.F90 >& run_f2py_ForDiag_compile.log
14# Interpolation compilation _______
15# f2py -m module_ForInt -h module_ForInt.pyf module_generic.F90 module_ForInterpolate.F90  >& run_f2py_ForInt_wrapper.log
16# f2py -m module_ForInt -c --fcompiler=intelem module_ForInt.pyf module_generic.F90 module_ForInterpolate.F90  >& run_f2py_ForInt_compile.log
17#
18
19FC              = /smplocal/pub/Modules/IDRIS/wrappers/ifort
20FCFLAGS         = -c -fPIC
21LIB_INC         =
22RM              = rm -f
23NCFOLD          = /smplocal/pub/NetCDF/4.1.3/seq
24LIB_NETCDF      = -L$(NCFOLD)/lib -lnetcdff -lnetcdf -I$(NCFOLD)/include
25
26####### ###### ##### #### ### ## #
27
28MODULES = \
29        module_generic.o
30
31all : \
32        interpolate.o \
33        module_ForDiagnostics.o
34
35diags : \
36        module_ForDiagnostics.o
37clean :
38        $(RM) *.mod *.o interpolate
39
40########    #######
41##
42    ########
43
44module_generic.o:
45        $(FC) $(FCFLAGS) $(LIB_NETCDF) $(LIB_INC) module_generic.F90
46
47module_ForDiagnosticsVars.o: module_generic.o
48        $(FC) $(FCFLAGS) $(LIB_INC) module_ForDiagnosticsVars.F90
49
50module_ForDiagnostics.o: module_generic.o module_ForDiagnosticsVars.o
51        $(FC) $(FCFLAGS) $(LIB_INC) module_ForDiagnostics.F90
52
53FCEXECFLAGS = $(MODULES) $(LIB_NETCDF) $(LIB_INC)
54
55interpolate.o: module_generic.o
56        $(FC) $(FCEXECFLAGS) interpolate.F90 -o interpolate
57
58
Note: See TracBrowser for help on using the repository browser.