--- trunk/Compilers/pgf95.mk 2010/04/01 09:07:28 30 +++ trunk/Compilers/pgf95_debug.mk 2013/07/08 18:12:18 71 @@ -1,31 +1,37 @@ # These are compiler dependent macros, meant to be included in the # makefile for LMDZE. -# For pgf95 version 7 +netcdf_inc_dir = /opt/netcdf3/pgf/include +netcdf_lib_dir = /opt/netcdf3/pgf/lib -FC = pgf95 - -netcdf_inc_dir = /usr/local/netcdf-pgi/include -netcdf_lib_dir = /usr/local/netcdf-pgi/lib - -numer_rec_dir = /home/guez_local/lib/Numer_Rec_Lionel/o -netcdf95_dir = /home/guez_local/lib/NetCDF95/pgf95 -IOIPSL_dir = /home/guez_local/lib/IOIPSL_Lionel/ad +numer_rec_95_dir = /data/guez/lib/Numer_Rec_95_pgf95_debug +nr_util_dir = /data/guez/lib/NR_util_pgf95_debug +netcdf95_dir = /data/guez/lib/NetCDF95_pgf95_debug +jumble_dir = /data/guez/lib/Jumble_pgf95_debug # Include flags: -inc_flags = $(addprefix -I, ${libf_dir} ${libf_dir}/phylmd ${netcdf_inc_dir} ${numer_rec_dir} ${netcdf95_dir} ${IOIPSL_dir}) +FFLAGS = $(addprefix -I, ${netcdf_inc_dir} ${numer_rec_95_dir} ${netcdf95_dir} ${nr_util_dir} ${jumble_dir}) + +# Overall options: +FFLAGS += -Minform=inform -# Other flags which do not affect run time performance: -lang_flags = -Mstandard -Minform=inform -Mfree -Minfo=all -Mallocatable=95 -Mbackslash +# Optimization options: +FFLAGS += -Mframe -# Flags which affect run time performance: -perf_flags = -g -Kieee -Ktrap=fp -Mbounds -Mchkfpstk -Mchkptr -Mpgicoff -##-fastsse -O3 +# Debugging options: +FFLAGS += -g -gopt -Mchkfpstk -Mchkptr -Mpgicoff # "-Mbounds" gives an error in module "mathelp", procedure "trans_buff", # for a "gcm" run. -FFLAGS = ${inc_flags} ${perf_flags} -F90FLAGS = ${inc_flags} ${lang_flags} ${perf_flags} +# Language options: +FFLAGS += -Mstandard -Mallocatable=95 -Mbackslash -Mdefaultunit -Mrecursive + +# Target-specific Options: +FFLAGS += -Kieee -Ktrap=fp + +F90FLAGS = ${FFLAGS} LDFLAGS = -g -LDLIBS = $(addprefix -L, ${netcdf_lib_dir} ${numer_rec_dir} ${netcdf95_dir} ${IOIPSL_dir}) -lioipsl -lnetcdf95 -lnetcdf -lnumer_rec +LDLIBS = $(addprefix -L, ${netcdf_lib_dir} ${numer_rec_95_dir} ${netcdf95_dir} ${nr_util_dir} ${jumble_dir}) -ljumble -lnetcdf95 -lnetcdf -lnumer_rec_95 -lnr_util + +version_flag = -V