source: CONFIG/IPSLCM/IPSLCM5/trunk/AA_make @ 449

Last change on this file since 449 was 449, checked in by mafoipsl, 13 years ago

ACa, MAF : AA_make moved.

File size: 2.5 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
15ORCA2xLMD9671 : libioipsl oasis3 liborchidee orca2 lmdz9671 verif       
16        echo "ORCA2xLMD9671" >.resol
17        echo "$(LIB_MPI)" >.libmpi
18
19ORCA2xLMD144142 : libioipsl oasis3 liborchidee orca2 lmdz144142 verif
20        echo "ORCA2xLMD144142" >.resol
21        echo "$(LIB_MPI)" >.libmpi
22
23libioipsl :
24        (cd ../../modeles/IOIPSL/src ; $(M_K) -f Makefile)
25
26oasis3: $(OASIS3_DIR)/COMP_oasis3_$(LIB_MPI).$(PRISM_NAME) $(OASIS3_DIR)/COMP_oasis3_$(LIB_MPI).$(PRISM_NAME)
27        (cd $(OASIS3_DIR) ; ./COMP_oasis3_$(LIB_MPI).$(PRISM_NAME) ; )
28
29$(OASIS3_DIR)/COMP_oasis3_$(LIB_MPI).$(PRISM_NAME) :
30        (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}" "" "" ; )
31
32liborchidee :
33        (cd ../../modeles/ORCHIDEE/ ; $(M_K) -f Makefile)
34#-Q- platine    (rm -f ../../lib/parallel.mod)
35
36lmdz9671:
37        (cd ../../modeles/LMDZ4; ./makegcm_fcm -d 96x71x19 -m $(FCM_ARCH) create_etat0_limit ; cp bin/create_etat0_limit_96x71x19_t4_phylmd_seq.e ../../bin/create_etat0_limit.e ; )
38        (cd ../../modeles/LMDZ4; ./makegcm_fcm -d 96x71x19 -psmile true -v true -parallel true -c $(LIB_MPI) -m $(FCM_ARCH) gcm ; cp bin/gcm_96x71x19_t4_phylmd_para_orch_couple.e ../../bin/gcm.e ; )
39
40lmdz144142:
41        (cd ../../modeles/LMDZ4; ./makegcm_fcm -d 144x142x19 -m $(FCM_ARCH) create_etat0_limit ; cp bin/create_etat0_limit_144x142x19_t4_phylmd_seq.e ../../bin/create_etat0_limit.e ; )
42        (cd ../../modeles/LMDZ4; ./makegcm_fcm -d 144x142x19 -psmile true -v true -parallel true -c $(LIB_MPI) -m $(FCM_ARCH) gcm ; cp bin/gcm_144x142x19_t4_phylmd_para_orch_couple.e ../../bin/gcm.e ; )
43
44orca2:
45        (cd ../../modeles/NEMO/WORK; $(M_K) USER_INC='-I ../$(PRISM_DIR)/$(PRISM_ARCH)/build/lib/psmile.$(LIB_MPI)' OASIS_LIB='-L../$(PRISM_DIR)/$(PRISM_ARCH)/lib -lpsmile.$(LIB_MPI) -lmpp_io' ; )
46
47verif:
48        ls -l ../../bin
49
50clean :
51        (rm -rf $(LIBDIR)/* ; rm -f $(BINDIR)/* ; rm -rf $(PRISM_DIR)/$(PRISM_ARCH) ; rm -rf ../../modeles/LMDZ4/libo/* ../../modeles/LMDZ4/.lock ; )
52
Note: See TracBrowser for help on using the repository browser.