source: CONFIG/UNIFORM/v6/IPSLCM5A2CHT/AA_make @ 3969

Last change on this file since 3969 was 3894, checked in by acosce, 3 years ago

Add a target with strato chemistry in Makefile for IPSLCM5A2CHT

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) IPSLCM5A2CHTS-VLR ; fi
12
13IPSLCM5A2-VLR :
14        $(M_K) ORCA2LIM2xLMD9695-L39
15
16IPSLCM5A2CHT-VLR :     
17        $(M_K) ORCA2LIM2xLMD9695-L39xNMHC_AER
18
19IPSLCM5A2CHTS-VLR :     
20        $(M_K) ORCA2LIM2xLMD9695-L39xNMHC_AER_S
21
22IPSLCM5A2-LR :
23        $(M_K) ORCA2LIM2xLMD144142-L39
24
25ORCA2LIM2xLMD9695-L39 : libioipsl oasis3-mct xios liborchidee orca2lim2 lmdz96x95x39 verif
26        echo "ORCA2LIM2xLMD9695-L39" >.resol
27        echo "RESOL_ATM_3D=96x95x39" >>.resol
28        echo "$(LIB_MPI)" >.libmpi
29
30ORCA2LIM2xLMD9695-L39xNMHC_AER : libioipsl oasis3-mct xios liborchidee orca2lim2 nmhcaer96x95x39 lmdz96x95x39  verif
31        echo "ORCA2LIM2xLMD9695-L39xNMHC_AER" >.resol
32        echo "RESOL_ATM_3D=96x95x39" >>.resol
33        echo "CHEM=NMHC_AER" > .chimie
34        echo "$(LIB_MPI)" >.libmpi
35
36ORCA2LIM2xLMD9695-L39xNMHC_AER_S : libioipsl oasis3-mct xios liborchidee orca2lim2 nmhcaerS96x95x39 lmdz96x95x39  verif
37        echo "ORCA2LIM2xLMD9695-L39xNMHC_AER_S" >.resol
38        echo "RESOL_ATM_3D=96x95x39" >>.resol
39        echo "CHEM=NMHC_AER_S" > .chimie
40        echo "$(LIB_MPI)" >.libmpi
41
42ORCA2LIM2xLMD144142-L39 : libioipsl oasis3-mct xios liborchidee orca2lim2 lmdz144x142x39 verif
43        echo "ORCA2LIM2xLMD144142-L39" >.resol
44        echo "RESOL_ATM_3D=144x142x39" >>.resol
45        echo "$(LIB_MPI)" >.libmpi
46
47libioipsl : ../../modeles/IOIPSL/src
48        (cd ../../modeles/IOIPSL/src ; $(M_K) -f Makefile)
49
50oasis3-mct:
51        (cd $(OASIS_DIR)/util/make_dir ; cp $(MYSRC_DIR)/SOURCES/OASIS3-MCT/make_${FCM_ARCH} make.inc ; make -f TopMakefileOasis3 ; )
52
53liborchidee : ../../modeles/ORCHIDEE/
54        (cd ../../modeles/ORCHIDEE/ ; ./makeorchidee_fcm -parallel mpi_omp -arch $(FCM_ARCH) -j 8 -xios2)
55
56nmhcaer96x95x39:
57        $(M_K) inca RESOL_INCA=96x95x39 CHIMIE=NMHC_AER
58
59nmhcaerS96x95x39:
60        $(M_K) inca RESOL_INCA=96x95x39 CHIMIE=NMHC_AER_S
61
62lmdz96x95x39:
63        $(M_K) lmdz RESOL_LMDZ=96x95x39
64
65lmdz144x142x39:
66        $(M_K) lmdz RESOL_LMDZ=144x142x39
67
68inca: ../../modeles/INCA
69#       (cd ../../modeles/INCA; ./makeinca_fcm -chimie $(CHIMIE) -prod  -resol $(RESOL_INCA) -j 8 -arch $(FCM_ARCH); cp SIMULATIONS/$(CHIMIE)/inca.dat ../../bin/inca.dat ; )
70        (cd ../../modeles/INCA; ./makeinca_fcm -chimie $(CHIMIE) -prod -xios -parallel mpi_omp -resol $(RESOL_INCA) -j 8 -arch $(FCM_ARCH); cp SIMULATIONS/$(CHIMIE)/inca.dat ../../bin/inca.dat ; )
71
72lmdz: ../../modeles/LMDZ
73#       (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 ; )
74        (cd ../../modeles/LMDZ ; ./makelmdz_fcm -d $(RESOL_LMDZ) -mem -cosp false  -chimie INCA -v true -parallel mpi_omp -io xios -c OMCT -job 8 -arch $(FCM_ARCH) gcm  ; cp bin/gcm_$(RESOL_LMDZ)_phylmd_para_mem_orch_couple_inca.e ../../bin/gcm.e ; )
75
76xios: ../../modeles/XIOS
77        (cd ../../modeles/XIOS; ./make_xios --arch $(FCM_ARCH) --prod --use_oasis oasis3_mct --job 8 ; cp bin/xios_server.exe ../../bin/. ; )
78
79orca2lim2:  ../../modeles/NEMOGCM/CONFIG
80        (cd ../../modeles/NEMOGCM/CONFIG; cp ../../../config/IPSLCM5A2CHT/SOURCES/NEMO/arch-${FCM_ARCH}.fcm ../ARCH/. ; cp ../../../config/IPSLCM5A2CHT/SOURCES/NEMO/*.cfg ../TOOLS/COMPILE/. ; ./makenemo -m ${FCM_ARCH} -n ORCA2_LIM_PISCES -e "$(MYSRC_DIR)/SOURCES/NEMO" -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 ; )
81
82verif: ../../bin
83        ls -l ../../bin
84
85clean : cleannemo cleanlmdz cleanorchidee cleanxios cleanioipsl cleanoasis
86        rm -rf $(LIBDIR)/* ; rm -f $(BINDIR)/*
87
88cleannemo :
89        ../../modeles/NEMOGCM/CONFIG/makenemo clean
90        rm -f $(BINDIR)/opa
91
92cleanlmdz :
93        rm -rf ../../modeles/LMDZ/libo/* ../../modeles/LMDZ/bin/* ../../modeles/LMDZ/.lock
94        rm -f $(BINDIR)/gcm.e $(BINDIR)/create_etat0_limit.e
95
96cleanorchidee :
97        ( cd ../../modeles/ORCHIDEE ; ./makeorchidee_fcm -clean )
98        rm -f $(BINDIR)/gcm.e   
99
100cleanoasis :
101        rm -rf $(OASIS_DIR)/BLD
102        rm -f $(BINDIR)/oasis
103
104cleanxios :
105        rm -rf ../../modeles/XIOS/bin/ ../../modeles/XIOS/inc ../../modeles/XIOS/obj ../../modeles/XIOS/lib
106
107cleanioipsl :
108        ( cd ../../modeles/IOIPSL/src ; gmake clean )
109        ( 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 )       
110
Note: See TracBrowser for help on using the repository browser.