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) IPSLCM6-LR ; fi |
---|
12 | |
---|
13 | IPSLCM6A-VLR : |
---|
14 | $(M_K) ORCA2LIM2xLMD9695-L39 |
---|
15 | |
---|
16 | IPSLCM6-LR : |
---|
17 | $(M_K) ORCA1LIM3xLMD144142-L79 |
---|
18 | |
---|
19 | ORCA2LIM2xLMD9695-L39 : libioipsl oasis3-mct xios liborchidee orca2lim2 lmdz96x95x39 verif |
---|
20 | echo "ORCA2LIM2xLMD9695-L39" >.resol |
---|
21 | echo "RESOL_ATM_3D=96x95x39" >>.resol |
---|
22 | echo "$(LIB_MPI)" >.libmpi |
---|
23 | |
---|
24 | ORCA2LIM3xLMD9695-L39 : libioipsl oasis3-mct xios liborchidee orca2lim3 lmdz96x95x39 verif |
---|
25 | echo "ORCA2LIM3xLMD9695-L39" >.resol |
---|
26 | echo "RESOL_ATM_3D=96x95x39" >>.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 | ORCA1LIM3xLMD9695-L39 : libioipsl oasis3-mct xios liborchidee orca1lim3 lmdz96x95x39 verif |
---|
35 | echo "ORCA1LIM3xLMD9695-L39" >.resol |
---|
36 | echo "RESOL_ATM_3D=96x95x39" >>.resol |
---|
37 | echo "$(LIB_MPI)" >.libmpi |
---|
38 | |
---|
39 | ORCA1LIM3xLMD9695-L39-NOPISCES : libioipsl oasis3-mct xios liborchidee orca1lim3nopisces lmdz96x95x39 verif |
---|
40 | echo "ORCA1LIM3xLMD9695-L39" >.resol |
---|
41 | echo "RESOL_ATM_3D=96x95x39" >>.resol |
---|
42 | echo "$(LIB_MPI)" >.libmpi |
---|
43 | |
---|
44 | ORCA1LIM3xLMD144142-L39 : libioipsl oasis3-mct xios liborchidee orca1lim3 lmdz144x142x39 verif |
---|
45 | echo "ORCA1LIM3xLMD144142-L39" >.resol |
---|
46 | echo "RESOL_ATM_3D=144x142x39" >>.resol |
---|
47 | echo "$(LIB_MPI)" >.libmpi |
---|
48 | |
---|
49 | ORCA1LIM3xLMD144142-L39-NOPISCES : libioipsl oasis3-mct xios liborchidee orca1lim3nopisces lmdz144x142x39 verif |
---|
50 | echo "ORCA1LIM3xLMD144142-L39" >.resol |
---|
51 | echo "RESOL_ATM_3D=144x142x39" >>.resol |
---|
52 | echo "$(LIB_MPI)" >.libmpi |
---|
53 | |
---|
54 | ORCA1LIM3xLMD144142-L79 : libioipsl oasis3-mct xios liborchidee orca1lim3 lmdz144x142x79 verif |
---|
55 | echo "ORCA1LIM3xLMD144142-L79" >.resol |
---|
56 | echo "RESOL_ATM_3D=144x142x79" >>.resol |
---|
57 | echo "$(LIB_MPI)" >.libmpi |
---|
58 | |
---|
59 | ORCA1LIM3xLMD144142-L79-NOPISCES : libioipsl oasis3-mct xios liborchidee orca1lim3nopisces lmdz144x142x79 verif |
---|
60 | echo "ORCA1LIM3xLMD144142-L79-NOPISCES" >.resol |
---|
61 | echo "RESOL_ATM_3D=144x142x79" >>.resol |
---|
62 | echo "$(LIB_MPI)" >.libmpi |
---|
63 | |
---|
64 | libioipsl : ../../modeles/IOIPSL/src |
---|
65 | (cd ../../modeles/IOIPSL/src ; $(M_K) -f Makefile) |
---|
66 | |
---|
67 | oasis3-mct: |
---|
68 | (cd $(OASIS_DIR)/util/make_dir ; cp $(MYSRC_DIR)/SOURCES/OASIS3-MCT/make_${FCM_ARCH} make.inc ; make -f TopMakefileOasis3 ; ) |
---|
69 | |
---|
70 | liborchidee : ../../modeles/ORCHIDEE/ |
---|
71 | (cd ../../modeles/ORCHIDEE/ ; ./makeorchidee_fcm -parallel mpi_omp -arch $(FCM_ARCH) -j 8 -xios2) |
---|
72 | |
---|
73 | lmdz96x95x39: |
---|
74 | $(M_K) lmdz RESOL_LMDZ=96x95x39 |
---|
75 | |
---|
76 | lmdz144x142x39: |
---|
77 | $(M_K) lmdz RESOL_LMDZ=144x142x39 |
---|
78 | |
---|
79 | lmdz144x142x79: |
---|
80 | $(M_K) lmdz RESOL_LMDZ=144x142x79 |
---|
81 | |
---|
82 | lmdz: ../../modeles/LMDZ |
---|
83 | # (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 ; ) |
---|
84 | (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 ; ) |
---|
85 | |
---|
86 | xios: ../../modeles/XIOS |
---|
87 | (cd ../../modeles/XIOS; ./make_xios --arch $(FCM_ARCH) --prod --use_oasis oasis3_mct --job 8 ; cp bin/xios_server.exe ../../bin/. ; ) |
---|
88 | |
---|
89 | orca2lim2: ../../modeles/NEMOGCM/CONFIG |
---|
90 | (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 ; ) |
---|
91 | |
---|
92 | orca2lim3: ../../modeles/NEMOGCM/CONFIG |
---|
93 | (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" del_key "key_lim2 key_nosignedzero" ; cp ORCA2_LIM3_PISCES/BLD/bin/nemo.exe ../../../bin/opa ; ) |
---|
94 | |
---|
95 | orca1lim3: ../../modeles/NEMOGCM/CONFIG |
---|
96 | (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_oasis3 key_diahth" del_key "key_mpp_rep key_nosignedzero " ; cp ORCA1_LIM3_PISCES/BLD/bin/nemo.exe ../../../bin/opa ; ) |
---|
97 | |
---|
98 | orca1lim3nopisces: ../../modeles/NEMOGCM/CONFIG |
---|
99 | (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_oasis3 " del_key "key_mpp_rep key_nosignedzero key_top key_pisces" ; cp ORCA1_LIM3_PISCES/BLD/bin/nemo.exe ../../../bin/opa ; ) |
---|
100 | |
---|
101 | orca1lim2: ../../modeles/NEMOGCM/CONFIG |
---|
102 | (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 ; ) |
---|
103 | |
---|
104 | verif: ../../bin |
---|
105 | ls -l ../../bin |
---|
106 | |
---|
107 | clean : cleannemo cleanlmdz cleanorchidee cleanxios cleanioipsl cleanoasis |
---|
108 | rm -rf $(LIBDIR)/* ; rm -f $(BINDIR)/* |
---|
109 | |
---|
110 | cleannemo : |
---|
111 | ../../modeles/NEMOGCM/CONFIG/makenemo clean |
---|
112 | rm -f $(BINDIR)/opa |
---|
113 | |
---|
114 | cleanlmdz : |
---|
115 | rm -rf ../../modeles/LMDZ/libo/* ../../modeles/LMDZ/bin/* ../../modeles/LMDZ/.lock |
---|
116 | rm -f $(BINDIR)/gcm.e $(BINDIR)/create_etat0_limit.e |
---|
117 | |
---|
118 | cleanorchidee : |
---|
119 | ( cd ../../modeles/ORCHIDEE ; ./makeorchidee_fcm -clean ) |
---|
120 | rm -f $(BINDIR)/gcm.e |
---|
121 | |
---|
122 | cleanoasis : |
---|
123 | rm -rf $(OASIS_DIR)/BLD |
---|
124 | rm -f $(BINDIR)/oasis |
---|
125 | |
---|
126 | cleanxios : |
---|
127 | rm -rf ../../modeles/XIOS/bin/ ../../modeles/XIOS/inc ../../modeles/XIOS/obj ../../modeles/XIOS/lib |
---|
128 | |
---|
129 | cleanioipsl : |
---|
130 | ( cd ../../modeles/IOIPSL/src ; gmake clean ) |
---|
131 | ( 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 ) |
---|
132 | |
---|