source: CONFIG/IPSL_ESM/IPSL_ESM_v2/trunk/AA_make @ 3562

Last change on this file since 3562 was 643, checked in by acosce, 12 years ago

ACo :

1- correct AA_make for IPSL_ESM_v2
2- add two directories for simulation with aerosol offline and onlinre

File size: 3.2 KB
Line 
1#- $Id$
2#-
3#- AA_make for IPSLCM5 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 gmake `cat .resol` ; else gmake ORCA2xLMD9671 ; fi
14
15
16ORCA2xLMD9671 : libioipsl oasis3 liborchidee orca2 lmdz9671 verif       
17        echo "ORCA2xLMD9671" >.resol
18        echo "$(LIB_MPI)" >.libmpi
19
20ORCA2xLMD9695 : libioipsl oasis3 liborchidee orca2 lmdz9695 verif
21        echo "ORCA2xLMD9695" >.resol
22        echo "$(LIB_MPI)" >.libmpi
23
24
25libioipsl :
26        (cd ../../modeles/IOIPSL/src ; $(M_K) -f Makefile)
27
28oasis3: $(OASIS3_DIR)/COMP_oasis3_$(LIB_MPI).$(PRISM_NAME) $(OASIS3_DIR)/COMP_oasis3_$(LIB_MPI).$(PRISM_NAME)
29        (cd $(OASIS3_DIR) ; ./COMP_oasis3_$(LIB_MPI).$(PRISM_NAME) ; )
30
31$(OASIS3_DIR)/COMP_oasis3_$(LIB_MPI).$(PRISM_NAME) :
32        (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}" "" "" ; )
33
34liborchidee :
35        (cd ../../modeles/ORCHIDEE/ ; $(M_K) -f Makefile)
36#-Q- platine    (rm -f ../../lib/parallel.mod)
37
38
39lmdz9671:
40        (cd ../../modeles/INCA3; ./makeinca_fcm -chimie AER -parallel mpi -resol 96x71 -arch $(FCM_ARCH); cp SIMULATIONS/AER/inca.dat ../../bin/inca.dat ; )   
41        (cd ../../modeles/LMDZ4; ./makelmdz_fcm -cpp ORCHIDEE_NOOPENMP -d 96x71x19 -chimie INCA -arch $(FCM_ARCH) create_etat0_limit ; cp bin/create_etat0_limit_96x71x19_phylmd_seq_inca.e ../../bin/create_etat0_limit.e ; )
42        (cd ../../modeles/LMDZ4; ./makelmdz_fcm -cpp ORCHIDEE_NOOPENMP -d 96x71x19 -v true -chimie INCA -parallel mpi -c $(LIB_MPI) -arch $(FCM_ARCH) gcm ; cp bin/gcm_96x71x19_phylmd_para_orch_couple_inca.e ../../bin/gcm.e ; )
43
44lmdz9695:
45        (cd ../../modeles/INCA3; ./makeinca_fcm -chimie AER -parallel mpi -resol 96x95 -arch $(FCM_ARCH); cp SIMULATIONS/AER/inca.dat ../../bin/inca.dat ; )   
46        (cd ../../modeles/LMDZ4; ./makelmdz_fcm -cpp ORCHIDEE_NOOPENMP -d 96x95x19 -chimie INCA -arch $(FCM_ARCH) create_etat0_limit ; cp bin/create_etat0_limit_96x95x19_phylmd_seq_inca.e ../../bin/create_etat0_limit.e ; )
47        (cd ../../modeles/LMDZ4; ./makelmdz_fcm -cpp ORCHIDEE_NOOPENMP -d 96x95x19 -v true -chimie INCA -parallel mpi -c $(LIB_MPI) -arch $(FCM_ARCH) gcm ; cp bin/gcm_96x95x19_phylmd_para_orch_couple_inca.e ../../bin/gcm.e ; )
48
49
50orca2:
51        (cd ../../modeles/NEMO/WORK; $(M_K) 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_vectopt_loop key_vectopt_memory key_orca_r2 key_lim2 key_dynspg_flt key_ldfslp key_traldf_c2d key_traldf_eiv key_dynldf_c3d key_dtatem key_dtasal key_coupled key_trabbc key_zdftke key_zdfddm key_oasis3 key_diahth key_diaeiv key_cpl_albedo key_cpl_discharge key_mpp_mpi' ; )
52
53verif:
54        ls -l ../../bin
55
56clean :
57        (rm -rf $(LIBDIR)/* ; rm -f $(BINDIR)/* ; rm -rf $(PRISM_DIR)/$(PRISM_ARCH) ; rm -rf ../../modeles/LMDZ4/libo/* ../../modeles/LMDZ4/.lock ; )
58
Note: See TracBrowser for help on using the repository browser.