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

Last change on this file since 2229 was 2228, checked in by omamce, 8 years ago

O.M. : bug inserted in previous commit corrected

File size: 5.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) ORCA2LIM2xLMD9695-L39 ; fi
12
13ORCA2LIM2xLMD9695-L39 : libioipsl oasis3-mct liborchidee xios orca2lim2 lmdz96x95x39 verif
14        echo "ORCA2LIM2xLMD9695-L39" >.resol
15        echo "RESOL_ATM_3D=96x95x39" >>.resol
16        echo "$(LIB_MPI)" >.libmpi
17
18ORCA2LIM3xLMD9695-L39 : libioipsl oasis3-mct liborchidee xios orca2lim3 lmdz96x95x39 verif
19        echo "ORCA2LIM3xLMD9695-L39" >.resol
20        echo "RESOL_ATM_3D=96x95x39" >>.resol
21        echo "$(LIB_MPI)" >.libmpi
22
23ORCA2LIM2xLMD9695-L39-NOPISCES : libioipsl oasis3-mct liborchidee xios orca2lim2nopisces lmdz96x95x39 verif
24        echo "ORCA2LIM2xLMD9695-L39" >.resol
25        echo "RESOL_ATM_3D=96x95x39" >>.resol
26        echo "NOPISCES" >>.resol
27        echo "$(LIB_MPI)" >.libmpi
28
29ORCA2LIM2xLMD144142-L39 : libioipsl oasis3-mct liborchidee xios orca2lim2 lmdz144x142x39 verif
30        echo "ORCA2LIM2xLMD144142-L39" >.resol
31        echo "RESOL_ATM_3D=144x142x39" >>.resol
32        echo "$(LIB_MPI)" >.libmpi
33
34ORCA2LIM3xLMD144142-L39 : libioipsl oasis3-mct liborchidee xios orca2lim3 lmdz144x142x39 verif
35        echo "ORCA2LIM3xLMD144142-L39" >.resol
36        echo "RESOL_ATM_3D=144x142x39" >>.resol
37        echo "$(LIB_MPI)" >.libmpi
38
39ORCA1LIM3xLMD9695-L39 : libioipsl oasis3-mct liborchidee xios orca1lim3 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 liborchidee xios orca1lim3 lmdz144x142x39 verif
45        echo "ORCA1LIM3xLMD144142-L39" >.resol
46        echo "RESOL_ATM_3D=144x142x39" >>.resol
47        echo "$(LIB_MPI)" >.libmpi
48
49libioipsl : ../../modeles/IOIPSL/src
50        (cd ../../modeles/IOIPSL/src ; $(M_K) -f Makefile)
51
52oasis3-mct:
53        (cd $(OASIS_DIR)/util/make_dir ; cp $(MYSRC_DIR)/SOURCES/OASIS3-MCT/make_${FCM_ARCH} make.inc ; make -f TopMakefileOasis3 ; )
54
55liborchidee : ../../modeles/ORCHIDEE/
56        (cd ../../modeles/ORCHIDEE/ ; ./makeorchidee_fcm -parallel mpi -arch $(FCM_ARCH) -j 8 -driver)
57
58lmdz96x95x39:
59        $(M_K) lmdz RESOL_LMDZ=96x95x39
60
61lmdz144x142x39:
62        $(M_K) lmdz RESOL_LMDZ=144x142x39
63
64lmdz: ../../modeles/LMDZ
65        (cd ../../modeles/LMDZ; ./makelmdz_fcm -d $(RESOL_LMDZ) -cosp true -v true -parallel mpi -c OMCT -job 8 -arch $(FCM_ARCH) ce0l ; cp bin/ce0l_$(RESOL_LMDZ)_phylmd_para_orch_couple.e ../../bin/create_etat0_limit.e ; )
66        (cd ../../modeles/LMDZ; ./makelmdz_fcm -d $(RESOL_LMDZ) -cosp true -v true -parallel mpi -c OMCT -job 8 -arch $(FCM_ARCH) gcm  ; cp bin/gcm_$(RESOL_LMDZ)_phylmd_para_orch_couple.e ../../bin/gcm.e ; )
67
68xios: ../../modeles/XIOS
69        (cd ../../modeles/XIOS; ./make_xios --arch $(FCM_ARCH) --prod --use_oasis oasis3_mct --job 8 ; cp bin/xios_server.exe ../../bin/. ; )
70
71orca2lim2:  ../../modeles/NEMOGCM/CONFIG
72        (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_coupled key_oasis3 key_oasis_mct key_diahth key_diaar5" del_key "key_nosignedzero " ; cp ORCA2_LIM_PISCES/BLD/bin/nemo.exe ../../../bin/opa ; )
73
74orca2lim2nopisces:  ../../modeles/NEMOGCM/CONFIG
75        (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 -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/BLD/bin/nemo.exe ../../../bin/opa ; )
76
77orca2lim3:  ../../modeles/NEMOGCM/CONFIG
78        (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_coupled key_oasis3 key_oasis_mct key_top key_pisces key_diahth key_diaar5" del_key "key_lim2 key_lim2_vp key_nosignedzero" ; cp ORCA2_LIM3_PISCES/BLD/bin/nemo.exe ../../../bin/opa ; )
79
80orca1lim3: ../../modeles/NEMOGCM/CONFIG
81        (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_LIM3_PISCES -d "OPA_SRC LIM_SRC_3 NST_SRC TOP_SRC" -e "$(MYSRC_DIR)/SOURCES/NEMO" -j16 add_key "key_vvl key_lim3 key_oasis3 key_coupled key_oasis_mct  key_top key_pisces key_diahth key_diaar5" del_key "key_lim2 key_lim2_vp key_nosignedzero" ; cp ORCA1_LIM3_PISCES/BLD/bin/nemo.exe ../../../bin/opa ; )
82
83verif: ../../bin
84        ls -l ../../bin
85
86clean : cleannemo cleanlmdz cleanorchidee cleanxios cleanioipsl cleanoasis
87        rm -rf $(LIBDIR)/* ; rm -f $(BINDIR)/*
88
89cleannemo :
90        ../../modeles/NEMOGCM/CONFIG/makenemo clean
91        rm -f $(BINDIR)/opa
92
93cleanlmdz :
94        rm -rf ../../modeles/LMDZ/libo/* ../../modeles/LMDZ/bin/* ../../modeles/LMDZ/.lock
95        rm -f $(BINDIR)/gcm.e $(BINDIR)/create_etat0_limit.e
96
97cleanorchidee :
98        ( cd ../../modeles/ORCHIDEE ; make clean )
99        rm -f $(BINDIR)/gcm.e   
100
101cleanoasis :
102        rm -rf $(OASIS_DIR)/BLD
103        rm -f $(BINDIR)/oasis
104
105cleanxios :
106        rm -rf ../../modeles/XIOS/bin/ ../../modeles/XIOS/inc ../../modeles/XIOS/obj ../../modeles/XIOS/lib
107
108cleanioipsl :
109        ( cd ../../modeles/IOIPSL ; make clean )
110        ( 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 )       
111
Note: See TracBrowser for help on using the repository browser.