Last change
on this file since 22 was
22,
checked in by roche, 8 years ago
|
Petites adaptations diverses du code pour compilation en gfortran. Ajout d un Makefile flexible a option pour choisir ifort ou gfortran.
|
File size:
1.4 KB
|
Line | |
---|
1 | # Makefile de GRISLI - compilo et options pour Cat (pc-226) |
---|
2 | # FT options de compilation |
---|
3 | # LK options de link |
---|
4 | |
---|
5 | # Rappel de quelques options interessantes |
---|
6 | #------------------------------------------- |
---|
7 | # faire imperativement attention a l'arithmetique |
---|
8 | # -fpe0 s'arrete sur les floating point exception (sauf underflow) |
---|
9 | # -CB Performs run-time checking on array subscript and character substring expressions |
---|
10 | # -g pour debug |
---|
11 | # -pg pour le profiling |
---|
12 | # -traceback permet de connaitre la ligne qui plante |
---|
13 | |
---|
14 | # faire man ifort pour plus d'infos |
---|
15 | |
---|
16 | # le directory dans lequel sont les compilateurs et MKL |
---|
17 | # DIRLOCAL=/usr/local variable d'environnement a definir dans .bash_profile |
---|
18 | |
---|
19 | debug ?= 0 |
---|
20 | |
---|
21 | # lit le nom du fichier param pour lancer sur r2d2 par une commande : echo jobparam | LBQ.... |
---|
22 | |
---|
23 | JOB = 'job' |
---|
24 | |
---|
25 | LIBSYS = /usr/lib |
---|
26 | INCSYS = /usr/include |
---|
27 | |
---|
28 | # librairies |
---|
29 | |
---|
30 | NCDF_INC = $(INCSYS) |
---|
31 | NCDF_LIB = -L$(LIBSYS) -lnetcdff -lnetcdf |
---|
32 | |
---|
33 | IFORT= gfortran |
---|
34 | |
---|
35 | ARITHMi = -O2 -ffree-line-length-none -mtune=native -mfpmath=sse |
---|
36 | |
---|
37 | ifeq ($(debug), 1) |
---|
38 | ARITHM = $(ARITHMi) -g -pg -Wall -fno-align-commons -p -ggdb -ffpe-trap=invalid,zero,overflow,underflow -fbacktrace -fcheck=all |
---|
39 | else |
---|
40 | ARITHM = $(ARITHMi) |
---|
41 | endif |
---|
42 | |
---|
43 | |
---|
44 | # debug : -g -CB -fp-stack-check -check all |
---|
45 | FT = $(IFORT) $(ARITHM) -c |
---|
46 | LK = $(IFORT) $(ARITHM) |
---|
47 | F_NETCDF = $(IFORT) $(ARITHM) -c -I$(NCDF_INC) |
---|
48 | F_90 = |
---|
49 | |
---|
50 | # The End of All Things (op. cit.) |
---|
Note: See
TracBrowser
for help on using the repository browser.