#- $Id$ #- #- AA_make for IPSLCM5 configuration #- PRISM_DIR = ../../prism OASIS3_DIR = $(PRISM_DIR)/src/mod/oasis3 all : #-Q- eshpux if [ ! -f $(OASIS3_DIR)/COMP_oasis3_$(LIB_MPI).$(PRISM_NAME) ] ; then \ #-Q- eshpux cp -f $(PRISM_DIR)/util/compile/frames/include_$(PRISM_NAME)/COMP_oasis3_$(LIB_MPI).$(PRISM_NAME) $(OASIS3_DIR)/.; \ #-Q- eshpux cp -f $(PRISM_DIR)/util/compile/frames/include_$(PRISM_NAME)/COMP_libs.$(PRISM_NAME) $(PRISM_DIR)/util/. ; fi if [ -s ./.resol ] ; then gmake `cat .resol` ; else gmake ORCA2xLMD9671 ; fi ORCA2xLMD9671 : libioipsl oasis3 liborchidee orca2 lmdz9671 verif echo "ORCA2xLMD9671" >.resol echo "$(LIB_MPI)" >.libmpi ORCA2xLMD144142 : libioipsl oasis3 liborchidee orca2 lmdz144142 verif echo "ORCA2xLMD144142" >.resol echo "$(LIB_MPI)" >.libmpi libioipsl : (cd ../../modeles/IOIPSL/src ; $(M_K) -f Makefile) oasis3: $(OASIS3_DIR)/COMP_oasis3_$(LIB_MPI).$(PRISM_NAME) $(OASIS3_DIR)/COMP_oasis3_$(LIB_MPI).$(PRISM_NAME) (cd $(OASIS3_DIR) ; ./COMP_oasis3_$(LIB_MPI).$(PRISM_NAME) ; ) $(OASIS3_DIR)/COMP_oasis3_$(LIB_MPI).$(PRISM_NAME) : (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}" "" "" ; ) liborchidee : (cd ../../modeles/ORCHIDEE/ ; ./configure_orchidee -p MPI -arch $(FCM_ARCH) ; fcm build ; ln -sf ../modeles/ORCHIDEE/lib/liborglob.a ../../lib ; ln -sf ../modeles/ORCHIDEE/lib/libparallel.a ../../lib ; ln -sf ../modeles/ORCHIDEE/lib/libsechiba.a ../../lib ; ln -sf ../modeles/ORCHIDEE/lib/libstomate.a ../../lib ; ln -sf ../modeles/ORCHIDEE/lib/libparameters.a ../../lib ; ln -sf ../modeles/ORCHIDEE/lib/liborchidee.a ../../lib ; ln -sf ../modeles/ORCHIDEE/lib/intersurf.mod ../../lib ) lmdz9671: (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 ; ) (cd ../../modeles/LMDZ4; ./makegcm_fcm -d 96x71x19 -v true -parallel mpi -c $(LIB_MPI) -m $(FCM_ARCH) gcm ; cp bin/gcm_96x71x19_t4_phylmd_para_orch_couple.e ../../bin/gcm.e ; ) lmdz144142: (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 ; ) (cd ../../modeles/LMDZ4; ./makegcm_fcm -d 144x142x19 -v true -parallel mpi -c $(LIB_MPI) -m $(FCM_ARCH) gcm ; cp bin/gcm_144x142x19_t4_phylmd_para_orch_couple.e ../../bin/gcm.e ; ) orca2: (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' ; ) verif: ls -l ../../bin clean : (rm -rf $(LIBDIR)/* ; rm -f $(BINDIR)/* ; rm -rf $(PRISM_DIR)/$(PRISM_ARCH) ; rm -rf ../../modeles/LMDZ4/libo/* ../../modeles/LMDZ4/.lock ; )