source: CONFIG/UNIFORM/v6/LMDZORINCA_v6.1.10/AA_make @ 6473

Last change on this file since 6473 was 6473, checked in by acosce, 17 months ago

update configuration LMDZORINCA_v6.1.11 to run on redhat8

  • update AA_make
  • add ARCH directory to source environment
  • add SOURCES directory to save modification for LMDZ, ORCHIDEE, INCA and XIOS
  • add EnvFile? parameter in config.card for all EXPERIMENTS
File size: 4.8 KB
Line 
1#- $Id$
2
3
4submitdir=$(shell pwd)
5arch_path=${submitdir}/ARCH/
6sources_RH8_path=${submitdir}/SOURCES/REDHAT8
7
8all :
9        if [ -s ./.resol ] ; then $(M_K) `head -1 .resol` ; else $(M_K) NMHC_AERxLMD9695-L39 ; fi
10
11
12NMHC_AERxLMD9695-L39 : libioipsl xios liborchidee nmhcaer96x95x39 lmdz96x95x39 verif
13        echo "NMHC_AERxLMD9695-L39" >.resol
14        echo "RESOL_ATM_3D=96x95x39" >>.resol
15        echo "CHEM=NMHC_AER" > .chimie
16
17NMHC_AER_SxLMD9695-L39 : libioipsl xios liborchidee nmhcaers96x95x39 lmdz96x95x39 verif
18        echo "NMHC_AER_SxLMD9695-L39" >.resol
19        echo "RESOL_ATM_3D=96x95x39" >>.resol
20        echo "CHEM=NMHC_AER_S" > .chimie
21
22NMHCxLMD9695-L39 : libioipsl xios liborchidee nmhc96x95x39 lmdz96x95x39 verif
23        echo "NMHCxLMD9695-L39" >.resol
24        echo "RESOL_ATM_3D=96x95x39" >>.resol
25        echo "CHEM=NMHC" > .chimie
26
27AERxLMD9695-L39 : libioipsl xios liborchidee aer96x95x39 lmdz96x95x39 verif
28        echo "AERxLMD9695-L39" >.resol
29        echo "RESOL_ATM_3D=96x95x39" >>.resol
30        echo "CHEM=AER" > .chimie
31
32AERxLMD144142-L39 : libioipsl xios liborchidee aer144x142x39 lmdz144x142x39 verif
33        echo "AERxLMD144142-L39" >.resol
34        echo "RESOL_ATM_3D=144x142x39" >>.resol
35        echo "CHEM=AER" > .chimie
36
37AERxLMD144142-L79 : libioipsl xios liborchidee aer144x142x79 lmdz144x142x79 verif
38        echo "AERxLMD144142-L79" >.resol
39        echo "RESOL_ATM_3D=144x142x79" >>.resol
40        echo "CHEM=AER" > .chimie
41
42DUSSxLMD9695-L39 : libioipsl xios liborchidee duss96x95x39 lmdz96x95x39 verif
43        echo "DUSSxLMD9695-L39" >.resol
44        echo "RESOL_ATM_3D=96x95x39" >>.resol
45        echo "CHEM=DUSS" > .chimie
46
47DUSSxLMD144142-L39 : libioipsl xios liborchidee duss144x142x39 lmdz144x142x39 verif
48        echo "DUSSxLMD144142-L39" >.resol
49        echo "RESOL_ATM_3D=144x142x39" >>.resol
50        echo "CHEM=DUSS" > .chimie
51
52GESxLMD9695-L39 : libioipsl xios liborchidee ges96x95x39 lmdz96x95x39 verif
53        echo "GESxLMD9695-L39" >.resol
54        echo "RESOL_ATM_3D=96x95x39" >>.resol
55        echo "CHEM=GES" > .chimie
56
57
58xios :
59        (cd  ../../modeles/XIOS ; cp ${sources_RH8_path}/XIOS/arch-${FCM_ARCH}.fcm arch/.;  ./make_xios  --arch_path ${arch_path}  --arch ${FCM_ARCH} --job 8 ; cp bin/xios_server.exe ../../bin/. ; )
60
61libioipsl : ../../modeles/IOIPSL/src
62        (ln -s ${arch_path}/arch-${FCM_ARCH}.env ${arch_path}/arch.env; . ${arch_path}/arch-${FCM_ARCH}.env; cd ../../modeles/IOIPSL/src ; $(M_K) -f Makefile)
63
64
65liborchidee : ../../modeles/ORCHIDEE/
66        (. ${arch_path}/arch-${FCM_ARCH}.env; cd ../../modeles/ORCHIDEE/ ; cp ${sources_RH8_path}/ORCHIDEE/mod_orchidee_para.F90 src_parallel/.; ./makeorchidee_fcm  -parallel mpi_omp -prod -xios -arch $(FCM_ARCH) -j 8  -driver -xios2)
67
68nmhcaer96x95x39:
69        $(M_K) inca RESOL_INCA=96x95x39 CHIMIE=NMHC_AER
70
71nmhcaers96x95x39:
72        $(M_K) inca RESOL_INCA=96x95x39 CHIMIE=NMHC_AER_S
73
74nmhc96x95x39:
75        $(M_K) inca RESOL_INCA=96x95x39 CHIMIE=NMHC
76
77aer96x95x39:
78        $(M_K) inca RESOL_INCA=96x95x39 CHIMIE=AER
79
80aer144x142x39:
81        $(M_K) inca RESOL_INCA=144x142x39 CHIMIE=AER
82
83aer144x142x79:
84        $(M_K) inca RESOL_INCA=144x142x79 CHIMIE=AER
85
86duss96x95x39:
87        $(M_K) inca RESOL_INCA=96x95x39 CHIMIE=DUSS
88
89duss144x142x39:
90        $(M_K) inca RESOL_INCA=144x142x39 CHIMIE=DUSS
91
92ges96x95x39:
93        $(M_K) inca RESOL_INCA=96x95x39 CHIMIE=GES
94
95lmdz96x95x39:
96        $(M_K) lmdz RESOL_LMDZ=96x95x39
97
98lmdz144x142x39:
99        $(M_K) lmdz RESOL_LMDZ=144x142x39
100
101lmdz144x142x79:
102        $(M_K) lmdz RESOL_LMDZ=144x142x79
103
104
105inca: ../../modeles/INCA
106#       (. ${arch_path}/arch-${FCM_ARCH}.env; cd ../../modeles/INCA; cp ${sources_RH8_path}/INCA/print_inca.F90 src/INCA_MOD/. ; ./makeinca_fcm -chimie $(CHIMIE) -prod  -resol $(RESOL_INCA) -j 8 -arch $(FCM_ARCH); cp SIMULATIONS/$(CHIMIE)/inca.dat ../../bin/inca.dat ; )
107        (. ${arch_path}/arch-${FCM_ARCH}.env; cd ../../modeles/INCA; cp ${sources_RH8_path}/INCA/print_inca.F90 src/INCA_MOD/. ; ./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 ; )
108
109lmdz: ../../modeles/LMDZ
110#       (. ${arch_path}/arch-${FCM_ARCH}.env; cd ../../modeles/LMDZ; cp ${sources_RH8_path}/LMDZ/arch-${FCM_ARCH}.fcm arch/. ; ./makelmdz_fcm -d $(RESOL_LMDZ) -prod -chimie INCA  -arch $(FCM_ARCH) -j 8 ce0l ; mv bin/ce0l_$(RESOL_LMDZ)_phylmd_seq_inca.e ../../bin/create_etat0_limit.e ; )
111        (. ${arch_path}/arch-${FCM_ARCH}.env; cd ../../modeles/LMDZ; cp ${sources_RH8_path}/LMDZ/arch-${FCM_ARCH}.fcm arch/. ; ./makelmdz_fcm -d $(RESOL_LMDZ) -prod -rrtm true -chimie INCA -io xios  -mem -cosp false -v true -parallel mpi_omp -arch $(FCM_ARCH) -j 8  gcm ; mv bin/gcm_$(RESOL_LMDZ)_phylmd_para_mem_orch_inca.e ../../bin/gcm.e ; )
112
113
114verif: ../../bin
115        ls -l ../../bin
116
117clean :
118        (rm -rf $(LIBDIR)/* ; rm -rf ../../modeles/LMDZ/libo/* ../../modeles/LMDZ/.lock ; )
119        (cd ../../modeles/IOIPSL/src ; ${M_K} clean ; )
120        (cd ../../modeles/ORCHIDEE ; ./makeorchidee_fcm -clean ; )
121        (cd  ../../modeles/INCA ; ./makeinca_fcm -clean )
122
123clean_inca :
124        (cd  ../../modeles/INCA ; ./makeinca_fcm -clean )
125
126clean_lmdz :
127        (rm -rf $(LIBDIR)/* ; rm -rf ../../modeles/LMDZ/libo/* ../../modeles/LMDZ/.lock ; )
Note: See TracBrowser for help on using the repository browser.