source: CONFIG/UNIFORM/v6/IPSLESM6/AA_make @ 3692

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

Fixe a bug in compilation for ESM

File size: 4.1 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) IPSLESM6-CO2-LR ; fi
12
13
14IPSLESM6-CO2-LR :
15        $(M_K) ORCA1LIM3xLMD144142-L79
16
17IPSLESM6-AER-LR :
18        $(M_K) ORCA1LIM3xLMD144142-L79xAER
19
20
21ORCA1LIM3xLMD144142-L79 : libioipsl oasis3-mct xios liborchidee orca1lim3 lmdz144x142x79 verif
22        echo "ORCA1LIM3xLMD144142-L79" >.resol
23        echo "RESOL_ATM_3D=144x142x79" >>.resol
24        echo "$(LIB_MPI)" >.libmpi
25
26ORCA1LIM3xLMD144142-L79xAER : libioipsl oasis3-mct xios liborchidee orca1lim3 aer144x142x79 lmdzC144x142x79 verif
27        echo "ORCA1LIM3xLMD144142-L79xAER" >.resol
28        echo "RESOL_ATM_3D=144x142x79" >>.resol
29        echo "$(LIB_MPI)" >.libmpi
30        echo "CHEM=AER" > .chimie
31
32
33libioipsl : ../../modeles/IOIPSL/src
34        (cd ../../modeles/IOIPSL/src ; $(M_K) -f Makefile)
35
36oasis3-mct:
37        (cd $(OASIS_DIR)/util/make_dir ; cp $(MYSRC_DIR)/SOURCES/OASIS3-MCT/make_${FCM_ARCH} make.inc ; make -f TopMakefileOasis3 ; )
38
39liborchidee : ../../modeles/ORCHIDEE/
40        (cd ../../modeles/ORCHIDEE/ ; ./makeorchidee_fcm -parallel mpi_omp -arch $(FCM_ARCH) -j 8 -xios2)
41
42
43lmdz144x142x79:
44        $(M_K) lmdz RESOL_LMDZ=144x142x79
45
46lmdzC144x142x79:
47        $(M_K) lmdzC RESOL_LMDZ=144x142x79
48
49aer144x142x79:
50        $(M_K) inca RESOL_INCA=144x142x79 CHIMIE=AER
51
52inca: ../../modeles/INCA
53#       (cd ../../modeles/INCA; ./makeinca_fcm -chimie $(CHIMIE) -prod  -resol $(RESOL_INCA) -j 8 -arch $(FCM_ARCH); cp SIMULATIONS/$(CHIMIE)/inca.dat ../../bin/inca.dat ; )
54        (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 ; )
55
56
57lmdzC: ../../modeles/LMDZ
58#       (cd ../../modeles/LMDZ; ./makelmdz_fcm -d $(RESOL_LMDZ) -arch $(FCM_ARCH) -j 8 ce0l ; mv bin/ce0l_$(RESOL_LMDZ)_phylmd_seq.e ../../bin/create_etat0_limit.e ; )
59        (cd ../../modeles/LMDZ ; ./makelmdz_fcm -d $(RESOL_LMDZ) -mem -cosp true   -chimie INCA  -v true -parallel mpi_omp -io xios -rrtm true -c OMCT -job 8 -arch $(FCM_ARCH) gcm  ; mv bin/gcm_$(RESOL_LMDZ)_phylmd_para_mem_orch_couple_inca.e ../../bin/gcm.e ; )
60
61lmdz: ../../modeles/LMDZ
62#       (cd ../../modeles/LMDZ; ./makelmdz_fcm -d $(RESOL_LMDZ) -arch $(FCM_ARCH) -j 8 ce0l ; mv bin/ce0l_$(RESOL_LMDZ)_phylmd_seq.e ../../bin/create_etat0_limit.e ; )
63        (cd ../../modeles/LMDZ ; ./makelmdz_fcm -d $(RESOL_LMDZ) -mem -cosp true   -v true -parallel mpi_omp -io xios -rrtm true -c OMCT -job 8 -arch $(FCM_ARCH) gcm  ; mv bin/gcm_$(RESOL_LMDZ)_phylmd_para_mem_orch_couple.e ../../bin/gcm.e ; )
64
65xios: ../../modeles/XIOS
66        (cd ../../modeles/XIOS; ./make_xios --arch $(FCM_ARCH) --prod --use_oasis oasis3_mct --job 8 ; cp bin/xios_server.exe ../../bin/. ; )
67
68
69orca1lim3: ../../modeles/NEMOGCM/CONFIG
70        (cd ../../modeles/NEMOGCM/CONFIG ; cp ../../../config/IPSLESM6/SOURCES/NEMO/*.*90 ORCA1_LIM3_PISCES/MY_SRC/ ; cp ../../../config/IPSLESM6/SOURCES/NEMO/arch-${FCM_ARCH}.fcm ../ARCH/. ; cp ../../../config/IPSLESM6/SOURCES/NEMO/*.cfg ../TOOLS/COMPILE/. ; ./makenemo -m ${FCM_ARCH} -n ORCA1_LIM3_PISCES -d "OPA_SRC LIM_SRC_3 NST_SRC TOP_SRC" -j16 add_key "key_oasis3 key_diahth key_cpl_carbon_cycle"  del_key "key_mpp_rep key_nosignedzero                  " ; cp ORCA1_LIM3_PISCES/BLD/bin/nemo.exe ../../../bin/opa ; )
71
72
73verif: ../../bin
74        ls -l ../../bin
75
76clean : cleannemo cleanlmdz cleanorchidee cleanxios cleanioipsl cleanoasis
77        rm -rf $(LIBDIR)/* ; rm -f $(BINDIR)/*
78
79cleannemo :
80        ../../modeles/NEMOGCM/CONFIG/makenemo clean
81        rm -f $(BINDIR)/opa
82
83cleanlmdz :
84        rm -rf ../../modeles/LMDZ/libo/* ../../modeles/LMDZ/bin/* ../../modeles/LMDZ/.lock
85        rm -f $(BINDIR)/gcm.e $(BINDIR)/create_etat0_limit.e
86
87cleanorchidee :
88        ( cd ../../modeles/ORCHIDEE ; ./makeorchidee_fcm -clean )
89        rm -f $(BINDIR)/gcm.e   
90
91cleanoasis :
92        rm -rf $(OASIS_DIR)/BLD
93        rm -f $(BINDIR)/oasis
94
95cleanxios :
96        rm -rf ../../modeles/XIOS/bin/ ../../modeles/XIOS/inc ../../modeles/XIOS/obj ../../modeles/XIOS/lib
97
98cleanioipsl :
99        ( cd ../../modeles/IOIPSL/src ; gmake clean )
100        ( 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 )       
101
Note: See TracBrowser for help on using the repository browser.