[396] | 1 | #- $Id$ |
---|
| 2 | #- |
---|
[1620] | 3 | #- AA_make for IPSLCM5_v4 configuration |
---|
[396] | 4 | #- |
---|
| 5 | |
---|
[2193] | 6 | OASIS_DIR = ../../oasis3-mct |
---|
[396] | 7 | |
---|
[2089] | 8 | MYSRC_DIR = $(shell /bin/pwd) |
---|
| 9 | |
---|
[6491] | 10 | arch_path=${MYSRC_DIR}/ARCH |
---|
| 11 | |
---|
| 12 | all : |
---|
[2966] | 13 | if [ -s ./.resol ] ; then $(M_K) `head -1 .resol` ; else $(M_K) IPSLCM5A2-VLR ; fi |
---|
[396] | 14 | |
---|
[6491] | 15 | IPSLCM5A2-VLR : |
---|
[2537] | 16 | $(M_K) ORCA2LIM2xLMD9695-L39 |
---|
| 17 | |
---|
[6491] | 18 | PALEOIPSLCM5A2-VLR : |
---|
[5879] | 19 | $(M_K) ORCA2LIM2xLMD9695-L39xPALEO |
---|
| 20 | |
---|
[2967] | 21 | IPSLCM5A2-LR : |
---|
| 22 | $(M_K) ORCA2LIM2xLMD144142-L39 |
---|
| 23 | |
---|
[2300] | 24 | ORCA2LIM2xLMD9695-L39 : libioipsl oasis3-mct xios liborchidee orca2lim2 lmdz96x95x39 verif |
---|
[2108] | 25 | echo "ORCA2LIM2xLMD9695-L39" >.resol |
---|
[649] | 26 | echo "RESOL_ATM_3D=96x95x39" >>.resol |
---|
| 27 | echo "$(LIB_MPI)" >.libmpi |
---|
| 28 | |
---|
[5879] | 29 | ORCA2LIM2xLMD9695-L39xPALEO : libioipsl oasis3-mct xios liborchidee paleorca2lim2 paleolmdz96x95x39 verif |
---|
| 30 | echo "ORCA2LIM2xLMD9695-L39xPALEO" >.resol |
---|
| 31 | echo "RESOL_ATM_3D=96x95x39" >>.resol |
---|
| 32 | echo "$(LIB_MPI)" >.libmpi |
---|
| 33 | |
---|
[2300] | 34 | ORCA2LIM2xLMD144142-L39 : libioipsl oasis3-mct xios liborchidee orca2lim2 lmdz144x142x39 verif |
---|
[2108] | 35 | echo "ORCA2LIM2xLMD144142-L39" >.resol |
---|
[649] | 36 | echo "RESOL_ATM_3D=144x142x39" >>.resol |
---|
| 37 | echo "$(LIB_MPI)" >.libmpi |
---|
| 38 | |
---|
[1043] | 39 | libioipsl : ../../modeles/IOIPSL/src |
---|
[6494] | 40 | (ln -s ${arch_path}/arch-${FCM_ARCH}.env ${arch_path}/arch.env; . ${arch_path}/arch-${FCM_ARCH}.env; cd ../../modeles/IOIPSL/src ; $(M_K) -f Makefile) |
---|
[396] | 41 | |
---|
[2193] | 42 | oasis3-mct: |
---|
[6494] | 43 | (. ${arch_path}/arch-${FCM_ARCH}.env; cd $(OASIS_DIR)/util/make_dir ; cp $(MYSRC_DIR)/SOURCES/OASIS3-MCT/make_${FCM_ARCH} make.inc ; make -f TopMakefileOasis3 ; ) |
---|
[396] | 44 | |
---|
[1043] | 45 | liborchidee : ../../modeles/ORCHIDEE/ |
---|
[6494] | 46 | (. ${arch_path}/arch-${FCM_ARCH}.env; cd ../../modeles/ORCHIDEE/ ; ./makeorchidee_fcm -parallel mpi_omp -arch $(FCM_ARCH) -j 8 -xios2) |
---|
[396] | 47 | |
---|
[647] | 48 | lmdz96x95x39: |
---|
| 49 | $(M_K) lmdz RESOL_LMDZ=96x95x39 |
---|
[396] | 50 | |
---|
[5879] | 51 | paleolmdz96x95x39: |
---|
| 52 | $(M_K) paleolmdz RESOL_LMDZ=96x95x39 |
---|
| 53 | |
---|
[647] | 54 | lmdz144x142x39: |
---|
| 55 | $(M_K) lmdz RESOL_LMDZ=144x142x39 |
---|
| 56 | |
---|
[1621] | 57 | lmdz: ../../modeles/LMDZ |
---|
[6494] | 58 | (. ${arch_path}/arch-${FCM_ARCH}.env; cd ../../modeles/LMDZ; ./makelmdz_fcm -d $(RESOL_LMDZ) -arch $(FCM_ARCH) -j 8 ce0l ; cp bin/ce0l_$(RESOL_LMDZ)_phylmd_seq.e ../../bin/create_etat0_limit.e ; ) |
---|
| 59 | (. ${arch_path}/arch-${FCM_ARCH}.env; cd ../../modeles/LMDZ ; ./makelmdz_fcm -d $(RESOL_LMDZ) -mem -cosp false -v true -parallel mpi_omp -io xios -c OMCT -job 8 -arch $(FCM_ARCH) gcm ; mv bin/gcm_$(RESOL_LMDZ)_phylmd_para_mem_orch_couple.e ../../bin/gcm.e ; ) |
---|
[647] | 60 | |
---|
[5879] | 61 | paleolmdz: ../../modeles/LMDZ |
---|
[6494] | 62 | (. ${arch_path}/arch-${FCM_ARCH}.env; cd ../../modeles/LMDZ; ./makelmdz_fcm -d $(RESOL_LMDZ) -arch $(FCM_ARCH) -j 8 ce0l ; cp bin/ce0l_$(RESOL_LMDZ)_phylmd_seq.e ../../bin/create_etat0_limit.e ; ) |
---|
| 63 | (. ${arch_path}/arch-${FCM_ARCH}.env; cd ../../modeles/LMDZ ; ./makelmdz_fcm -d $(RESOL_LMDZ) -mem -cosp false -v true -parallel mpi_omp -io xios -c OMCT -job 8 -arch $(FCM_ARCH) gcm ; mv bin/gcm_$(RESOL_LMDZ)_phylmd_para_mem_orch_couple.e ../../bin/gcm.e ; ) |
---|
[5879] | 64 | |
---|
[2060] | 65 | xios: ../../modeles/XIOS |
---|
[6491] | 66 | (cd ../../modeles/XIOS; ./make_xios --arch $(FCM_ARCH) --arch_path ${arch_path} --prod --use_oasis oasis3_mct --job 8 ; cp bin/xios_server.exe ../../bin/. ; ) |
---|
[396] | 67 | |
---|
[2224] | 68 | orca2lim2: ../../modeles/NEMOGCM/CONFIG |
---|
[6494] | 69 | (. ${arch_path}/arch-${FCM_ARCH}.env; cd ../../modeles/NEMOGCM/CONFIG; cp ../../../config/IPSLCM5A2/SOURCES/NEMO/arch-${FCM_ARCH}.fcm ../ARCH/. ; cp ../../../config/IPSLCM5A2/SOURCES/NEMO/*.cfg ../TOOLS/COMPILE/. ; ./makenemo -m ${FCM_ARCH} -n ORCA2_LIM_PISCES -e "$(MYSRC_DIR)/SOURCES/NEMO/STANDARD" -j16 add_key "key_lim2_vp key_oasis3 key_diahth key_diaar5 key_xios2" del_key "key_nosignedzero " ; cp ORCA2_LIM_PISCES/BLD/bin/nemo.exe ../../../bin/opa ; ) |
---|
[1055] | 70 | |
---|
[5879] | 71 | paleorca2lim2: ../../modeles/NEMOGCM/CONFIG |
---|
[6494] | 72 | (. ${arch_path}/arch-${FCM_ARCH}.env; cd ../../modeles/NEMOGCM/CONFIG; cp ../../../config/IPSLCM5A2/SOURCES/NEMO/arch-${FCM_ARCH}.fcm ../ARCH/. ; cp ../../../config/IPSLCM5A2/SOURCES/NEMO/PALEO/*.cfg ../TOOLS/COMPILE/. ; ./makenemo -m ${FCM_ARCH} -n ORCA2_LIM_PISCES -e "$(MYSRC_DIR)/SOURCES/NEMO/PALEO" -j16 add_key "key_lim2_vp key_oasis3 key_diahth key_diaar5 key_xios2" del_key "key_nosignedzero " ; cp ORCA2_LIM_PISCES/BLD/bin/nemo.exe ../../../bin/opa ; ) |
---|
[5879] | 73 | |
---|
[1043] | 74 | verif: ../../bin |
---|
[2075] | 75 | ls -l ../../bin |
---|
[396] | 76 | |
---|
[2137] | 77 | clean : cleannemo cleanlmdz cleanorchidee cleanxios cleanioipsl cleanoasis |
---|
| 78 | rm -rf $(LIBDIR)/* ; rm -f $(BINDIR)/* |
---|
| 79 | |
---|
| 80 | cleannemo : |
---|
| 81 | ../../modeles/NEMOGCM/CONFIG/makenemo clean |
---|
| 82 | rm -f $(BINDIR)/opa |
---|
| 83 | |
---|
| 84 | cleanlmdz : |
---|
| 85 | rm -rf ../../modeles/LMDZ/libo/* ../../modeles/LMDZ/bin/* ../../modeles/LMDZ/.lock |
---|
| 86 | rm -f $(BINDIR)/gcm.e $(BINDIR)/create_etat0_limit.e |
---|
| 87 | |
---|
| 88 | cleanorchidee : |
---|
[2329] | 89 | ( cd ../../modeles/ORCHIDEE ; ./makeorchidee_fcm -clean ) |
---|
[2137] | 90 | rm -f $(BINDIR)/gcm.e |
---|
| 91 | |
---|
| 92 | cleanoasis : |
---|
[2193] | 93 | rm -rf $(OASIS_DIR)/BLD |
---|
[2137] | 94 | rm -f $(BINDIR)/oasis |
---|
| 95 | |
---|
| 96 | cleanxios : |
---|
| 97 | rm -rf ../../modeles/XIOS/bin/ ../../modeles/XIOS/inc ../../modeles/XIOS/obj ../../modeles/XIOS/lib |
---|
| 98 | |
---|
| 99 | cleanioipsl : |
---|
[2876] | 100 | ( cd ../../modeles/IOIPSL/src ; gmake clean ) |
---|
[2137] | 101 | ( cd $(BINDIR) ; rm -f calendar.mod defprec.mod errioipsl.mod flincom.mod fliocom.mod getincom.mod histcom.mod ioipsl.mod libioipsl.a mathelp.mod restcom.mod stringop.mod ) |
---|
[2224] | 102 | |
---|