source: CONFIG/UNIFORM/v6/IPSLCM6/AA_make @ 2105

Last change on this file since 2105 was 2105, checked in by omamce, 9 years ago
  1. Marti

Add possibility to use LIM3

File size: 5.9 KB
Line 
1#- $Id$
2#-
3#- AA_make for IPSLCM5_v4 configuration
4#-
5
6PRISM_DIR = ../../prism
7OASIS3_DIR = $(PRISM_DIR)/src/mod/oasis3
8
9MYSRC_DIR = $(shell /bin/pwd)
10
11all :
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) ORCA2xLMD9695-L39 ; fi
16
17ORCA2xLMD4443 : libioipsl oasis3 liborchidee xios orca2lim2 lmdz44x43x19 verif 
18        echo "ORCA2xLMD4443" >.resol
19        echo "RESOL_ATM_3D=44x43x19" >>.resol
20        echo "$(LIB_MPI)" >.libmpi
21
22ORCA2xLMD5655 : libioipsl oasis3 liborchidee xios orca2lim2 lmdz56x55x19 verif 
23        echo "ORCA2xLMD5655" >.resol
24        echo "RESOL_ATM_3D=56x55x19" >>.resol
25        echo "$(LIB_MPI)" >.libmpi
26
27ORCA2xLMD9671 : libioipsl oasis3 liborchidee xios orca2lim2 lmdz96x71x19 verif 
28        echo "ORCA2xLMD9671" >.resol
29        echo "RESOL_ATM_3D=96x71x19" >>.resol
30        echo "$(LIB_MPI)" >.libmpi
31
32ORCA2xLMD9695 : libioipsl oasis3 liborchidee xios orca2lim2 lmdz96x95x19 verif
33        echo "ORCA2xLMD9695" >.resol
34        echo "RESOL_ATM_3D=96x95x19" >>.resol
35        echo "$(LIB_MPI)" >.libmpi
36
37ORCA2LIM2xLMD9695-L39 : libioipsl oasis3 liborchidee xios orca2lim2 lmdz96x95x39 verif
38        echo "ORCA2xLMD9695-L39" >.resol
39        echo "RESOL_ATM_3D=96x95x39" >>.resol
40        echo "$(LIB_MPI)" >.libmpi
41
42ORCA2LIM3xLMD9695-L39 : libioipsl oasis3 liborchidee xios orca2lim3 lmdz96x95x39 verif
43        echo "ORCA2xLMD9695-L39" >.resol
44        echo "RESOL_ATM_3D=96x95x39" >>.resol
45        echo "$(LIB_MPI)" >.libmpi
46
47ORCA2LIM2xLMD9695-L39-NOPISCES : libioipsl oasis3 liborchidee xios orca2lim2nopisces lmdz96x95x39 verif
48        echo "ORCA2xLMD9695-L39" >.resol
49        echo "RESOL_ATM_3D=96x95x39" >>.resol
50        echo "NOPISCES" >>.resol
51        echo "$(LIB_MPI)" >.libmpi
52
53ORCA2LIM3xLMD9695-L39-NOPISCES : libioipsl oasis3 liborchidee xios orca2lim3nopisces lmdz96x95x39 verif
54        echo "ORCA2xLMD9695-L39" >.resol
55        echo "RESOL_ATM_3D=96x95x39" >>.resol
56        echo "NOPISCES" >>.resol
57        echo "$(LIB_MPI)" >.libmpi
58
59ORCA2xLMD144142 : libioipsl oasis3 liborchidee xios orca2lim2 lmdz144x142x19 verif
60        echo "ORCA2xLMD144142" >.resol
61        echo "RESOL_ATM_3D=144x142x19" >>.resol
62        echo "$(LIB_MPI)" >.libmpi
63
64ORCA2LIM2xLMD144142-L39 : libioipsl oasis3 liborchidee xios orca2lim2 lmdz144x142x39 verif
65        echo "ORCA2xLMD144142-L39" >.resol
66        echo "RESOL_ATM_3D=144x142x39" >>.resol
67        echo "$(LIB_MPI)" >.libmpi
68
69ORCA2LIM3xLMD144142-L39 : libioipsl oasis3 liborchidee xios orca2lim3 lmdz144x142x39 verif
70        echo "ORCA2xLMD144142-L39" >.resol
71        echo "RESOL_ATM_3D=144x142x39" >>.resol
72        echo "$(LIB_MPI)" >.libmpi
73
74libioipsl : ../../modeles/IOIPSL/src
75        (cd ../../modeles/IOIPSL/src ; $(M_K) -f Makefile)
76
77oasis3: $(OASIS3_DIR)/COMP_oasis3_$(LIB_MPI).$(PRISM_NAME) $(OASIS3_DIR)/COMP_oasis3_$(LIB_MPI).$(PRISM_NAME)
78        (cd $(OASIS3_DIR) ; ./COMP_oasis3_$(LIB_MPI).$(PRISM_NAME) ; )
79
80$(OASIS3_DIR)/COMP_oasis3_$(LIB_MPI).$(PRISM_NAME) : $(PRISM_DIR)
81        (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}" "" "" ; )
82
83liborchidee : ../../modeles/ORCHIDEE/
84        (cd ../../modeles/ORCHIDEE/ ; $(M_K) -f Makefile)
85#-Q- platine    (rm -f ../../lib/parallel.mod)
86
87lmdz44x43x19:
88        $(M_K) lmdz RESOL_LMDZ=44x43x19
89
90lmdz56x55x19:
91        $(M_K) lmdz RESOL_LMDZ=56x55x19
92
93lmdz96x71x19:
94        $(M_K) lmdz RESOL_LMDZ=96x71x19
95
96lmdz96x95x19:
97        $(M_K) lmdz RESOL_LMDZ=96x95x19
98
99lmdz96x95x39:
100        $(M_K) lmdz RESOL_LMDZ=96x95x39
101
102lmdz144x142x19:
103        $(M_K) lmdz RESOL_LMDZ=144x142x19
104
105lmdz144x142x39:
106        $(M_K) lmdz RESOL_LMDZ=144x142x39
107
108lmdz: ../../modeles/LMDZ
109        (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 ; )
110        (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 ; )
111
112xios: ../../modeles/XIOS
113        (cd ../../modeles/XIOS; ./make_xios --arch $(FCM_ARCH) --prod --use_oasis --job 16 ; )
114
115orca2lim2: ../../modeles/NEMOGCM/CONFIG
116        (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 ; )
117
118orca2lim3: ../../modeles/NEMOGCM/CONFIG
119        (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 ; )
120
121orca2lim2nopisces: ../../modeles/NEMOGCM/CONFIG
122        (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 ; )
123
124orca2lim3nopisces: ../../modeles/NEMOGCM/CONFIG
125        (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 ; )
126
127verif: ../../bin
128        ls -l ../../bin
129
130clean :
131        (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 ; )
Note: See TracBrowser for help on using the repository browser.