1 | #- $Id$ |
---|
2 | #- |
---|
3 | #- AA_make for IPSLCM5_v4 configuration |
---|
4 | #- |
---|
5 | |
---|
6 | OASIS_DIR = ../../oasis3-mct |
---|
7 | |
---|
8 | MYSRC_DIR = $(shell /bin/pwd) |
---|
9 | |
---|
10 | all : |
---|
11 | if [ -s ./.resol ] ; then $(M_K) `head -1 .resol` ; else $(M_K) ORCA2LIM2xLMD9695-L39 ; fi |
---|
12 | |
---|
13 | ORCA2LIM2xLMD9695-L39 : libioipsl oasis3-mct xios liborchidee orca2lim2 lmdz96x95x39 verif |
---|
14 | echo "ORCA2LIM2xLMD9695-L39" >.resol |
---|
15 | echo "RESOL_ATM_3D=96x95x39" >>.resol |
---|
16 | echo "$(LIB_MPI)" >.libmpi |
---|
17 | |
---|
18 | ORCA2LIM3xLMD9695-L39 : libioipsl oasis3-mct xios liborchidee orca2lim3 lmdz96x95x39 verif |
---|
19 | echo "ORCA2LIM3xLMD9695-L39" >.resol |
---|
20 | echo "RESOL_ATM_3D=96x95x39" >>.resol |
---|
21 | echo "$(LIB_MPI)" >.libmpi |
---|
22 | |
---|
23 | ORCA2LIM2xLMD9695-L39-NOPISCES : libioipsl oasis3-mct xios liborchidee orca2lim2nopisces lmdz96x95x39 verif |
---|
24 | echo "ORCA2LIM2xLMD9695-L39" >.resol |
---|
25 | echo "RESOL_ATM_3D=96x95x39" >>.resol |
---|
26 | echo "NOPISCES" >>.resol |
---|
27 | echo "$(LIB_MPI)" >.libmpi |
---|
28 | |
---|
29 | ORCA2LIM2xLMD144142-L39 : libioipsl oasis3-mct xios liborchidee orca2lim2 lmdz144x142x39 verif |
---|
30 | echo "ORCA2LIM2xLMD144142-L39" >.resol |
---|
31 | echo "RESOL_ATM_3D=144x142x39" >>.resol |
---|
32 | echo "$(LIB_MPI)" >.libmpi |
---|
33 | |
---|
34 | ORCA2LIM2xLMD144142-L59 : libioipsl oasis3-mct xios liborchidee orca2lim2 lmdz144x142x59 verif |
---|
35 | echo "ORCA2LIM2xLMD144142-L59" >.resol |
---|
36 | echo "RESOL_ATM_3D=144x142x59" >>.resol |
---|
37 | echo "$(LIB_MPI)" >.libmpi |
---|
38 | |
---|
39 | ORCA2LIM2xLMD144142-L79 : libioipsl oasis3-mct xios liborchidee orca2lim2 lmdz144x142x79 verif |
---|
40 | echo "ORCA2LIM2xLMD144142-L79" >.resol |
---|
41 | echo "RESOL_ATM_3D=144x142x79" >>.resol |
---|
42 | echo "$(LIB_MPI)" >.libmpi |
---|
43 | |
---|
44 | ORCA2LIM3xLMD144142-L39 : libioipsl oasis3-mct xios liborchidee orca2lim3 lmdz144x142x39 verif |
---|
45 | echo "ORCA2LIM3xLMD144142-L39" >.resol |
---|
46 | echo "RESOL_ATM_3D=144x142x39" >>.resol |
---|
47 | echo "$(LIB_MPI)" >.libmpi |
---|
48 | |
---|
49 | ORCA2LIM3xLMD144142-L59 : libioipsl oasis3-mct xios liborchidee orca2lim3 lmdz144x142x59 verif |
---|
50 | echo "ORCA2LIM3xLMD144142-L59" >.resol |
---|
51 | echo "RESOL_ATM_3D=144x142x59" >>.resol |
---|
52 | echo "$(LIB_MPI)" >.libmpi |
---|
53 | |
---|
54 | ORCA1LIM2xLMD9695-L39 : libioipsl oasis3-mct xios liborchidee orca1lim2 lmdz96x95x39 verif |
---|
55 | echo "ORCA1LIM2xLMD9695-L39" >.resol |
---|
56 | echo "RESOL_ATM_3D=96x95x39" >>.resol |
---|
57 | echo "$(LIB_MPI)" >.libmpi |
---|
58 | |
---|
59 | ORCA1LIM2xLMD144142-L39 : libioipsl oasis3-mct xios liborchidee orca1lim2 lmdz144x142x39 verif |
---|
60 | echo "ORCA1LIM2xLMD144142-L39" >.resol |
---|
61 | echo "RESOL_ATM_3D=144x142x39" >>.resol |
---|
62 | echo "$(LIB_MPI)" >.libmpii |
---|
63 | |
---|
64 | ORCA1LIM2xLMD144142-L59 : libioipsl oasis3-mct xios liborchidee orca1lim2 lmdz144x142x59 verif |
---|
65 | echo "ORCA1LIM2xLMD144142-L59" >.resol |
---|
66 | echo "RESOL_ATM_3D=144x142x59" >>.resol |
---|
67 | echo "$(LIB_MPI)" >.libmpii |
---|
68 | |
---|
69 | ORCA1LIM2xLMD144142-L79 : libioipsl oasis3-mct xios liborchidee orca1lim2 lmdz144x142x79 verif |
---|
70 | echo "ORCA1LIM2xLMD144142-L79" >.resol |
---|
71 | echo "RESOL_ATM_3D=144x142x79" >>.resol |
---|
72 | echo "$(LIB_MPI)" >.libmpii |
---|
73 | |
---|
74 | ORCA1LIM3xLMD9695-L39 : libioipsl oasis3-mct xios liborchidee orca1lim3 lmdz96x95x39 verif |
---|
75 | echo "ORCA1LIM3xLMD9695-L39" >.resol |
---|
76 | echo "RESOL_ATM_3D=96x95x39" >>.resol |
---|
77 | echo "$(LIB_MPI)" >.libmpi |
---|
78 | |
---|
79 | ORCA1LIM3xLMD144142-L39 : libioipsl oasis3-mct xios liborchidee orca1lim3 lmdz144x142x39 verif |
---|
80 | echo "ORCA1LIM3xLMD144142-L39" >.resol |
---|
81 | echo "RESOL_ATM_3D=144x142x39" >>.resol |
---|
82 | echo "$(LIB_MPI)" >.libmpi |
---|
83 | |
---|
84 | ORCA1LIM3xLMD144142-L59 : libioipsl oasis3-mct xios liborchidee orca1lim3 lmdz144x142x59 verif |
---|
85 | echo "ORCA1LIM3xLMD144142-L59" >.resol |
---|
86 | echo "RESOL_ATM_3D=144x142x59" >>.resol |
---|
87 | echo "$(LIB_MPI)" >.libmpi |
---|
88 | |
---|
89 | ORCA1LIM3xLMD144142-L79 : libioipsl oasis3-mct xios liborchidee orca1lim3 lmdz144x142x79 verif |
---|
90 | echo "ORCA1LIM3xLMD144142-L79" >.resol |
---|
91 | echo "RESOL_ATM_3D=144x142x79" >>.resol |
---|
92 | echo "$(LIB_MPI)" >.libmpi |
---|
93 | |
---|
94 | libioipsl : ../../modeles/IOIPSL/src |
---|
95 | (cd ../../modeles/IOIPSL/src ; $(M_K) -f Makefile) |
---|
96 | |
---|
97 | oasis3-mct: |
---|
98 | (cd $(OASIS_DIR)/util/make_dir ; cp $(MYSRC_DIR)/SOURCES/OASIS3-MCT/make_${FCM_ARCH} make.inc ; make -f TopMakefileOasis3 ; ) |
---|
99 | |
---|
100 | liborchidee : ../../modeles/ORCHIDEE/ |
---|
101 | (cd ../../modeles/ORCHIDEE/ ; ./makeorchidee_fcm -parallel mpi_omp -arch $(FCM_ARCH) -j 8 -xios) |
---|
102 | |
---|
103 | lmdz96x95x39: |
---|
104 | $(M_K) lmdz RESOL_LMDZ=96x95x39 |
---|
105 | |
---|
106 | lmdz144x142x39: |
---|
107 | $(M_K) lmdz RESOL_LMDZ=144x142x39 |
---|
108 | |
---|
109 | lmdz144x142x59: |
---|
110 | $(M_K) lmdz RESOL_LMDZ=144x142x59 |
---|
111 | |
---|
112 | lmdz144x142x79: |
---|
113 | $(M_K) lmdz RESOL_LMDZ=144x142x79 |
---|
114 | |
---|
115 | lmdz: ../../modeles/LMDZ |
---|
116 | # (cd ../../modeles/LMDZ; ./makelmdz_fcm -d $(RESOL_LMDZ) -arch $(FCM_ARCH) -j 8 ce0l ; cp bin/ce0l_$(RESOL_LMDZ)_phylmd_seq.e ../../bin/create_etat0_limit.e ; ) |
---|
117 | (cd ../../modeles/LMDZ ; ./makelmdz_fcm -d $(RESOL_LMDZ) -mem -cosp false -v true -parallel mpi_omp -io xios -c OMCT -job 8 -arch $(FCM_ARCH) gcm ; cp bin/gcm_$(RESOL_LMDZ)_phylmd_para_mem_orch_couple.e ../../bin/gcm.e ; ) |
---|
118 | |
---|
119 | xios: ../../modeles/XIOS |
---|
120 | (cd ../../modeles/XIOS; ./make_xios --arch $(FCM_ARCH) --prod --use_oasis oasis3_mct --job 8 ; cp bin/xios_server.exe ../../bin/. ; ) |
---|
121 | |
---|
122 | orca2lim2: ../../modeles/NEMOGCM/CONFIG |
---|
123 | (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_oasis3 key_diahth key_diaar5" del_key "key_nosignedzero " ; cp ORCA2_LIM_PISCES/BLD/bin/nemo.exe ../../../bin/opa ; ) |
---|
124 | |
---|
125 | orca2lim2nopisces: ../../modeles/NEMOGCM/CONFIG |
---|
126 | (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 -e "$(MYSRC_DIR)/SOURCES/NEMO" -j16 add_key "key_lim2_vp key_oasis3 key_diahth key_diaar5" del_key "key_nosignedzero" ; cp ORCA2_LIM/BLD/bin/nemo.exe ../../../bin/opa ; ) |
---|
127 | |
---|
128 | orca2lim3: ../../modeles/NEMOGCM/CONFIG |
---|
129 | (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 -d "OPA_SRC LIM_SRC_3 NST_SRC TOP_SRC" -e "$(MYSRC_DIR)/SOURCES/NEMO" -j16 add_key "key_lim3 key_oasis3 key_top key_pisces key_diahth key_diaar5 key_vvl key_dynspg_ts" del_key "key_lim2 key_dynspg_flt key_nosignedzero" ; cp ORCA2_LIM3_PISCES/BLD/bin/nemo.exe ../../../bin/opa ; ) |
---|
130 | |
---|
131 | orca1lim3: ../../modeles/NEMOGCM/CONFIG |
---|
132 | (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 -d "OPA_SRC LIM_SRC_3 NST_SRC TOP_SRC" -j16 add_key "key_mpp_mpi key_oasis3 key_top key_pisces key_diahth key_diaar5" del_key "key_mpp_mpi" ; cp ORCA1_LIM3_PISCES/BLD/bin/nemo.exe ../../../bin/opa ; ) |
---|
133 | |
---|
134 | orca1lim2: ../../modeles/NEMOGCM/CONFIG |
---|
135 | (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_diahth key_diaar5 key_vvl" del_key "key_lim3 key_nosignedzero " ; cp ORCA1_LIM2_PISCES/BLD/bin/nemo.exe ../../../bin/opa ; ) |
---|
136 | |
---|
137 | verif: ../../bin |
---|
138 | ls -l ../../bin |
---|
139 | |
---|
140 | clean : cleannemo cleanlmdz cleanorchidee cleanxios cleanioipsl cleanoasis |
---|
141 | rm -rf $(LIBDIR)/* ; rm -f $(BINDIR)/* |
---|
142 | |
---|
143 | cleannemo : |
---|
144 | ../../modeles/NEMOGCM/CONFIG/makenemo clean |
---|
145 | rm -f $(BINDIR)/opa |
---|
146 | |
---|
147 | cleanlmdz : |
---|
148 | rm -rf ../../modeles/LMDZ/libo/* ../../modeles/LMDZ/bin/* ../../modeles/LMDZ/.lock |
---|
149 | rm -f $(BINDIR)/gcm.e $(BINDIR)/create_etat0_limit.e |
---|
150 | |
---|
151 | cleanorchidee : |
---|
152 | ( cd ../../modeles/ORCHIDEE ; ./makeorchidee_fcm -clean ) |
---|
153 | rm -f $(BINDIR)/gcm.e |
---|
154 | |
---|
155 | cleanoasis : |
---|
156 | rm -rf $(OASIS_DIR)/BLD |
---|
157 | rm -f $(BINDIR)/oasis |
---|
158 | |
---|
159 | cleanxios : |
---|
160 | rm -rf ../../modeles/XIOS/bin/ ../../modeles/XIOS/inc ../../modeles/XIOS/obj ../../modeles/XIOS/lib |
---|
161 | |
---|
162 | cleanioipsl : |
---|
163 | ( cd ../../modeles/IOIPSL ; make clean ) |
---|
164 | ( 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 ) |
---|
165 | |
---|