1 |
# These are compiler dependent macros, meant to be included in the |
# These are compiler dependent macros, meant to be included in the |
2 |
# LMDZE makefile. |
# makefile for LMDZE. |
3 |
|
|
4 |
# For XL Fortran |
# For IBM XL Fortran |
5 |
|
|
|
COMPILE.f = $(FC) $(F90FLAGS) -c |
|
6 |
FC = xlf95 |
FC = xlf95 |
7 |
|
|
8 |
|
numer_rec_dir = ${workdir}/lib/Numer_Rec_Lionel_v |
9 |
|
netcdf95_dir = ${workdir}/lib/NetCDF95 |
10 |
|
IOIPSL_dir = ${workdir}/lib/IOIPSL_Lionel_ar |
11 |
|
|
12 |
# Include flags: |
# Include flags: |
13 |
inc_flags = -I${libf_dir} -I${libf_dir}/dyn3d -I${libf_dir}/phylmd -I${libf_dir}/filtrez -I${workdir}/IOIPSL_Lionel_y ${NETCDF} -I${workdir}/Numer_Rec_Lionel |
inc_flags = $(addprefix -I, ${libf_dir} ${libf_dir}/dyn3d ${libf_dir}/phylmd ${libf_dir}/filtrez ${numer_rec_dir} ${netcdf95_dir} ${IOIPSL_dir}) ${NETCDF_FFLAGS} |
14 |
|
|
15 |
# Other flags which do not affect run time performance: |
# Other flags which do not affect run time performance: |
16 |
lang_flags = -qlanglvl=95pure -qnodirective -qnoescape -qsuppress=1520-050 -qwarn64 |
lang_flags = -qlanglvl=95pure -qnodirective -qnoescape -qsuppress=1520-050 -qwarn64 |
18 |
##-qattr=full -qxref=full |
##-qattr=full -qxref=full |
19 |
|
|
20 |
# Flags which affect run time performance: |
# Flags which affect run time performance: |
21 |
perf_flags = -qcheck -qdbg -qfloat=nans -qfloat=nomaf:rndsngl:nofold -qflttrap=overflow:zerodivide:enable -qfullpath -qinitauto=7FBFFFFF -qnooptimize -qnosave -qsigtrap -qspillsize=1024 |
perf_flags = -qdbg -qfloat=nans -qfloat=nomaf:rndsngl:nofold -qflttrap=overflow:zerodivide:enable -qfullpath -qinitauto=7FBFFFFF -qnooptimize -qnosave -qsigtrap -qspillsize=1024 |
22 |
|
|
23 |
##-O3 -qnostrict -qessl -qextchk |
##-O3 -qnostrict -qessl -qextchk |
24 |
## "-qflttrap=invalid" gives an error in "orografi.F" |
## "-qflttrap=invalid" gives an error in "orografi.F" |
25 |
|
##-qcheck severe error in etat0 |
26 |
|
# "-qcheck -qextchk" give an error in module "mathelp", procedure |
27 |
|
# "trans_buff", for a "gcm" run. |
28 |
|
|
29 |
FFLAGS = ${inc_flags} -qfixed ${perf_flags} |
FFLAGS = ${inc_flags} -qfixed ${perf_flags} |
30 |
F90FLAGS = ${inc_flags} ${lang_flags} ${perf_flags} |
F90FLAGS = ${inc_flags} ${lang_flags} ${perf_flags} |
32 |
LDFLAGS = |
LDFLAGS = |
33 |
##-O3 -bnoquiet |
##-O3 -bnoquiet |
34 |
|
|
35 |
LDLIBS = -L${workdir}/IOIPSL_Lionel_y -lioipsl -L${workdir}/Numer_Rec_Lionel -lnumer_rec -L/usr/local/pub/lib -lnetcdf |
LDLIBS = $(addprefix -L, ${numer_rec_dir} ${netcdf95_dir} ${IOIPSL_dir}) -lioipsl -lnetcdf95 -lnumer_rec ${NETCDF_LDFLAGS} |
36 |
|
|
37 |
##-lessl |
##-lessl |