1 | #- $Id$ |
---|
2 | #- |
---|
3 | #- AA_make for IPSLCM5_v4 configuration |
---|
4 | #- |
---|
5 | |
---|
6 | PRISM_DIR = ../../prism |
---|
7 | OASIS3_DIR = $(PRISM_DIR)/src/mod/oasis3 |
---|
8 | |
---|
9 | MYSRC_DIR = $(shell /bin/pwd) |
---|
10 | |
---|
11 | all : |
---|
12 | #-Q- eshpux if [ ! -f $(OASIS3_DIR)/COMP_oasis3_$(LIB_MPI).$(PRISM_NAME) ] ; then \ |
---|
13 | #-Q- eshpux cp -f $(PRISM_DIR)/util/compile/frames/include_$(PRISM_NAME)/COMP_oasis3_$(LIB_MPI).$(PRISM_NAME) $(OASIS3_DIR)/.; \ |
---|
14 | #-Q- eshpux cp -f $(PRISM_DIR)/util/compile/frames/include_$(PRISM_NAME)/COMP_libs.$(PRISM_NAME) $(PRISM_DIR)/util/. ; fi |
---|
15 | if [ -s ./.resol ] ; then $(M_K) `head -1 .resol` ; else $(M_K) ORCA2LIM3xLMD9695-L39 ; fi |
---|
16 | |
---|
17 | ORCA2LIM2xLMD9695-L39 : libioipsl oasis3 liborchidee xios orca2lim2 lmdz96x95x39 verif |
---|
18 | echo "ORCA2LIM2xLMD9695-L39" >.resol |
---|
19 | echo "RESOL_ATM_3D=96x95x39" >>.resol |
---|
20 | echo "$(LIB_MPI)" >.libmpi |
---|
21 | |
---|
22 | ORCA2LIM3xLMD9695-L39 : libioipsl oasis3 liborchidee xios orca2lim3 lmdz96x95x39 verif |
---|
23 | echo "ORCA2LIM3xLMD9695-L39" >.resol |
---|
24 | echo "RESOL_ATM_3D=96x95x39" >>.resol |
---|
25 | echo "$(LIB_MPI)" >.libmpi |
---|
26 | |
---|
27 | ORCA2LIM2xLMD9695-L39-NOPISCES : libioipsl oasis3 liborchidee xios orca2lim2nopisces lmdz96x95x39 verif |
---|
28 | echo "ORCA2LIM2xLMD9695-L39" >.resol |
---|
29 | echo "RESOL_ATM_3D=96x95x39" >>.resol |
---|
30 | echo "NOPISCES" >>.resol |
---|
31 | echo "$(LIB_MPI)" >.libmpi |
---|
32 | |
---|
33 | ORCA2LIM3xLMD9695-L39-NOPISCES : libioipsl oasis3 liborchidee xios orca2lim3nopisces lmdz96x95x39 verif |
---|
34 | echo "ORCA2LIM3xLMD9695-L39" >.resol |
---|
35 | echo "RESOL_ATM_3D=96x95x39" >>.resol |
---|
36 | echo "NOPISCES" >>.resol |
---|
37 | echo "$(LIB_MPI)" >.libmpi |
---|
38 | |
---|
39 | ORCA2LIM2xLMD144142-L39 : libioipsl oasis3 liborchidee xios orca2lim2 lmdz144x142x39 verif |
---|
40 | echo "ORCA2LIM2xLMD144142-L39" >.resol |
---|
41 | echo "RESOL_ATM_3D=144x142x39" >>.resol |
---|
42 | echo "$(LIB_MPI)" >.libmpi |
---|
43 | |
---|
44 | ORCA2LIM3xLMD144142-L39 : libioipsl oasis3 liborchidee xios orca2lim3 lmdz144x142x39 verif |
---|
45 | echo "ORCA2LIM3xLMD144142-L39" >.resol |
---|
46 | echo "RESOL_ATM_3D=144x142x39" >>.resol |
---|
47 | echo "$(LIB_MPI)" >.libmpi |
---|
48 | |
---|
49 | libioipsl : ../../modeles/IOIPSL/src |
---|
50 | (cd ../../modeles/IOIPSL/src ; $(M_K) -f Makefile) |
---|
51 | |
---|
52 | oasis3: $(OASIS3_DIR)/COMP_oasis3_$(LIB_MPI).$(PRISM_NAME) $(OASIS3_DIR)/COMP_oasis3_$(LIB_MPI).$(PRISM_NAME) |
---|
53 | (cd $(OASIS3_DIR) ; ./COMP_oasis3_$(LIB_MPI).$(PRISM_NAME) ; ) |
---|
54 | |
---|
55 | $(OASIS3_DIR)/COMP_oasis3_$(LIB_MPI).$(PRISM_NAME) : $(PRISM_DIR) |
---|
56 | (cd $(PRISM_DIR) ; ./util/compile/frames/Create_COMP_libs.frm "" "" "${PRISM_NAME}" "${LIB_MPI_BIS}" ; ./util/compile/frames/Create_COMP_models.frm oasis3 "${LIB_MPI_BIS}" "" "" "${PRISM_NAME}" "" "" ; ) |
---|
57 | |
---|
58 | liborchidee : ../../modeles/ORCHIDEE/ |
---|
59 | (cd ../../modeles/ORCHIDEE/ ; $(M_K) -f Makefile) |
---|
60 | |
---|
61 | lmdz96x95x39: |
---|
62 | $(M_K) lmdz RESOL_LMDZ=96x95x39 |
---|
63 | |
---|
64 | lmdz144x142x39: |
---|
65 | $(M_K) lmdz RESOL_LMDZ=144x142x39 |
---|
66 | |
---|
67 | lmdz: ../../modeles/LMDZ |
---|
68 | (cd ../../modeles/LMDZ; ./makelmdz_fcm -cpp ORCHIDEE_NOOPENMP -d $(RESOL_LMDZ) -cosp true -v true -parallel mpi -c $(LIB_MPI) -arch $(FCM_ARCH) ce0l ; cp bin/ce0l_$(RESOL_LMDZ)_phylmd_para_orch_couple.e ../../bin/create_etat0_limit.e ; ) |
---|
69 | (cd ../../modeles/LMDZ; ./makelmdz_fcm -cpp ORCHIDEE_NOOPENMP -d $(RESOL_LMDZ) -cosp true -v true -parallel mpi -c $(LIB_MPI) -arch $(FCM_ARCH) gcm ; cp bin/gcm_$(RESOL_LMDZ)_phylmd_para_orch_couple.e ../../bin/gcm.e ; ) |
---|
70 | |
---|
71 | xios: ../../modeles/XIOS |
---|
72 | (cd ../../modeles/XIOS; ./make_xios --arch $(FCM_ARCH) --prod --use_oasis --job 16 ; ) |
---|
73 | |
---|
74 | orca2lim2: ../../modeles/NEMOGCM/CONFIG |
---|
75 | (cd ../../modeles/NEMOGCM/CONFIG; cp ../../../config/IPSLCM6/SOURCES/NEMO/arch-${FCM_ARCH}.fcm ../ARCH/. ; ./makenemo -m ${FCM_ARCH} -n ORCA2_LIM_PISCES -e "$(MYSRC_DIR)/SOURCES/NEMO" -j16 add_key "key_lim2_vp key_coupled key_oasis3 key_diahth" ; cp ORCA2_LIM_PISCES/BLD/bin/nemo.exe ../../../bin/opa ; ) |
---|
76 | |
---|
77 | orca2lim3: ../../modeles/NEMOGCM/CONFIG |
---|
78 | (cd ../../modeles/NEMOGCM/CONFIG; cp ../../../config/IPSLCM6/SOURCES/NEMO/arch-${FCM_ARCH}.fcm ../ARCH/. ; ./makenemo -m ${FCM_ARCH} -n ORCA2_LIM3_PISCES -e "$(MYSRC_DIR)/SOURCES/NEMO" -j16 add_key "key_coupled key_oasis3 key_diahth" ; cp ORCA2_LIM3_PISCES/BLD/bin/nemo.exe ../../../bin/opa ; ) |
---|
79 | |
---|
80 | orca2lim2nopisces: ../../modeles/NEMOGCM/CONFIG |
---|
81 | (cd ../../modeles/NEMOGCM/CONFIG; cp ../../../config/IPSLCM6/SOURCES/NEMO/arch-${FCM_ARCH}.fcm ../ARCH/. ; ./makenemo -m ${FCM_ARCH} -n ORCA2_LIM -e "$(MYSRC_DIR)/SOURCES/NEMO" -j16 add_key "key_lim2_vp key_coupled key_oasis3 key_diahth" ; cp ORCA2_LIM/BLD/bin/nemo.exe ../../../bin/opa ; ) |
---|
82 | |
---|
83 | orca2lim3nopisces: ../../modeles/NEMOGCM/CONFIG |
---|
84 | (cd ../../modeles/NEMOGCM/CONFIG; cp ../../../config/IPSLCM6/SOURCES/NEMO/arch-${FCM_ARCH}.fcm ../ARCH/. ; ./makenemo -m ${FCM_ARCH} -n ORCA2_LIM3 -e "$(MYSRC_DIR)/SOURCES/NEMO" -j16 add_key "key_coupled key_oasis3 key_diahth" ; cp ORCA2_LIM3/BLD/bin/nemo.exe ../../../bin/opa ; ) |
---|
85 | |
---|
86 | verif: ../../bin |
---|
87 | ls -l ../../bin |
---|
88 | |
---|
89 | clean : |
---|
90 | (rm -rf $(LIBDIR)/* ; rm -f $(BINDIR)/* ; rm -rf $(PRISM_DIR)/$(PRISM_ARCH) ; rm -rf ../../modeles/LMDZ/libo/* ../../modeles/LMDZ/.lock ; ../../modeles/NEMOGCM/CONFIG/makenemo clean ; rm -rf ../../modeles/XIOS/bin/ ../../modeles/XIOS/inc ../../modeles/XIOS/obj ../../modeles/XIOS/lib ; ) |
---|