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

Last change on this file since 2114 was 2114, checked in by omamce, 11 years ago

O.M.

  • Add ORCA2LIM2 and ORCA2LIM3 configuration
  • Remove all configuration with LMDZ 19 levels
File size: 4.8 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) ORCA2LIM3xLMD9695-L39 ; fi
16
17ORCA2LIM2xLMD9695-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
22ORCA2LIM3xLMD9695-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
27ORCA2LIM2xLMD9695-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
33ORCA2LIM3xLMD9695-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
39ORCA2LIM2xLMD144142-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
44ORCA2LIM3xLMD144142-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
49libioipsl : ../../modeles/IOIPSL/src
50        (cd ../../modeles/IOIPSL/src ; $(M_K) -f Makefile)
51
52oasis3: $(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
58liborchidee : ../../modeles/ORCHIDEE/
59        (cd ../../modeles/ORCHIDEE/ ; $(M_K) -f Makefile)
60
61lmdz96x95x39:
62        $(M_K) lmdz RESOL_LMDZ=96x95x39
63
64lmdz144x142x39:
65        $(M_K) lmdz RESOL_LMDZ=144x142x39
66
67lmdz: ../../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
71xios: ../../modeles/XIOS
72        (cd ../../modeles/XIOS; ./make_xios --arch $(FCM_ARCH) --prod --use_oasis --job 16 ; )
73
74orca2lim2: ../../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
77orca2lim3: ../../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
80orca2lim2nopisces: ../../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
83orca2lim3nopisces: ../../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
86verif: ../../bin
87        ls -l ../../bin
88
89clean :
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 ; )
Note: See TracBrowser for help on using the repository browser.