1 | #- $Id$ |
---|
2 | |
---|
3 | |
---|
4 | submitdir=$(shell pwd) |
---|
5 | arch_path=${submitdir}/ARCH/ |
---|
6 | sources_RH8_path=${submitdir}/SOURCES/REDHAT8 |
---|
7 | |
---|
8 | all : |
---|
9 | if [ -s ./.resol ] ; then $(M_K) `head -1 .resol` ; else $(M_K) NMHC_AERxLMD9695-L39 ; fi |
---|
10 | |
---|
11 | |
---|
12 | NMHC_AERxLMD9695-L39 : libioipsl xios liborchidee nmhcaer96x95x39 lmdz96x95x39 verif |
---|
13 | echo "NMHC_AERxLMD9695-L39" >.resol |
---|
14 | echo "RESOL_ATM_3D=96x95x39" >>.resol |
---|
15 | echo "CHEM=NMHC_AER" > .chimie |
---|
16 | |
---|
17 | NMHC_AER_SxLMD9695-L39 : libioipsl xios liborchidee nmhcaers96x95x39 lmdz96x95x39 verif |
---|
18 | echo "NMHC_AER_SxLMD9695-L39" >.resol |
---|
19 | echo "RESOL_ATM_3D=96x95x39" >>.resol |
---|
20 | echo "CHEM=NMHC_AER_S" > .chimie |
---|
21 | |
---|
22 | NMHCxLMD9695-L39 : libioipsl xios liborchidee nmhc96x95x39 lmdz96x95x39 verif |
---|
23 | echo "NMHCxLMD9695-L39" >.resol |
---|
24 | echo "RESOL_ATM_3D=96x95x39" >>.resol |
---|
25 | echo "CHEM=NMHC" > .chimie |
---|
26 | |
---|
27 | AERxLMD9695-L39 : libioipsl xios liborchidee aer96x95x39 lmdz96x95x39 verif |
---|
28 | echo "AERxLMD9695-L39" >.resol |
---|
29 | echo "RESOL_ATM_3D=96x95x39" >>.resol |
---|
30 | echo "CHEM=AER" > .chimie |
---|
31 | |
---|
32 | AERxLMD144142-L39 : libioipsl xios liborchidee aer144x142x39 lmdz144x142x39 verif |
---|
33 | echo "AERxLMD144142-L39" >.resol |
---|
34 | echo "RESOL_ATM_3D=144x142x39" >>.resol |
---|
35 | echo "CHEM=AER" > .chimie |
---|
36 | |
---|
37 | AERxLMD144142-L79 : libioipsl xios liborchidee aer144x142x79 lmdz144x142x79 verif |
---|
38 | echo "AERxLMD144142-L79" >.resol |
---|
39 | echo "RESOL_ATM_3D=144x142x79" >>.resol |
---|
40 | echo "CHEM=AER" > .chimie |
---|
41 | |
---|
42 | DUSSxLMD9695-L39 : libioipsl xios liborchidee duss96x95x39 lmdz96x95x39 verif |
---|
43 | echo "DUSSxLMD9695-L39" >.resol |
---|
44 | echo "RESOL_ATM_3D=96x95x39" >>.resol |
---|
45 | echo "CHEM=DUSS" > .chimie |
---|
46 | |
---|
47 | DUSSxLMD144142-L39 : libioipsl xios liborchidee duss144x142x39 lmdz144x142x39 verif |
---|
48 | echo "DUSSxLMD144142-L39" >.resol |
---|
49 | echo "RESOL_ATM_3D=144x142x39" >>.resol |
---|
50 | echo "CHEM=DUSS" > .chimie |
---|
51 | |
---|
52 | GESxLMD9695-L39 : libioipsl xios liborchidee ges96x95x39 lmdz96x95x39 verif |
---|
53 | echo "GESxLMD9695-L39" >.resol |
---|
54 | echo "RESOL_ATM_3D=96x95x39" >>.resol |
---|
55 | echo "CHEM=GES" > .chimie |
---|
56 | |
---|
57 | |
---|
58 | xios : |
---|
59 | (cd ../../modeles/XIOS ; cp ${sources_RH8_path}/XIOS/arch-${FCM_ARCH}.fcm arch/.; ./make_xios --arch_path ${arch_path} --arch ${FCM_ARCH} --job 8 ; cp bin/xios_server.exe ../../bin/. ; ) |
---|
60 | |
---|
61 | libioipsl : ../../modeles/IOIPSL/src |
---|
62 | (ln -s ${arch_path}/arch-${FCM_ARCH}.env ${arch_path}/arch.env; . ${arch_path}/arch-${FCM_ARCH}.env; cd ../../modeles/IOIPSL/src ; $(M_K) -f Makefile) |
---|
63 | |
---|
64 | |
---|
65 | liborchidee : ../../modeles/ORCHIDEE/ |
---|
66 | (. ${arch_path}/arch-${FCM_ARCH}.env; cd ../../modeles/ORCHIDEE/ ; cp ${sources_RH8_path}/ORCHIDEE/mod_orchidee_para.F90 src_parallel/.; ./makeorchidee_fcm -parallel mpi_omp -prod -xios -arch $(FCM_ARCH) -j 8 -driver -xios2) |
---|
67 | |
---|
68 | nmhcaer96x95x39: |
---|
69 | $(M_K) inca RESOL_INCA=96x95x39 CHIMIE=NMHC_AER |
---|
70 | |
---|
71 | nmhcaers96x95x39: |
---|
72 | $(M_K) inca RESOL_INCA=96x95x39 CHIMIE=NMHC_AER_S |
---|
73 | |
---|
74 | nmhc96x95x39: |
---|
75 | $(M_K) inca RESOL_INCA=96x95x39 CHIMIE=NMHC |
---|
76 | |
---|
77 | aer96x95x39: |
---|
78 | $(M_K) inca RESOL_INCA=96x95x39 CHIMIE=AER |
---|
79 | |
---|
80 | aer144x142x39: |
---|
81 | $(M_K) inca RESOL_INCA=144x142x39 CHIMIE=AER |
---|
82 | |
---|
83 | aer144x142x79: |
---|
84 | $(M_K) inca RESOL_INCA=144x142x79 CHIMIE=AER |
---|
85 | |
---|
86 | duss96x95x39: |
---|
87 | $(M_K) inca RESOL_INCA=96x95x39 CHIMIE=DUSS |
---|
88 | |
---|
89 | duss144x142x39: |
---|
90 | $(M_K) inca RESOL_INCA=144x142x39 CHIMIE=DUSS |
---|
91 | |
---|
92 | ges96x95x39: |
---|
93 | $(M_K) inca RESOL_INCA=96x95x39 CHIMIE=GES |
---|
94 | |
---|
95 | lmdz96x95x39: |
---|
96 | $(M_K) lmdz RESOL_LMDZ=96x95x39 |
---|
97 | |
---|
98 | lmdz144x142x39: |
---|
99 | $(M_K) lmdz RESOL_LMDZ=144x142x39 |
---|
100 | |
---|
101 | lmdz144x142x79: |
---|
102 | $(M_K) lmdz RESOL_LMDZ=144x142x79 |
---|
103 | |
---|
104 | |
---|
105 | inca: ../../modeles/INCA |
---|
106 | # (. ${arch_path}/arch-${FCM_ARCH}.env; cd ../../modeles/INCA; cp ${sources_RH8_path}/INCA/print_inca.F90 src/INCA_MOD/. ; ./makeinca_fcm -chimie $(CHIMIE) -prod -resol $(RESOL_INCA) -j 8 -arch $(FCM_ARCH); cp SIMULATIONS/$(CHIMIE)/inca.dat ../../bin/inca.dat ; ) |
---|
107 | (. ${arch_path}/arch-${FCM_ARCH}.env; cd ../../modeles/INCA; cp ${sources_RH8_path}/INCA/print_inca.F90 src/INCA_MOD/. ; ./makeinca_fcm -chimie $(CHIMIE) -prod -xios -parallel mpi_omp -resol $(RESOL_INCA) -j 8 -arch $(FCM_ARCH); cp SIMULATIONS/$(CHIMIE)/inca.dat ../../bin/inca.dat ; ) |
---|
108 | |
---|
109 | lmdz: ../../modeles/LMDZ |
---|
110 | # (. ${arch_path}/arch-${FCM_ARCH}.env; cd ../../modeles/LMDZ; cp ${sources_RH8_path}/LMDZ/arch-${FCM_ARCH}.fcm arch/. ; ./makelmdz_fcm -d $(RESOL_LMDZ) -prod -chimie INCA -arch $(FCM_ARCH) -j 8 ce0l ; mv bin/ce0l_$(RESOL_LMDZ)_phylmd_seq_inca.e ../../bin/create_etat0_limit.e ; ) |
---|
111 | (. ${arch_path}/arch-${FCM_ARCH}.env; cd ../../modeles/LMDZ; cp ${sources_RH8_path}/LMDZ/arch-${FCM_ARCH}.fcm arch/. ; ./makelmdz_fcm -d $(RESOL_LMDZ) -prod -rrtm true -chimie INCA -io xios -mem -cosp false -v true -parallel mpi_omp -arch $(FCM_ARCH) -j 8 gcm ; mv bin/gcm_$(RESOL_LMDZ)_phylmd_para_mem_orch_inca.e ../../bin/gcm.e ; ) |
---|
112 | |
---|
113 | |
---|
114 | verif: ../../bin |
---|
115 | ls -l ../../bin |
---|
116 | |
---|
117 | clean : |
---|
118 | (rm -rf $(LIBDIR)/* ; rm -rf ../../modeles/LMDZ/libo/* ../../modeles/LMDZ/.lock ; ) |
---|
119 | (cd ../../modeles/IOIPSL/src ; ${M_K} clean ; ) |
---|
120 | (cd ../../modeles/ORCHIDEE ; ./makeorchidee_fcm -clean ; ) |
---|
121 | (cd ../../modeles/INCA ; ./makeinca_fcm -clean ) |
---|
122 | |
---|
123 | clean_inca : |
---|
124 | (cd ../../modeles/INCA ; ./makeinca_fcm -clean ) |
---|
125 | |
---|
126 | clean_lmdz : |
---|
127 | (rm -rf $(LIBDIR)/* ; rm -rf ../../modeles/LMDZ/libo/* ../../modeles/LMDZ/.lock ; ) |
---|