source: CONFIG/UNIFORM/v6/IPSLCM6/AA_make

Last change on this file was 4449, checked in by tlurton, 3 years ago

1) Add new target in AA_make, for new configuration IPSLCM6-STRATAER-LR (= IPSLCM6-LR + stratospheric aerosols).
2) Correct misprint "_inca.e" in the "lmdz" target, which sneaked in at rev. 4437, and probably made any compilation fail in basic IPSLCM6-LR mode with 6.1.10_work.

File size: 10.0 KB
Line 
1#- $Id$
2#-
3#- AA_make for IPSLCM5_v4 configuration
4#-
5
6OASIS_DIR = ../../oasis3-mct
7
8MYSRC_DIR = $(shell /bin/pwd)
9
10all :
11        if [ -s ./.resol ] ; then $(M_K) `head -1 .resol` ; else $(M_K) IPSLCM6-LR ; fi
12
13IPSLCM6A-VLR : 
14        $(M_K) ORCA2LIM2xLMD9695-L39
15
16IPSLCM6-LR :
17        $(M_K) ORCA1LIM3xLMD144142-L79
18
19IPSLCM6-MR1 :
20        $(M_K) ORCA1LIM3xLMD256256-L79
21
22IPSLCM6-MR025 :
23        $(M_K) ORCA025LIM3xLMD256256-L79-NOPISCES
24
25IPSLCM6-AER-LR :
26        $(M_K) ORCA1LIM3xLMD144142-L79xAER
27
28IPSLCM6-STRATAER-LR :
29        $(M_K) ORCA1LIM3xLMD144142-L79xSTRATAER
30
31ORCA2LIM2xLMD9695-L39 : libioipsl oasis3-mct xios liborchidee orca2lim2 lmdz96x95x39 verif
32        echo "ORCA2LIM2xLMD9695-L39" >.resol
33        echo "RESOL_ATM_3D=96x95x39" >>.resol
34        echo "$(LIB_MPI)" >.libmpi
35
36ORCA2LIM3xLMD9695-L39 : libioipsl oasis3-mct xios liborchidee orca2lim3 lmdz96x95x39 verif
37        echo "ORCA2LIM3xLMD9695-L39" >.resol
38        echo "RESOL_ATM_3D=96x95x39" >>.resol
39        echo "$(LIB_MPI)" >.libmpi
40
41ORCA2LIM2xLMD144142-L39 : libioipsl oasis3-mct xios liborchidee orca2lim2 lmdz144x142x39 verif
42        echo "ORCA2LIM2xLMD144142-L39" >.resol
43        echo "RESOL_ATM_3D=144x142x39" >>.resol
44        echo "$(LIB_MPI)" >.libmpi
45
46ORCA1LIM3xLMD9695-L39 : libioipsl oasis3-mct xios liborchidee orca1lim3 lmdz96x95x39 verif
47        echo "ORCA1LIM3xLMD9695-L39" >.resol
48        echo "RESOL_ATM_3D=96x95x39" >>.resol
49        echo "$(LIB_MPI)" >.libmpi
50
51ORCA1LIM3xLMD9695-L39-NOPISCES : libioipsl oasis3-mct xios liborchidee orca1lim3nopisces lmdz96x95x39 verif
52        echo "ORCA1LIM3xLMD9695-L39" >.resol
53        echo "RESOL_ATM_3D=96x95x39" >>.resol
54        echo "$(LIB_MPI)" >.libmpi
55
56ORCA1LIM3xLMD144142-L39 : libioipsl oasis3-mct xios liborchidee orca1lim3 lmdz144x142x39 verif
57        echo "ORCA1LIM3xLMD144142-L39" >.resol
58        echo "RESOL_ATM_3D=144x142x39" >>.resol
59        echo "$(LIB_MPI)" >.libmpi
60
61ORCA1LIM3xLMD144142-L39-NOPISCES : libioipsl oasis3-mct xios liborchidee orca1lim3nopisces lmdz144x142x39 verif
62        echo "ORCA1LIM3xLMD144142-L39" >.resol
63        echo "RESOL_ATM_3D=144x142x39" >>.resol
64        echo "$(LIB_MPI)" >.libmpi
65
66ORCA1LIM3xLMD144142-L79 : libioipsl oasis3-mct xios liborchidee orca1lim3 lmdz144x142x79 verif
67        echo "ORCA1LIM3xLMD144142-L79" >.resol
68        echo "RESOL_ATM_3D=144x142x79" >>.resol
69        echo "$(LIB_MPI)" >.libmpi
70
71ORCA1LIM3xLMD144142-L79xAER : libioipsl oasis3-mct xios liborchidee orca1lim3  lmdz-aer144x142x79 verif
72        echo "ORCA1LIM3xLMD144142-L79xAER" >.resol
73        echo "RESOL_ATM_3D=144x142x79" >>.resol
74        echo "$(LIB_MPI)" >.libmpi
75        echo "CHEM=AER" > .chimie
76
77ORCA1LIM3xLMD144142-L79xSTRATAER : libioipsl oasis3-mct xios liborchidee orca1lim3  lmdz-strataer144x142x79 verif
78        echo "ORCA1LIM3xLMD144142-L79xSTRATAER" >.resol
79        echo "RESOL_ATM_3D=144x142x79" >>.resol
80        echo "$(LIB_MPI)" >.libmpi
81
82ORCA1LIM3xLMD144142-L79-NOPISCES : libioipsl oasis3-mct xios liborchidee orca1lim3nopisces lmdz144x142x79 verif
83        echo "ORCA1LIM3xLMD144142-L79-NOPISCES" >.resol
84        echo "RESOL_ATM_3D=144x142x79" >>.resol
85        echo "$(LIB_MPI)" >.libmpi
86
87ORCA1LIM3xLMD256256-L79 : libioipsl oasis3-mct xios liborchidee orca1lim3 lmdz256x256x79 verif
88        echo "ORCA1LIM3xLMD256256-L79" >.resol
89        echo "RESOL_ATM_3D=256x256x79" >>.resol
90        echo "$(LIB_MPI)" >.libmpi
91
92ORCA025LIM3xLMD256256-L79 : libioipsl oasis3-mct xios liborchidee orca025lim3 lmdz256x256x79 verif
93        echo "ORCA025LIM3xLMD256256-L79" >.resol
94        echo "RESOL_ATM_3D=256x256x79" >>.resol
95        echo "$(LIB_MPI)" >.libmpi
96
97ORCA025LIM3xLMD256256-L79-NOPISCES : libioipsl oasis3-mct xios liborchidee orca025lim3nopisces lmdz256x256x79 verif
98        echo "ORCA025LIM3xLMD256256-L79" >.resol
99        echo "RESOL_ATM_3D=256x256x79" >>.resol
100        echo "$(LIB_MPI)" >.libmpi
101
102libioipsl : ../../modeles/IOIPSL/src
103        (cd ../../modeles/IOIPSL/src ; $(M_K) -f Makefile)
104
105oasis3-mct:
106        (cd $(OASIS_DIR)/util/make_dir ; cp $(MYSRC_DIR)/SOURCES/OASIS3-MCT/make_${FCM_ARCH} make.inc ; make -f TopMakefileOasis3 ; )
107
108liborchidee : ../../modeles/ORCHIDEE/
109        (cd ../../modeles/ORCHIDEE/ ; ./makeorchidee_fcm -parallel mpi_omp -arch $(FCM_ARCH) -j 8 -xios2)
110
111lmdz96x95x39:
112        $(M_K) lmdz RESOL_LMDZ=96x95x39
113
114lmdz144x142x39:
115        $(M_K) lmdz RESOL_LMDZ=144x142x39
116
117lmdz144x142x79:
118        $(M_K) lmdz RESOL_LMDZ=144x142x79
119
120lmdz256x256x79:
121        $(M_K) lmdz RESOL_LMDZ=256x256x79
122
123lmdz-aer144x142x79:
124        $(M_K) lmdzinca RESOL=144x142x79 CHIMIE=AER
125
126lmdz-strataer144x142x79:
127        $(M_K) lmdzstrataer RESOL_LMDZ=144x142x79
128
129lmdz: ../../modeles/LMDZ
130#       (cd ../../modeles/LMDZ; ./makelmdz_fcm -d $(RESOL_LMDZ) -arch $(FCM_ARCH) -j 8 ce0l ; mv bin/ce0l_$(RESOL_LMDZ)_phylmd_seq.e ../../bin/create_etat0_limit.e ; )
131        (cd ../../modeles/LMDZ ; ./makelmdz_fcm   -d $(RESOL_LMDZ) -mem -cosp true -v true -parallel mpi_omp -io xios -rrtm true -c OMCT -job 8 -arch $(FCM_ARCH) gcm  ; mv bin/gcm_$(RESOL_LMDZ)_phylmd_para_mem_orch_couple.e ../../bin/gcm.e ; )
132
133lmdzinca: ../../modeles/LMDZ
134#       (cd ../../modeles/INCA; ./makeinca_fcm -chimie $(CHIMIE) -prod  -resol $(RESOL) -j 8 -arch $(FCM_ARCH); cp SIMULATIONS/$(CHIMIE)/inca.dat ../../bin/inca.dat ; )
135        (cd ../../modeles/INCA; ./makeinca_fcm -chimie $(CHIMIE) -prod -xios -parallel mpi_omp -resol $(RESOL) -j 8 -arch $(FCM_ARCH); cp SIMULATIONS/$(CHIMIE)/inca.dat ../../bin/inca.dat ; )
136#       (cd ../../modeles/LMDZ; ./makelmdz_fcm -d $(RESOL) -arch $(FCM_ARCH) -j 8 ce0l ; mv bin/ce0l_$(RESOL)_phylmd_seq.e ../../bin/create_etat0_limit.e ; )
137        (cd ../../modeles/LMDZ ; ./makelmdz_fcm   -chimie INCA   -d $(RESOL) -mem -cosp true -v true -parallel mpi_omp -io xios -rrtm true -c OMCT -job 8 -arch $(FCM_ARCH) gcm  ; mv bin/gcm_$(RESOL)_phylmd_para_mem_orch_couple_inca.e ../../bin/gcm.e ; )
138
139lmdzstrataer: ../../modeles/LMDZ
140        (cd ../../modeles/LMDZ ; ./makelmdz_fcm   -d $(RESOL_LMDZ) -mem -cosp true -v true -parallel mpi_omp -io xios -rrtm true -strataer true -c OMCT -job 8 -arch $(FCM_ARCH) gcm  ; mv bin/gcm_$(RESOL_LMDZ)_phylmd_para_mem_orch_couple.e ../../bin/gcm.e ; )
141
142xios: ../../modeles/XIOS
143        (cd ../../modeles/XIOS; ./make_xios --arch $(FCM_ARCH) --prod --use_oasis oasis3_mct --job 8 ; cp bin/xios_server.exe ../../bin/. ; )
144
145orca2lim2:  ../../modeles/NEMOGCM/CONFIG
146        (cd ../../modeles/NEMOGCM/CONFIG; cp ../../../config/IPSLCM6/SOURCES/NEMO/arch-${FCM_ARCH}.fcm ../ARCH/. ; cp ../../../config/IPSLCM6/SOURCES/NEMO/*.cfg ../TOOLS/COMPILE/. ; ./makenemo -m ${FCM_ARCH} -n ORCA2_LIM_PISCES -e "$(MYSRC_DIR)/SOURCES/NEMO" -j16 add_key "key_lim2_vp key_diahth key_oasis3" del_key "key_nosignedzero " ; cp ORCA2_LIM_PISCES/BLD/bin/nemo.exe ../../../bin/opa ; )
147
148orca2lim3:  ../../modeles/NEMOGCM/CONFIG
149        (cd ../../modeles/NEMOGCM/CONFIG; cp ../../../config/IPSLCM6/SOURCES/NEMO/arch-${FCM_ARCH}.fcm ../ARCH/. ; cp ../../../config/IPSLCM6/SOURCES/NEMO/*.cfg ../TOOLS/COMPILE/. ; ./makenemo -m ${FCM_ARCH} -n ORCA2_LIM3_PISCES  -e "$(MYSRC_DIR)/SOURCES/NEMO" -j16 add_key "key_lim3 key_oasis3 key_top key_pisces" del_key "key_lim2 key_nosignedzero" ; cp ORCA2_LIM3_PISCES/BLD/bin/nemo.exe ../../../bin/opa ; )
150
151orca1lim3: ../../modeles/NEMOGCM/CONFIG
152        (cd ../../modeles/NEMOGCM/CONFIG ; cp ../../../config/IPSLCM6/SOURCES/NEMO/*.*90 ORCA1_LIM3_PISCES/MY_SRC/ ; cp ../../../config/IPSLCM6/SOURCES/NEMO/arch-${FCM_ARCH}.fcm ../ARCH/. ; cp ../../../config/IPSLCM6/SOURCES/NEMO/*.cfg ../TOOLS/COMPILE/. ; ./makenemo -m ${FCM_ARCH} -n ORCA1_LIM3_PISCES  -j16 add_key "key_oasis3 key_diahth"  del_key "key_mpp_rep key_nosignedzero                  " ; cp ORCA1_LIM3_PISCES/BLD/bin/nemo.exe ../../../bin/opa ; )
153
154orca1lim3nopisces: ../../modeles/NEMOGCM/CONFIG
155        (cd ../../modeles/NEMOGCM/CONFIG ; cp ../../../config/IPSLCM6/SOURCES/NEMO/*.*90 ORCA1_LIM3_PISCES/MY_SRC/ ; cp ../../../config/IPSLCM6/SOURCES/NEMO/arch-${FCM_ARCH}.fcm ../ARCH/. ; cp ../../../config/IPSLCM6/SOURCES/NEMO/*.cfg ../TOOLS/COMPILE/. ; ./makenemo -m ${FCM_ARCH} -n ORCA1_LIM3_PISCES  -j16 add_key "key_oasis3                   " del_key "key_mpp_rep key_nosignedzero key_top key_pisces" ; cp ORCA1_LIM3_PISCES/BLD/bin/nemo.exe ../../../bin/opa ; )
156
157orca1lim2:  ../../modeles/NEMOGCM/CONFIG
158        (cd ../../modeles/NEMOGCM/CONFIG; cp ../../../config/IPSLCM6/SOURCES/NEMO/arch-${FCM_ARCH}.fcm ../ARCH/. ; cp ../../../config/IPSLCM6/SOURCES/NEMO/*.cfg ../TOOLS/COMPILE/. ; ./makenemo -m ${FCM_ARCH} -n ORCA1_LIM2_PISCES -d "OPA_SRC LIM_SRC_2 NST_SRC TOP_SRC" -e "$(MYSRC_DIR)/SOURCES/NEMO" -j16 add_key "key_top key_pisces key_lim2 key_lim2_vp key_oasis3 key_vvl" del_key "key_lim3 key_nosignedzero " ; cp ORCA1_LIM2_PISCES/BLD/bin/nemo.exe ../../../bin/opa ; )
159
160orca025lim3: ../../modeles/NEMOGCM/CONFIG
161        (cd ../../modeles/NEMOGCM/CONFIG ; cp ../../../config/IPSLCM6/SOURCES/NEMO/*.*90 ORCA025_LIM3_PISCES/MY_SRC/ ; cp ../../../config/IPSLCM6/SOURCES/NEMO/arch-${FCM_ARCH}.fcm ../ARCH/. ; cp ../../../config/IPSLCM6/SOURCES/NEMO/*.cfg ../TOOLS/COMPILE/. ; ./makenemo -m ${FCM_ARCH} -n ORCA025_LIM3_PISCES  -j16 add_key "key_oasis3 key_diahth"  del_key "key_mpp_rep key_nosignedzero" ; cp ORCA025_LIM3_PISCES/BLD/bin/nemo.exe ../../../bin/opa ; )
162
163orca025lim3nopisces: ../../modeles/NEMOGCM/CONFIG
164        (cd ../../modeles/NEMOGCM/CONFIG ; cp ../../../config/IPSLCM6/SOURCES/NEMO/*.*90 ORCA025_LIM3_PISCES/MY_SRC/ ; cp ../../../config/IPSLCM6/SOURCES/NEMO/arch-${FCM_ARCH}.fcm ../ARCH/. ; cp ../../../config/IPSLCM6/SOURCES/NEMO/*.cfg ../TOOLS/COMPILE/. ; ./makenemo -m ${FCM_ARCH} -n ORCA025_LIM3_PISCES  -j16 add_key "key_oasis3 key_diahth"  del_key "key_mpp_rep key_nosignedzero  key_top key_pisces  key_age              " ; cp ORCA025_LIM3_PISCES/BLD/bin/nemo.exe ../../../bin/opa ; )
165
166verif: ../../bin
167        ls -l ../../bin
168
169clean : cleanioipsl cleanoasis cleanxios cleanorchidee cleannemo cleanlmdz
170        rm -rf $(LIBDIR)/* ; rm -f $(BINDIR)/*
171
172cleannemo :
173        ../../modeles/NEMOGCM/CONFIG/makenemo clean
174        rm -f $(BINDIR)/opa
175
176cleanlmdz :
177        rm -rf ../../modeles/LMDZ/libo/* ../../modeles/LMDZ/bin/* ../../modeles/LMDZ/.lock
178        rm -f $(BINDIR)/gcm.e $(BINDIR)/create_etat0_limit.e
179
180cleanorchidee :
181        ( cd ../../modeles/ORCHIDEE ; ./makeorchidee_fcm -clean )
182        rm -f $(BINDIR)/gcm.e   
183
184cleanoasis :
185        rm -rf $(OASIS_DIR)/BLD
186        rm -f $(BINDIR)/oasis
187
188clean_inca :
189        (cd  ../../modeles/INCA ; ./makeinca_fcm -clean )
190
191cleanxios :
192        rm -rf ../../modeles/XIOS/bin/ ../../modeles/XIOS/inc ../../modeles/XIOS/obj ../../modeles/XIOS/lib
193
194cleanioipsl :
195        ( cd ../../modeles/IOIPSL/src ; gmake clean )
196        ( cd $(BINDIR) ; rm -f calendar.mod  defprec.mod  errioipsl.mod  flincom.mod  fliocom.mod  getincom.mod  histcom.mod  ioipsl.mod  libioipsl.a   mathelp.mod  restcom.mod  stringop.mod )       
197
Note: See TracBrowser for help on using the repository browser.