[4] | 1 | # Makefile de GRISLI sur Foehn |
---|
| 2 | # FT options de compilation |
---|
| 3 | # LK options de link |
---|
| 4 | |
---|
| 5 | |
---|
| 6 | # Rappel de quelques options interessantes |
---|
| 7 | #------------------------------------------- |
---|
| 8 | # faire imperativement attention a l'arithmetique |
---|
| 9 | # -fpe0 s'arrete sur les floating point exception (sauf underflow) |
---|
| 10 | # -CB Performs run-time checking on array subscript and character substring expressions |
---|
| 11 | # -g pour debug |
---|
| 12 | # -pg pour le profiling |
---|
| 13 | # -traceback permet de connaitre la ligne qui plante |
---|
| 14 | |
---|
| 15 | # faire man ifort pour plus d'infos |
---|
| 16 | |
---|
| 17 | # le directory dans lequel sont les compilateurs et MKL |
---|
| 18 | # DIRLOCAL=/usr/local variable d'environnement a definir dans .bash_profile |
---|
| 19 | |
---|
| 20 | NETCDFHOME = /applis/ciment/stow/x86_64/netcdf-4.0.1-intel# foehn |
---|
| 21 | |
---|
| 22 | #GNETCDFHOME = /applis/ciment/stow/x86_64/netcdf-4.0.1-intel |
---|
| 23 | # librairies |
---|
| 24 | |
---|
| 25 | NCDF_INC = $(NETCDFHOME)/include |
---|
| 26 | NCDF_LIB = -L$(NETCDFHOME)/lib -lnetcdf |
---|
| 27 | |
---|
| 28 | MKLPATH = /opt/intel/Compiler/11.0/074/mkl/lib/em64t/# foehn |
---|
| 29 | MKL_LIB = -L$(MKLPATH) -lmkl_solver_lp64_sequential -lmkl_intel_lp64 -lmkl_sequential -lmkl_core# foehn |
---|
| 30 | export $MKL_LIB |
---|
| 31 | |
---|
| 32 | IFORT = /opt/intel/Compiler/11.0/074/bin/intel64/ifort # foehn |
---|
| 33 | GFC = /applis/ciment/stow/x86_64/gcc-4.1.2/bin/gfortran # foehn |
---|
| 34 | ARITHM = -O2 -fp-model precise -heap-arrays # options pour une meilleure arithmetique (normalement reproductible) |
---|
| 35 | ARITHM = -O2 -fp-model precise -vec_report0 -traceback # |
---|
| 36 | #ARITHM = -fp-model precise -warn all -CU -CA # options pour une meilleure arithmetique (normalement reproductible) |
---|
| 37 | # ARITHM = -03 # trop brutal ne pas utiliser |
---|
| 38 | |
---|
| 39 | FT = $(IFORT) $(ARITHM) -c -traceback -CB -g # -fpe0 #-pg # -g # -pg -ipo !aurel : j'ai enleve -CB |
---|
| 40 | LK = $(IFORT) $(ARITHM) -i_dynamic -traceback -CB -g # -fpe0 #-pg #-g # -pg |
---|
| 41 | F_NETCDF = $(IFORT) $(ARITHM) -c -I$(NCDF_INC) -traceback -CB -g # -fpe0 #-pg -ipo # -g |
---|
| 42 | |
---|
| 43 | |
---|
| 44 | # listes pour la resolution equation elliptique |
---|
| 45 | #------------------------------------------------ |
---|
| 46 | |
---|