source: CONFIG/UNIFORM/v6/IPSLCM6/AA_make @ 4141

Last change on this file since 4141 was 4141, checked in by mafoipsl, 3 years ago

IPSLCM6-MR1 = ORCA1LIM3xLMD256256-L79 added in IPSLCM6_AA_make. To compile it : gmake IPSLCM6-MR1

File size: 6.8 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) IPSLCM6-LR ; fi
12
13IPSLCM6A-VLR : 
14        $(M_K) ORCA2LIM2xLMD9695-L39
15
16IPSLCM6-LR :
17        $(M_K) ORCA1LIM3xLMD144142-L79
18
19IPSLCM6-MR1 :
20        $(M_K) ORCA1LIM3xLMD256256-L79
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
27ORCA2LIM3xLMD9695-L39 : libioipsl oasis3-mct xios liborchidee orca2lim3 lmdz96x95x39 verif
28        echo "ORCA2LIM3xLMD9695-L39" >.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
37ORCA1LIM3xLMD9695-L39 : libioipsl oasis3-mct xios liborchidee orca1lim3 lmdz96x95x39 verif
38        echo "ORCA1LIM3xLMD9695-L39" >.resol
39        echo "RESOL_ATM_3D=96x95x39" >>.resol
40        echo "$(LIB_MPI)" >.libmpi
41
42ORCA1LIM3xLMD9695-L39-NOPISCES : libioipsl oasis3-mct xios liborchidee orca1lim3nopisces lmdz96x95x39 verif
43        echo "ORCA1LIM3xLMD9695-L39" >.resol
44        echo "RESOL_ATM_3D=96x95x39" >>.resol
45        echo "$(LIB_MPI)" >.libmpi
46
47ORCA1LIM3xLMD144142-L39 : libioipsl oasis3-mct xios liborchidee orca1lim3 lmdz144x142x39 verif
48        echo "ORCA1LIM3xLMD144142-L39" >.resol
49        echo "RESOL_ATM_3D=144x142x39" >>.resol
50        echo "$(LIB_MPI)" >.libmpi
51
52ORCA1LIM3xLMD144142-L39-NOPISCES : libioipsl oasis3-mct xios liborchidee orca1lim3nopisces lmdz144x142x39 verif
53        echo "ORCA1LIM3xLMD144142-L39" >.resol
54        echo "RESOL_ATM_3D=144x142x39" >>.resol
55        echo "$(LIB_MPI)" >.libmpi
56
57ORCA1LIM3xLMD144142-L79 : libioipsl oasis3-mct xios liborchidee orca1lim3 lmdz144x142x79 verif
58        echo "ORCA1LIM3xLMD144142-L79" >.resol
59        echo "RESOL_ATM_3D=144x142x79" >>.resol
60        echo "$(LIB_MPI)" >.libmpi
61
62ORCA1LIM3xLMD144142-L79-NOPISCES : libioipsl oasis3-mct xios liborchidee orca1lim3nopisces lmdz144x142x79 verif
63        echo "ORCA1LIM3xLMD144142-L79-NOPISCES" >.resol
64        echo "RESOL_ATM_3D=144x142x79" >>.resol
65        echo "$(LIB_MPI)" >.libmpi
66
67ORCA1LIM3xLMD256256-L79 : libioipsl oasis3-mct xios liborchidee orca1lim3 lmdz256x256x79 verif
68        echo "ORCA1LIM3xLMD256256-L79" >.resol
69        echo "RESOL_ATM_3D=256x256x79" >>.resol
70        echo "$(LIB_MPI)" >.libmpi
71
72libioipsl : ../../modeles/IOIPSL/src
73        (cd ../../modeles/IOIPSL/src ; $(M_K) -f Makefile)
74
75oasis3-mct:
76        (cd $(OASIS_DIR)/util/make_dir ; cp $(MYSRC_DIR)/SOURCES/OASIS3-MCT/make_${FCM_ARCH} make.inc ; make -f TopMakefileOasis3 ; )
77
78liborchidee : ../../modeles/ORCHIDEE/
79        (cd ../../modeles/ORCHIDEE/ ; ./makeorchidee_fcm -parallel mpi_omp -arch $(FCM_ARCH) -j 8 -xios2)
80
81lmdz96x95x39:
82        $(M_K) lmdz RESOL_LMDZ=96x95x39
83
84lmdz144x142x39:
85        $(M_K) lmdz RESOL_LMDZ=144x142x39
86
87lmdz144x142x79:
88        $(M_K) lmdz RESOL_LMDZ=144x142x79
89
90lmdz256x256x79:
91        $(M_K) lmdz RESOL_LMDZ=256x256x79
92
93lmdz: ../../modeles/LMDZ
94#       (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 ; )
95        (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 ; )
96
97xios: ../../modeles/XIOS
98        (cd ../../modeles/XIOS; ./make_xios --arch $(FCM_ARCH) --prod --use_oasis oasis3_mct --job 8 ; cp bin/xios_server.exe ../../bin/. ; )
99
100orca2lim2:  ../../modeles/NEMOGCM/CONFIG
101        (cd ../../modeles/NEMOGCM/CONFIG; cp ../../../config/IPSLCM6/SOURCES/NEMO/arch-${FCM_ARCH}.fcm ../ARCH/. ; cp ../../../config/IPSLCM6/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_diahth key_oasis3" del_key "key_nosignedzero " ; cp ORCA2_LIM_PISCES/BLD/bin/nemo.exe ../../../bin/opa ; )
102
103orca2lim3:  ../../modeles/NEMOGCM/CONFIG
104        (cd ../../modeles/NEMOGCM/CONFIG; cp ../../../config/IPSLCM6/SOURCES/NEMO/arch-${FCM_ARCH}.fcm ../ARCH/. ; cp ../../../config/IPSLCM6/SOURCES/NEMO/*.cfg ../TOOLS/COMPILE/. ; ./makenemo -m ${FCM_ARCH} -n ORCA2_LIM3_PISCES -d "OPA_SRC LIM_SRC_3 NST_SRC TOP_SRC" -e "$(MYSRC_DIR)/SOURCES/NEMO" -j16 add_key "key_lim3 key_oasis3 key_top key_pisces" del_key "key_lim2 key_nosignedzero" ; cp ORCA2_LIM3_PISCES/BLD/bin/nemo.exe ../../../bin/opa ; )
105
106orca1lim3: ../../modeles/NEMOGCM/CONFIG
107        (cd ../../modeles/NEMOGCM/CONFIG ; cp ../../../config/IPSLCM6/SOURCES/NEMO/*.*90 ORCA1_LIM3_PISCES/MY_SRC/ ; cp ../../../config/IPSLCM6/SOURCES/NEMO/arch-${FCM_ARCH}.fcm ../ARCH/. ; cp ../../../config/IPSLCM6/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"  del_key "key_mpp_rep key_nosignedzero                  " ; cp ORCA1_LIM3_PISCES/BLD/bin/nemo.exe ../../../bin/opa ; )
108
109orca1lim3nopisces: ../../modeles/NEMOGCM/CONFIG
110        (cd ../../modeles/NEMOGCM/CONFIG ; cp ../../../config/IPSLCM6/SOURCES/NEMO/*.*90 ORCA1_LIM3_PISCES/MY_SRC/ ; cp ../../../config/IPSLCM6/SOURCES/NEMO/arch-${FCM_ARCH}.fcm ../ARCH/. ; cp ../../../config/IPSLCM6/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                   " del_key "key_mpp_rep key_nosignedzero key_top key_pisces" ; cp ORCA1_LIM3_PISCES/BLD/bin/nemo.exe ../../../bin/opa ; )
111
112orca1lim2:  ../../modeles/NEMOGCM/CONFIG
113        (cd ../../modeles/NEMOGCM/CONFIG; cp ../../../config/IPSLCM6/SOURCES/NEMO/arch-${FCM_ARCH}.fcm ../ARCH/. ; cp ../../../config/IPSLCM6/SOURCES/NEMO/*.cfg ../TOOLS/COMPILE/. ; ./makenemo -m ${FCM_ARCH} -n ORCA1_LIM2_PISCES -d "OPA_SRC LIM_SRC_2 NST_SRC TOP_SRC" -e "$(MYSRC_DIR)/SOURCES/NEMO" -j16 add_key "key_top key_pisces key_lim2 key_lim2_vp key_oasis3 key_vvl" del_key "key_lim3 key_nosignedzero " ; cp ORCA1_LIM2_PISCES/BLD/bin/nemo.exe ../../../bin/opa ; )
114
115verif: ../../bin
116        ls -l ../../bin
117
118clean : cleanioipsl cleanoasis cleanxios cleanorchidee cleannemo cleanlmdz
119        rm -rf $(LIBDIR)/* ; rm -f $(BINDIR)/*
120
121cleannemo :
122        ../../modeles/NEMOGCM/CONFIG/makenemo clean
123        rm -f $(BINDIR)/opa
124
125cleanlmdz :
126        rm -rf ../../modeles/LMDZ/libo/* ../../modeles/LMDZ/bin/* ../../modeles/LMDZ/.lock
127        rm -f $(BINDIR)/gcm.e $(BINDIR)/create_etat0_limit.e
128
129cleanorchidee :
130        ( cd ../../modeles/ORCHIDEE ; ./makeorchidee_fcm -clean )
131        rm -f $(BINDIR)/gcm.e   
132
133cleanoasis :
134        rm -rf $(OASIS_DIR)/BLD
135        rm -f $(BINDIR)/oasis
136
137cleanxios :
138        rm -rf ../../modeles/XIOS/bin/ ../../modeles/XIOS/inc ../../modeles/XIOS/obj ../../modeles/XIOS/lib
139
140cleanioipsl :
141        ( cd ../../modeles/IOIPSL/src ; gmake clean )
142        ( 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 )       
143
Note: See TracBrowser for help on using the repository browser.