source: CONFIG/UNIFORM/v5/IPSLCM5CHT_v5/AA_make @ 2018

Last change on this file since 2018 was 1820, checked in by acosce, 12 years ago

Bug fixed in IPSLCM5CHT_v5

File size: 4.0 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
9all :
10#-Q- eshpux     if [ ! -f $(OASIS3_DIR)/COMP_oasis3_$(LIB_MPI).$(PRISM_NAME) ] ; then \
11#-Q- eshpux        cp -f $(PRISM_DIR)/util/compile/frames/include_$(PRISM_NAME)/COMP_oasis3_$(LIB_MPI).$(PRISM_NAME)  $(OASIS3_DIR)/.; \
12#-Q- eshpux        cp -f $(PRISM_DIR)/util/compile/frames/include_$(PRISM_NAME)/COMP_libs.$(PRISM_NAME)  $(PRISM_DIR)/util/. ; fi
13        if [ -s ./.resol ] ; then $(M_K) `head -1 .resol` ; else $(M_K) ORCA2xLMD9695-L39xAER ; fi
14
15
16ORCA2xLMD9695-L39xAER : libioipsl oasis3 liborchidee orca2  lmdzinca96x95x39 verif
17        echo "ORCA2xLMD9695-L39" >.resol
18        echo "RESOL_ATM_3D=96x95x39" >>.resol
19        echo "CHEM=AER" > .chimie
20        echo "$(LIB_MPI)" >.libmpi
21
22ORCA2xLMD9695-L39-NOPISCESxAER : libioipsl oasis3 liborchidee orca2nopisces lmdzinca96x95x39 verif
23        echo "ORCA2xLMD9695-L39" >.resol
24        echo "RESOL_ATM_3D=96x95x39" >>.resol
25        echo "NOPISCES" >>.resol
26        echo "CHEM=AER" > .chimie
27        echo "$(LIB_MPI)" >.libmpi
28
29
30ORCA2xLMD144142-L39xAER : libioipsl oasis3 liborchidee orca2 lmdzinca144x142x39 verif
31        echo "ORCA2xLMD144142-L39" >.resol
32        echo "RESOL_ATM_3D=144x142x39" >>.resol
33        echo "CHEM=AER" > .chimie
34        echo "$(LIB_MPI)" >.libmpi
35
36libioipsl : ../../modeles/IOIPSL/src
37        (cd ../../modeles/IOIPSL/src ; $(M_K) -f Makefile)
38
39oasis3: $(OASIS3_DIR)/COMP_oasis3_$(LIB_MPI).$(PRISM_NAME) $(OASIS3_DIR)/COMP_oasis3_$(LIB_MPI).$(PRISM_NAME)
40        (cd $(OASIS3_DIR) ; ./COMP_oasis3_$(LIB_MPI).$(PRISM_NAME) ; )
41
42$(OASIS3_DIR)/COMP_oasis3_$(LIB_MPI).$(PRISM_NAME) : $(PRISM_DIR)
43        (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}" "" "" ; )
44
45liborchidee : ../../modeles/ORCHIDEE/
46        (cd ../../modeles/ORCHIDEE/ ; $(M_K) -f Makefile)
47#-Q- platine    (rm -f ../../lib/parallel.mod)
48
49
50lmdzinca96x95x39:
51        $(M_K) inca RESOL_LMDZ=96x95x39
52        $(M_K) lmdz RESOL_LMDZ=96x95x39
53
54lmdzinca144x142x39:
55        $(M_K) inca RESOL_LMDZ=144x142x39
56        $(M_K) lmdz RESOL_LMDZ=144x142x39
57
58inca: ../../modeles/INCA3
59        (cd ../../modeles/INCA3; ./makeinca_fcm -chimie AER -parallel mpi -resol $(RESOL_LMDZ) -arch $(FCM_ARCH); cp SIMULATIONS/AER/inca.dat ../../bin/inca.dat ; )   
60
61lmdz: ../../modeles/LMDZ
62        (cd ../../modeles/LMDZ; ./makelmdz_fcm -cpp ORCHIDEE_NOOPENMP -chimie INCA -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_inca.e ../../bin/create_etat0_limit.e ; )
63        (cd ../../modeles/LMDZ; ./makelmdz_fcm -cpp ORCHIDEE_NOOPENMP -chimie INCA -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_inca.e ../../bin/gcm.e ; )
64
65orca2: ../../modeles/NEMO/WORK
66        (cd ../../modeles/NEMO/WORK; $(M_K) FCM=use USER_INC='-I ../$(PRISM_DIR)/$(PRISM_ARCH)/build/lib/psmile.$(LIB_MPI)' USER_LIB='-L../$(PRISM_DIR)/$(PRISM_ARCH)/lib -lpsmile.$(LIB_MPI) -lmpp_io' P_P='key_trabbl_dif key_orca_r2 key_lim2 key_dynspg_flt key_ldfslp key_traldf_c2d key_traldf_eiv key_dynldf_c3d key_dtachl key_dtatem key_dtasal key_coupled key_trabbc key_zdftke key_zdftmx key_zdfddm key_oasis3 key_diahth key_diaeiv key_mpp_mpi key_iomput key_diaar5 key_top key_pisces key_trcbbl_dif key_trcldf_eiv key_trc_zdfddm key_trc_diaadd key_trc_dia3d key_dtatrc ' ; )
67
68orca2nopisces: ../../modeles/NEMO/WORK
69        (cd ../../modeles/NEMO/WORK; $(M_K) FCM=use USER_INC='-I ../$(PRISM_DIR)/$(PRISM_ARCH)/build/lib/psmile.$(LIB_MPI)' USER_LIB='-L../$(PRISM_DIR)/$(PRISM_ARCH)/lib -lpsmile.$(LIB_MPI) -lmpp_io' P_P='key_trabbl_dif key_orca_r2 key_lim2 key_dynspg_flt key_ldfslp key_traldf_c2d key_traldf_eiv key_dynldf_c3d key_dtachl key_dtatem key_dtasal key_coupled key_trabbc key_zdftke key_zdftmx key_zdfddm key_oasis3 key_diahth key_diaeiv key_mpp_mpi key_iomput key_diaar5 ' ; )
70
71verif: ../../bin
72        ls -l ../../bin
73
74clean :
75        (rm -rf $(LIBDIR)/* ; rm -f $(BINDIR)/* ; rm -rf $(PRISM_DIR)/$(PRISM_ARCH) ; rm -rf ../../modeles/LMDZ/libo/* ../../modeles/LMDZ/.lock ; )
76
Note: See TracBrowser for help on using the repository browser.