source: lmdz_wrf/trunk/tools/Makefile.curie.ifort @ 1390

Last change on this file since 1390 was 1301, checked in by lfita, 8 years ago

Adding compilation for curie' using ifort'

File size: 1.9 KB
RevLine 
[1301]1# L. Fita, LMD. October 2016
2# Compilation of all required Fortran modules in `curie' 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/14.0.3.174
8# module load python/2.7.3
9# module load netcdf/4.2_hdf5
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              = /opt/intel/14.0.3.174/bin/intel64/ifort
20FCFLAGS         = -c -fPIC
21LIB_INC         =
22RM              = rm -f
23NCFOLD          = /ccc/products/netcdf-4.2_hdf5/default/
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.