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

Last change on this file since 2974 was 2974, checked in by jgipsl, 8 years ago

Move gcm.e executable instead of coping it. This is done to be sure to always recreate the executable in LMDZ to take into account modifcations in libries from the other linked models.

File size: 6.5 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
19ORCA2LIM2xLMD9695-L39 : libioipsl oasis3-mct xios liborchidee orca2lim2 lmdz96x95x39 verif
20        echo "ORCA2LIM2xLMD9695-L39" >.resol
21        echo "RESOL_ATM_3D=96x95x39" >>.resol
22        echo "$(LIB_MPI)" >.libmpi
23
24ORCA2LIM3xLMD9695-L39 : libioipsl oasis3-mct xios liborchidee orca2lim3 lmdz96x95x39 verif
25        echo "ORCA2LIM3xLMD9695-L39" >.resol
26        echo "RESOL_ATM_3D=96x95x39" >>.resol
27        echo "$(LIB_MPI)" >.libmpi
28
29ORCA2LIM2xLMD144142-L39 : libioipsl oasis3-mct xios liborchidee orca2lim2 lmdz144x142x39 verif
30        echo "ORCA2LIM2xLMD144142-L39" >.resol
31        echo "RESOL_ATM_3D=144x142x39" >>.resol
32        echo "$(LIB_MPI)" >.libmpi
33
34ORCA1LIM3xLMD9695-L39 : libioipsl oasis3-mct xios liborchidee orca1lim3 lmdz96x95x39 verif
35        echo "ORCA1LIM3xLMD9695-L39" >.resol
36        echo "RESOL_ATM_3D=96x95x39" >>.resol
37        echo "$(LIB_MPI)" >.libmpi
38
39ORCA1LIM3xLMD9695-L39-NOPISCES : libioipsl oasis3-mct xios liborchidee orca1lim3nopisces lmdz96x95x39 verif
40        echo "ORCA1LIM3xLMD9695-L39" >.resol
41        echo "RESOL_ATM_3D=96x95x39" >>.resol
42        echo "$(LIB_MPI)" >.libmpi
43
44ORCA1LIM3xLMD144142-L39 : libioipsl oasis3-mct xios liborchidee orca1lim3 lmdz144x142x39 verif
45        echo "ORCA1LIM3xLMD144142-L39" >.resol
46        echo "RESOL_ATM_3D=144x142x39" >>.resol
47        echo "$(LIB_MPI)" >.libmpi
48
49ORCA1LIM3xLMD144142-L39-NOPISCES : libioipsl oasis3-mct xios liborchidee orca1lim3nopisces lmdz144x142x39 verif
50        echo "ORCA1LIM3xLMD144142-L39" >.resol
51        echo "RESOL_ATM_3D=144x142x39" >>.resol
52        echo "$(LIB_MPI)" >.libmpi
53
54ORCA1LIM3xLMD144142-L79 : libioipsl oasis3-mct xios liborchidee orca1lim3 lmdz144x142x79 verif
55        echo "ORCA1LIM3xLMD144142-L79" >.resol
56        echo "RESOL_ATM_3D=144x142x79" >>.resol
57        echo "$(LIB_MPI)" >.libmpi
58
59ORCA1LIM3xLMD144142-L79-NOPISCES : libioipsl oasis3-mct xios liborchidee orca1lim3nopisces lmdz144x142x79 verif
60        echo "ORCA1LIM3xLMD144142-L79-NOPISCES" >.resol
61        echo "RESOL_ATM_3D=144x142x79" >>.resol
62        echo "$(LIB_MPI)" >.libmpi
63
64libioipsl : ../../modeles/IOIPSL/src
65        (cd ../../modeles/IOIPSL/src ; $(M_K) -f Makefile)
66
67oasis3-mct:
68        (cd $(OASIS_DIR)/util/make_dir ; cp $(MYSRC_DIR)/SOURCES/OASIS3-MCT/make_${FCM_ARCH} make.inc ; make -f TopMakefileOasis3 ; )
69
70liborchidee : ../../modeles/ORCHIDEE/
71        (cd ../../modeles/ORCHIDEE/ ; ./makeorchidee_fcm -parallel mpi_omp -arch $(FCM_ARCH) -j 8 -xios2)
72
73lmdz96x95x39:
74        $(M_K) lmdz RESOL_LMDZ=96x95x39
75
76lmdz144x142x39:
77        $(M_K) lmdz RESOL_LMDZ=144x142x39
78
79lmdz144x142x79:
80        $(M_K) lmdz RESOL_LMDZ=144x142x79
81
82lmdz: ../../modeles/LMDZ
83#       (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 ; )
84        (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 ; )
85
86xios: ../../modeles/XIOS
87        (cd ../../modeles/XIOS; ./make_xios --arch $(FCM_ARCH) --prod --use_oasis oasis3_mct --job 8 ; cp bin/xios_server.exe ../../bin/. ; )
88
89orca2lim2:  ../../modeles/NEMOGCM/CONFIG
90        (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 ; )
91
92orca2lim3:  ../../modeles/NEMOGCM/CONFIG
93        (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 ; )
94
95orca1lim3: ../../modeles/NEMOGCM/CONFIG
96        (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 ; )
97
98orca1lim3nopisces: ../../modeles/NEMOGCM/CONFIG
99        (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 ; )
100
101orca1lim2:  ../../modeles/NEMOGCM/CONFIG
102        (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 ; )
103
104verif: ../../bin
105        ls -l ../../bin
106
107clean : cleannemo cleanlmdz cleanorchidee cleanxios cleanioipsl cleanoasis
108        rm -rf $(LIBDIR)/* ; rm -f $(BINDIR)/*
109
110cleannemo :
111        ../../modeles/NEMOGCM/CONFIG/makenemo clean
112        rm -f $(BINDIR)/opa
113
114cleanlmdz :
115        rm -rf ../../modeles/LMDZ/libo/* ../../modeles/LMDZ/bin/* ../../modeles/LMDZ/.lock
116        rm -f $(BINDIR)/gcm.e $(BINDIR)/create_etat0_limit.e
117
118cleanorchidee :
119        ( cd ../../modeles/ORCHIDEE ; ./makeorchidee_fcm -clean )
120        rm -f $(BINDIR)/gcm.e   
121
122cleanoasis :
123        rm -rf $(OASIS_DIR)/BLD
124        rm -f $(BINDIR)/oasis
125
126cleanxios :
127        rm -rf ../../modeles/XIOS/bin/ ../../modeles/XIOS/inc ../../modeles/XIOS/obj ../../modeles/XIOS/lib
128
129cleanioipsl :
130        ( cd ../../modeles/IOIPSL/src ; gmake clean )
131        ( 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 )       
132
Note: See TracBrowser for help on using the repository browser.