source: CONFIG/UNIFORM/v6/IPSLCM5A2/AA_make @ 6006

Last change on this file since 6006 was 6006, checked in by snguyen, 2 years ago

update AA_make to reflect the deletion of the LMDZ directory from sources

File size: 4.2 KB
Line 
1#- $Id$
2#-
3#- AA_make for IPSLCM5_v4 configuration
4#-
5
6OASIS_DIR = ../../oasis3-mct
7
8MYSRC_DIR = $(shell /bin/pwd)
9
10all :
11        if [ -s ./.resol ] ; then $(M_K) `head -1 .resol` ; else $(M_K) IPSLCM5A2-VLR ; fi
12
13IPSLCM5A2-VLR :
14        $(M_K) ORCA2LIM2xLMD9695-L39
15
16PALEOIPSLCM5A2-VLR :   
17        $(M_K) ORCA2LIM2xLMD9695-L39xPALEO
18
19IPSLCM5A2-LR :
20        $(M_K) ORCA2LIM2xLMD144142-L39
21
22ORCA2LIM2xLMD9695-L39 : libioipsl oasis3-mct xios liborchidee orca2lim2 lmdz96x95x39 verif
23        echo "ORCA2LIM2xLMD9695-L39" >.resol
24        echo "RESOL_ATM_3D=96x95x39" >>.resol
25        echo "$(LIB_MPI)" >.libmpi
26
27ORCA2LIM2xLMD9695-L39xPALEO : libioipsl oasis3-mct xios liborchidee paleorca2lim2 paleolmdz96x95x39 verif
28        echo "ORCA2LIM2xLMD9695-L39xPALEO" >.resol
29        echo "RESOL_ATM_3D=96x95x39" >>.resol
30        echo "$(LIB_MPI)" >.libmpi
31
32ORCA2LIM2xLMD144142-L39 : libioipsl oasis3-mct xios liborchidee orca2lim2 lmdz144x142x39 verif
33        echo "ORCA2LIM2xLMD144142-L39" >.resol
34        echo "RESOL_ATM_3D=144x142x39" >>.resol
35        echo "$(LIB_MPI)" >.libmpi
36
37libioipsl : ../../modeles/IOIPSL/src
38        (cd ../../modeles/IOIPSL/src ; $(M_K) -f Makefile)
39
40oasis3-mct:
41        (cd $(OASIS_DIR)/util/make_dir ; cp $(MYSRC_DIR)/SOURCES/OASIS3-MCT/make_${FCM_ARCH} make.inc ; make -f TopMakefileOasis3 ; )
42
43liborchidee : ../../modeles/ORCHIDEE/
44        (cd ../../modeles/ORCHIDEE/ ; ./makeorchidee_fcm -parallel mpi_omp -arch $(FCM_ARCH) -j 8 -xios2)
45
46lmdz96x95x39:
47        $(M_K) lmdz RESOL_LMDZ=96x95x39
48
49paleolmdz96x95x39:
50        $(M_K) paleolmdz RESOL_LMDZ=96x95x39
51
52lmdz144x142x39:
53        $(M_K) lmdz RESOL_LMDZ=144x142x39
54
55lmdz: ../../modeles/LMDZ
56#       (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 ; )
57        (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 ; )
58
59paleolmdz: ../../modeles/LMDZ
60        (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 ; )
61        (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 ; )
62
63xios: ../../modeles/XIOS
64        (cd ../../modeles/XIOS; ./make_xios --arch $(FCM_ARCH) --prod --use_oasis oasis3_mct --job 8 ; cp bin/xios_server.exe ../../bin/. ; )
65
66orca2lim2:  ../../modeles/NEMOGCM/CONFIG
67        (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 ; )
68
69paleorca2lim2:  ../../modeles/NEMOGCM/CONFIG
70        (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 ; )
71
72verif: ../../bin
73        ls -l ../../bin
74
75clean : cleannemo cleanlmdz cleanorchidee cleanxios cleanioipsl cleanoasis
76        rm -rf $(LIBDIR)/* ; rm -f $(BINDIR)/*
77
78cleannemo :
79        ../../modeles/NEMOGCM/CONFIG/makenemo clean
80        rm -f $(BINDIR)/opa
81
82cleanlmdz :
83        rm -rf ../../modeles/LMDZ/libo/* ../../modeles/LMDZ/bin/* ../../modeles/LMDZ/.lock
84        rm -f $(BINDIR)/gcm.e $(BINDIR)/create_etat0_limit.e
85
86cleanorchidee :
87        ( cd ../../modeles/ORCHIDEE ; ./makeorchidee_fcm -clean )
88        rm -f $(BINDIR)/gcm.e   
89
90cleanoasis :
91        rm -rf $(OASIS_DIR)/BLD
92        rm -f $(BINDIR)/oasis
93
94cleanxios :
95        rm -rf ../../modeles/XIOS/bin/ ../../modeles/XIOS/inc ../../modeles/XIOS/obj ../../modeles/XIOS/lib
96
97cleanioipsl :
98        ( cd ../../modeles/IOIPSL/src ; gmake clean )
99        ( 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 )       
100
Note: See TracBrowser for help on using the repository browser.