source: CONFIG/UNIFORM/v6_rc0/IPSLCM6CHT/AA_make

Last change on this file was 2579, checked in by acosce, 6 years ago

Add new experiment in ipslcm6cht compilation

File size: 4.7 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) ORCA2LIM2xLMD9695-L39 ; fi
12
13ORCA2LIM2xLMD9695-L39 : libioipsl oasis3-mct xios liborchidee orca2lim2 lmdz96x95x39 verif
14        echo "ORCA2LIM2xLMD9695-L39" >.resol
15        echo "RESOL_ATM_3D=96x95x39" >>.resol
16        echo "$(LIB_MPI)" >.libmpi
17
18ORCA2LIM2xLMD9695-L39xDUST : libioipsl oasis3-mct xios liborchidee orca2lim2 dust96x95x39 lmdz96x95x39 verif
19        echo "ORCA2LIM2xLMD9695-L39xDUST" >.resol
20        echo "RESOL_ATM_3D=96x95x39" >>.resol
21        echo "CHEM=DUST" > .chimie
22        echo "$(LIB_MPI)" >.libmpi
23
24ORCA2LIM2xLMD9695-L39xAER : libioipsl oasis3-mct xios liborchidee orca2lim2 aer96x95x39 lmdz96x95x39 verif
25        echo "ORCA2LIM2xLMD9695-L39xAER" >.resol
26        echo "RESOL_ATM_3D=96x95x39" >>.resol
27        echo "CHEM=AER" > .chimie
28        echo "$(LIB_MPI)" >.libmpi
29
30ORCA2LIM2xLMD144142-L39 : libioipsl oasis3-mct xios liborchidee orca2lim2 lmdz144x142x39 verif
31        echo "ORCA2LIM2xLMD144142-L39" >.resol
32        echo "RESOL_ATM_3D=144x142x39" >>.resol
33        echo "$(LIB_MPI)" >.libmpi
34
35ORCA2LIM2xLMD144142-L39xDUST : libioipsl oasis3-mct xios liborchidee orca2lim2 dust144x142x39 lmdz144x142x39 verif
36        echo "ORCA2LIM2xLMD144142-L39xDUST" >.resol
37        echo "RESOL_ATM_3D=144x142x39" >>.resol
38        echo "CHEM=DUST" > .chimie
39        echo "$(LIB_MPI)" >.libmpi
40
41ORCA2LIM2xLMD144142-L39xAER : libioipsl oasis3-mct xios liborchidee orca2lim2 aer144x142x39 lmdz144x142x39 verif
42        echo "ORCA2LIM2xLMD144142-L39xAER" >.resol
43        echo "RESOL_ATM_3D=144x142x39" >>.resol
44        echo "CHEM=AER" > .chimie
45        echo "$(LIB_MPI)" >.libmpi
46
47ORCA2LIM2xLMD280280-L39 : libioipsl oasis3-mct xios liborchidee orca2lim2 lmdz280x280x39 verif
48        echo "ORCA2LIM2xLMD280280-L39" >.resol
49        echo "RESOL_ATM_3D=280x280x39" >>.resol
50        echo "$(LIB_MPI)" >.libmpi
51
52libioipsl : ../../modeles/IOIPSL/src
53        (cd ../../modeles/IOIPSL/src ; $(M_K) -f Makefile)
54
55oasis3-mct:
56        (cd $(OASIS_DIR)/util/make_dir ; cp $(MYSRC_DIR)/SOURCES/OASIS3-MCT/make_${FCM_ARCH} make.inc ; make -f TopMakefileOasis3 ; )
57
58liborchidee : ../../modeles/ORCHIDEE/
59        (cd ../../modeles/ORCHIDEE/ ; ./makeorchidee_fcm -parallel mpi_omp -arch $(FCM_ARCH) -j 8 -xios)
60
61lmdz96x95x39:
62        $(M_K) lmdz RESOL_LMDZ=96x95x39
63
64lmdz144x142x39:
65        $(M_K) lmdz RESOL_LMDZ=144x142x39
66
67lmdz280x280x39:
68        $(M_K) lmdz RESOL_LMDZ=280x280x39
69
70lmdz: ../../modeles/LMDZ
71#       (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 ; )
72        (cd ../../modeles/LMDZ ; ./makelmdz_fcm -d $(RESOL_LMDZ) -chimie INCA -mem -cosp false -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 ; )
73
74dust96x95x39:
75        $(M_K) inca RESOL_INCA=96x95x39 CHIMIE=DUST
76
77dust144x142x39:
78        $(M_K) inca RESOL_INCA=144x142x39 CHIMIE=DUST
79
80aer96x95x39:
81        $(M_K) inca RESOL_INCA=96x95x39 CHIMIE=AER
82
83aer144x142x39:
84        $(M_K) inca RESOL_INCA=144x142x39 CHIMIE=AER
85
86inca: ../../modeles/INCA
87        (cd ../../modeles/INCA; ./makeinca_fcm -chimie $(CHIMIE) -xios -parallel mpi_omp -resol $(RESOL_INCA) -j 8 -arch $(FCM_ARCH); cp SIMULATIONS/$(CHIMIE)/inca.dat ../../bin/inca.dat ; )
88
89xios: ../../modeles/XIOS
90        (cd ../../modeles/XIOS; ./make_xios --arch $(FCM_ARCH) --prod --use_oasis oasis3_mct --job 8 ; cp bin/xios_server.exe ../../bin/. ; )
91
92orca2lim2:  ../../modeles/NEMOGCM/CONFIG
93        (cd ../../modeles/NEMOGCM/CONFIG; cp ../../../config/IPSLCM6CHT/SOURCES/NEMO/arch-${FCM_ARCH}.fcm ../ARCH/. ; cp ../../../config/IPSLCM6CHT/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_coupled key_oasis3 key_oasis_mct key_diahth key_diaar5" del_key "key_nosignedzero " ; cp ORCA2_LIM_PISCES/BLD/bin/nemo.exe ../../../bin/opa ; )
94
95verif: ../../bin
96        ls -l ../../bin
97
98clean : cleannemo cleanlmdz cleanorchidee cleanxios cleanoasis cleaninca
99        rm -rf $(LIBDIR)/* ; rm -f $(BINDIR)/*
100
101cleannemo :
102        ../../modeles/NEMOGCM/CONFIG/makenemo clean
103        rm -f $(BINDIR)/opa
104
105cleanlmdz :
106        rm -rf ../../modeles/LMDZ/libo/* ../../modeles/LMDZ/bin/* ../../modeles/LMDZ/.lock
107        rm -f $(BINDIR)/gcm.e $(BINDIR)/create_etat0_limit.e
108
109cleanorchidee :
110        ( cd ../../modeles/ORCHIDEE ; ./makeorchidee_fcm -clean )
111        rm -f $(BINDIR)/gcm.e   
112
113cleaninca :
114        ( cd ../../modeles/INCA ; ./makeinca_fcm -clean )
115        rm -f $(BINDIR)/gcm.e   
116
117cleanoasis :
118        rm -rf $(OASIS_DIR)/BLD
119        rm -f $(BINDIR)/oasis
120
121cleanxios :
122        rm -rf ../../modeles/XIOS/bin/ ../../modeles/XIOS/inc ../../modeles/XIOS/obj ../../modeles/XIOS/lib
123
124cleanioipsl :
125        ( cd $(LIBDIR) ; 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 )
126
Note: See TracBrowser for help on using the repository browser.