1 | #!/bin/bash |
---|
2 | ############################################################ |
---|
3 | # Author : Simona Flavoni for NEMO |
---|
4 | # Contact: sflod@locean-ipsl.upmc.fr |
---|
5 | # 2013 : A.C. Coward added options for testing with XIOS in dettached mode |
---|
6 | # |
---|
7 | # sette.sh : principal script of SET TEsts for NEMO (SETTE) |
---|
8 | # ---------------------------------------------------------------------- |
---|
9 | # NEMO/SETTE , NEMO Consortium (2010) |
---|
10 | # Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt) |
---|
11 | # ---------------------------------------------------------------------- |
---|
12 | # |
---|
13 | ############################################################# |
---|
14 | #set -vx |
---|
15 | set -o posix |
---|
16 | #set -u |
---|
17 | #set -e |
---|
18 | # =========== |
---|
19 | # DESCRIPTION |
---|
20 | # =========== |
---|
21 | # |
---|
22 | # Variables to be checked by user: |
---|
23 | # |
---|
24 | # COMPILER : name of compiler as defined in NEMOGCM/ARCH directory |
---|
25 | # BATCH_COMMAND_PAR : name of the command for submitting parallel batch jobs |
---|
26 | # BATCH_COMMAND_SEQ : name of the command for submitting sequential batch jobs |
---|
27 | # INTERACT_FLAG : flag to run in interactive mode "yes" |
---|
28 | # to run in batch mode "no" |
---|
29 | # MPIRUN_FLAG : flag to run in parallel (MPI) "yes" |
---|
30 | # to run in sequential mode (NB_PROC = 1) "no" |
---|
31 | # USING_XIOS : flag to control the activation of key_iomput |
---|
32 | # "yes" to compile using key_iomput and link to the external XIOS library |
---|
33 | # "no" to compile without key_iomput and link to the old IOIPSL library |
---|
34 | # USING_MPMD : flag to control the use of stand-alone IO servers |
---|
35 | # requires USING_XIOS="yes" |
---|
36 | # "yes" to run in MPMD (detached) mode with stand-alone IO servers |
---|
37 | # "no" to run in SPMD (attached) mode without separate IO servers |
---|
38 | # NUM_XIOSERVERS : number of stand-alone IO servers to employ |
---|
39 | # set to zero if USING_MPMD="no" |
---|
40 | # |
---|
41 | # Principal script is sette.sh, that calls |
---|
42 | # |
---|
43 | # makenemo : to create successive exectuables in ${CONFIG_NAME}/BLD/bin/nemo.exe |
---|
44 | # and links to nemo in ${CONFIG_NAME}/EXP00) |
---|
45 | # |
---|
46 | # param.cfg : sets and loads following directories: |
---|
47 | # |
---|
48 | # FORCING_DIR : is the directory for forcing files (tarfile) |
---|
49 | # INPUT_DIR : is the directory for input files storing |
---|
50 | # TMPDIR : is the temporary directory (if needed) |
---|
51 | # NEMO_VALIDATION_DIR : is the validation directory |
---|
52 | # |
---|
53 | # (NOTE: this file is the same for all configrations to be tested with sette) |
---|
54 | # |
---|
55 | # all_functions.sh : loads functions used by sette (note: new functions can be added here) |
---|
56 | # set_namelist : function declared in all_functions that sets namelist parameters |
---|
57 | # post_test_tidyup : creates validation storage directory and copies required output files |
---|
58 | # (run.stat and ocean.output) in it after execution of test. |
---|
59 | # |
---|
60 | # VALIDATION tree is: |
---|
61 | # |
---|
62 | # NEMO_VALIDATION_DIR/WCONFIG_NAME/WCOMPILER_NAME/TEST_NAME/REVISION_NUMBER(or DATE) |
---|
63 | # |
---|
64 | # prepare_exe_dir.sh : defines and creates directory where the test is executed |
---|
65 | # execution directory takes name of TEST_NAME defined for every test |
---|
66 | # in sette.sh. (each test in executed in its own directory) |
---|
67 | # |
---|
68 | # prepare_job.sh : to generate the script run_job.sh |
---|
69 | # |
---|
70 | # fcm_job.sh : run in batch (INTERACT_FLAG="no") or interactive (INTERACT_FLAG="yes") |
---|
71 | # see sette.sh and BATCH_TEMPLATE directory |
---|
72 | # |
---|
73 | # NOTE: jobs requiring initial or forcing data need to have an input_CONFIG.cfg in which |
---|
74 | # can be found paths to the input tar file) |
---|
75 | # NOTE: if job is not launched for any reason you have the executable ready in ${EXE_DIR} |
---|
76 | # directory |
---|
77 | # NOTE: the changed namelists are left in ${EXE_DIR} directory whereas original namelists |
---|
78 | # remain in ${NEW_CONF}/EXP00 |
---|
79 | # |
---|
80 | # NOTE: a log file, output.sette, is created in ${SETTE_DIR} with the echoes of |
---|
81 | # executed commands |
---|
82 | # |
---|
83 | # NOTE: if sette.sh is stopped in output.sette there is written the last command |
---|
84 | # executed by sette.sh |
---|
85 | # |
---|
86 | # example use: ./sette.sh |
---|
87 | ######################################################################################### |
---|
88 | # |
---|
89 | # Compiler among those in NEMOGCM/ARCH |
---|
90 | COMPILER=X64_ADA |
---|
91 | |
---|
92 | export BATCH_COMMAND_PAR="llsubmit" |
---|
93 | export BATCH_COMMAND_SEQ=$BATCH_COMMAND_PAR |
---|
94 | export INTERACT_FLAG="no" |
---|
95 | export MPIRUN_FLAG="yes" |
---|
96 | export USING_XIOS="yes" |
---|
97 | export USING_ICEBERGS="yes" |
---|
98 | # |
---|
99 | export DEL_KEYS="key_iomput" |
---|
100 | if [ ${USING_XIOS} == "yes" ] |
---|
101 | then |
---|
102 | export DEL_KEYS="" |
---|
103 | fi |
---|
104 | # |
---|
105 | # Settings which control the use of stand alone servers (only relevant if using xios) |
---|
106 | # |
---|
107 | export USING_MPMD="no" |
---|
108 | export NUM_XIOSERVERS=4 |
---|
109 | export JOB_PREFIX=batch-mpmd |
---|
110 | # |
---|
111 | if [ ${USING_MPMD} == "no" ] |
---|
112 | then |
---|
113 | export NUM_XIOSERVERS=0 |
---|
114 | export JOB_PREFIX=batch |
---|
115 | fi |
---|
116 | # |
---|
117 | # |
---|
118 | if [ ${USING_MPMD} == "yes" ] && [ ${USING_XIOS} == "no"] |
---|
119 | then |
---|
120 | echo "Incompatible choices. MPMD mode requires the XIOS server" |
---|
121 | exit |
---|
122 | fi |
---|
123 | |
---|
124 | # Directory to run the tests |
---|
125 | SETTE_DIR=$(cd $(dirname "$0"); pwd) |
---|
126 | MAIN_DIR=$(dirname $SETTE_DIR) |
---|
127 | CONFIG_DIR0=${MAIN_DIR}/cfgs |
---|
128 | TOOLS_DIR=${MAIN_DIR}/tools |
---|
129 | |
---|
130 | CMP_NAM=${1:-$COMPILER} |
---|
131 | # Copy job_batch_COMPILER file for specific compiler into job_batch_template |
---|
132 | cd ${SETTE_DIR} |
---|
133 | cp BATCH_TEMPLATE/${JOB_PREFIX}-${COMPILER} job_batch_template || exit |
---|
134 | # Description of configuration tested: |
---|
135 | # GYRE_PISCES : 1 |
---|
136 | # ORCA2_ICE_PISCES : 2 |
---|
137 | # ORCA2_OFF_PISCES : 3 |
---|
138 | # AMM12 : 4 |
---|
139 | # SAS : 5 |
---|
140 | # ORCA2_ICE_OBS : 6 |
---|
141 | # AGRIF : 7 & 8 test AGRIF in a double zoom configuration in the nordic seas + 1 zoom in the eq. Pacific (AGRIF_DEMO) |
---|
142 | # and check that key_agrif without zoom = no key_agrif |
---|
143 | # SPITZ12 : 9 regional configuration including sea-ice and tides (Spitzbergen) |
---|
144 | |
---|
145 | for config in 1 2 3 4 5 6 7 8 9 |
---|
146 | do |
---|
147 | |
---|
148 | # ----------- |
---|
149 | # GYRE_PISCES |
---|
150 | # ----------- |
---|
151 | if [ ${config} -eq 1 ] ; then |
---|
152 | ## Restartability tests for GYRE_PISCES |
---|
153 | export TEST_NAME="LONG" |
---|
154 | cd ${MAIN_DIR} |
---|
155 | . ./makenemo -m ${CMP_NAM} -n GYRE_PISCES_ST -r GYRE_PISCES -j 8 del_key ${DEL_KEYS} |
---|
156 | cd ${SETTE_DIR} |
---|
157 | . ./param.cfg |
---|
158 | . ./all_functions.sh |
---|
159 | . ./prepare_exe_dir.sh |
---|
160 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
161 | NPROC=8 |
---|
162 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
163 | cd ${EXE_DIR} |
---|
164 | set_namelist namelist_cfg cn_exp \"GYREPIS_LONG\" |
---|
165 | set_namelist namelist_cfg nn_it000 1 |
---|
166 | set_namelist namelist_cfg nn_itend 1080 |
---|
167 | set_namelist namelist_cfg nn_stock 540 |
---|
168 | set_namelist namelist_cfg ln_linssh .true. |
---|
169 | set_namelist namelist_cfg jpni 2 |
---|
170 | set_namelist namelist_cfg jpnj 4 |
---|
171 | set_namelist namelist_cfg jpnij 8 |
---|
172 | set_namelist namelist_cfg ln_ctl .true. |
---|
173 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
174 | set_xio_using_server iodef.xml true |
---|
175 | else |
---|
176 | set_xio_using_server iodef.xml false |
---|
177 | fi |
---|
178 | cd ${SETTE_DIR} |
---|
179 | . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
180 | |
---|
181 | cd ${SETTE_DIR} |
---|
182 | export TEST_NAME="SHORT" |
---|
183 | . ./prepare_exe_dir.sh |
---|
184 | cd ${EXE_DIR} |
---|
185 | set_namelist namelist_cfg cn_exp \"GYREPIS_SHORT\" |
---|
186 | set_namelist namelist_cfg nn_it000 541 |
---|
187 | set_namelist namelist_cfg nn_itend 1080 |
---|
188 | set_namelist namelist_cfg nn_stock 540 |
---|
189 | set_namelist namelist_cfg ln_rstart .true. |
---|
190 | set_namelist namelist_cfg nn_rstctl 2 |
---|
191 | set_namelist namelist_cfg ln_linssh .true. |
---|
192 | set_namelist namelist_cfg jpni 2 |
---|
193 | set_namelist namelist_cfg jpnj 4 |
---|
194 | set_namelist namelist_cfg jpnij 8 |
---|
195 | set_namelist namelist_cfg ln_ctl .true. |
---|
196 | set_namelist namelist_top_cfg ln_rsttr .true. |
---|
197 | set_namelist namelist_top_cfg nn_rsttr 2 |
---|
198 | set_namelist namelist_cfg cn_ocerst_in \"GYREPIS_LONG_00000540_restart\" |
---|
199 | set_namelist namelist_top_cfg cn_trcrst_in \"GYREPIS_LONG_00000540_restart_trc\" |
---|
200 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
201 | set_xio_using_server iodef.xml true |
---|
202 | else |
---|
203 | set_xio_using_server iodef.xml false |
---|
204 | fi |
---|
205 | for (( i=1; i<=$NPROC; i++)) ; do |
---|
206 | L_NPROC=$(( $i - 1 )) |
---|
207 | L_NPROC=`printf "%04d\n" ${L_NPROC}` |
---|
208 | ln -sf ../LONG/GYREPIS_LONG_00000540_restart_${L_NPROC}.nc . |
---|
209 | ln -sf ../LONG/GYREPIS_LONG_00000540_restart_trc_${L_NPROC}.nc . |
---|
210 | done |
---|
211 | cd ${SETTE_DIR} |
---|
212 | . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
213 | cd ${SETTE_DIR} |
---|
214 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
215 | |
---|
216 | ## Reproducibility tests for GYRE_PISCES |
---|
217 | export TEST_NAME="REPRO_2_4" |
---|
218 | cd ${MAIN_DIR} |
---|
219 | cd ${SETTE_DIR} |
---|
220 | . ./param.cfg |
---|
221 | . ./all_functions.sh |
---|
222 | . ./prepare_exe_dir.sh |
---|
223 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
224 | NPROC=8 |
---|
225 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
226 | cd ${EXE_DIR} |
---|
227 | set_namelist namelist_cfg cn_exp \"GYREPIS_48\" |
---|
228 | set_namelist namelist_cfg nn_it000 1 |
---|
229 | set_namelist namelist_cfg nn_itend 1080 |
---|
230 | set_namelist namelist_cfg ln_linssh .true. |
---|
231 | set_namelist namelist_cfg jpni 2 |
---|
232 | set_namelist namelist_cfg jpnj 4 |
---|
233 | set_namelist namelist_cfg jpnij 8 |
---|
234 | set_namelist namelist_cfg ln_ctl .true. |
---|
235 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
236 | set_xio_using_server iodef.xml true |
---|
237 | else |
---|
238 | set_xio_using_server iodef.xml false |
---|
239 | fi |
---|
240 | cd ${SETTE_DIR} |
---|
241 | . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
242 | cd ${SETTE_DIR} |
---|
243 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
244 | |
---|
245 | cd ${SETTE_DIR} |
---|
246 | export TEST_NAME="REPRO_4_2" |
---|
247 | . ./prepare_exe_dir.sh |
---|
248 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
249 | NPROC=8 |
---|
250 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
251 | cd ${EXE_DIR} |
---|
252 | set_namelist namelist_cfg cn_exp \"GYREPIS_84\" |
---|
253 | set_namelist namelist_cfg nn_it000 1 |
---|
254 | set_namelist namelist_cfg nn_itend 1080 |
---|
255 | set_namelist namelist_cfg ln_linssh .true. |
---|
256 | set_namelist namelist_cfg jpni 4 |
---|
257 | set_namelist namelist_cfg jpnj 2 |
---|
258 | set_namelist namelist_cfg jpnij 8 |
---|
259 | set_namelist namelist_cfg ln_ctl .true. |
---|
260 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
261 | set_xio_using_server iodef.xml true |
---|
262 | else |
---|
263 | set_xio_using_server iodef.xml false |
---|
264 | fi |
---|
265 | cd ${SETTE_DIR} |
---|
266 | . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
267 | cd ${SETTE_DIR} |
---|
268 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
269 | |
---|
270 | fi |
---|
271 | |
---|
272 | # ----------------- |
---|
273 | # ORCA2_ICE_PISCES |
---|
274 | # ----------------- |
---|
275 | if [ ${config} -eq 2 ] ; then |
---|
276 | ## Restartability tests for ORCA2_ICE_PISCES |
---|
277 | export TEST_NAME="LONG" |
---|
278 | cd ${MAIN_DIR} |
---|
279 | . ./makenemo -m ${CMP_NAM} -n ORCA2_ICE_PISCES_ST -r ORCA2_ICE_PISCES -j 8 del_key ${DEL_KEYS} |
---|
280 | cd ${SETTE_DIR} |
---|
281 | . ./param.cfg |
---|
282 | . ./all_functions.sh |
---|
283 | . ./prepare_exe_dir.sh |
---|
284 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
285 | NPROC=32 |
---|
286 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
287 | cd ${EXE_DIR} |
---|
288 | set_namelist namelist_cfg cn_exp \"O2L3P_LONG\" |
---|
289 | set_namelist namelist_cfg nn_it000 1 |
---|
290 | set_namelist namelist_cfg nn_itend 990 |
---|
291 | set_namelist namelist_cfg nn_stock 495 |
---|
292 | set_namelist namelist_cfg jpni 4 |
---|
293 | set_namelist namelist_cfg jpnj 8 |
---|
294 | set_namelist namelist_cfg jpnij 32 |
---|
295 | set_namelist namelist_cfg ln_ctl .true. |
---|
296 | set_namelist namelist_cfg ln_use_calving .true. |
---|
297 | set_namelist namelist_cfg ln_wave .true. |
---|
298 | set_namelist namelist_cfg ln_cdgw .true. |
---|
299 | set_namelist namelist_cfg ln_sdw .true. |
---|
300 | set_namelist namelist_cfg nn_sdrift 1 |
---|
301 | set_namelist namelist_cfg ln_stcor .true. |
---|
302 | set_namelist namelist_cfg ln_tauwoc .true. |
---|
303 | # |
---|
304 | if [ ${USING_ICEBERGS} == "no" ] ; then set_namelist namelist_cfg ln_icebergs .false. ; fi |
---|
305 | # |
---|
306 | set_namelist namelist_ice_cfg ln_icediachk .true. |
---|
307 | set_namelist namelist_top_cfg ln_trcdta .false. |
---|
308 | # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false |
---|
309 | # if not you need input files, and for tests is not necessary |
---|
310 | set_namelist namelist_pisces_cfg ln_presatm .false. |
---|
311 | set_namelist namelist_pisces_cfg ln_varpar .false. |
---|
312 | set_namelist namelist_pisces_cfg ln_dust .false. |
---|
313 | set_namelist namelist_pisces_cfg ln_solub .false. |
---|
314 | set_namelist namelist_pisces_cfg ln_river .false. |
---|
315 | set_namelist namelist_pisces_cfg ln_ndepo .false. |
---|
316 | set_namelist namelist_pisces_cfg ln_ironsed .false. |
---|
317 | set_namelist namelist_pisces_cfg ln_ironice .false. |
---|
318 | set_namelist namelist_pisces_cfg ln_hydrofe .false. |
---|
319 | # put ln_pisdmp to false : no restoring to global mean value |
---|
320 | set_namelist namelist_pisces_cfg ln_pisdmp .false. |
---|
321 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
322 | set_xio_using_server iodef.xml true |
---|
323 | else |
---|
324 | set_xio_using_server iodef.xml false |
---|
325 | fi |
---|
326 | cd ${SETTE_DIR} |
---|
327 | . ./prepare_job.sh input_ORCA2_ICE_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
328 | |
---|
329 | cd ${SETTE_DIR} |
---|
330 | export TEST_NAME="SHORT" |
---|
331 | . ./prepare_exe_dir.sh |
---|
332 | cd ${EXE_DIR} |
---|
333 | set_namelist namelist_cfg cn_exp \"O2L3P_SHORT\" |
---|
334 | set_namelist namelist_cfg nn_it000 496 |
---|
335 | set_namelist namelist_cfg nn_itend 990 |
---|
336 | set_namelist namelist_cfg nn_stock 495 |
---|
337 | set_namelist namelist_cfg ln_rstart .true. |
---|
338 | set_namelist namelist_cfg nn_rstctl 2 |
---|
339 | set_namelist namelist_cfg jpni 4 |
---|
340 | set_namelist namelist_cfg jpnj 8 |
---|
341 | set_namelist namelist_cfg jpnij 32 |
---|
342 | set_namelist namelist_cfg ln_ctl .true. |
---|
343 | set_namelist namelist_cfg nn_test_icebergs -1 |
---|
344 | set_namelist namelist_cfg ln_wave .true. |
---|
345 | set_namelist namelist_cfg ln_cdgw .true. |
---|
346 | set_namelist namelist_cfg ln_sdw .true. |
---|
347 | set_namelist namelist_cfg nn_sdrift 1 |
---|
348 | set_namelist namelist_cfg ln_stcor .true. |
---|
349 | set_namelist namelist_cfg ln_tauwoc .true. |
---|
350 | # |
---|
351 | if [ ${USING_ICEBERGS} == "no" ] ; then set_namelist namelist_cfg ln_icebergs .false. ; fi |
---|
352 | # |
---|
353 | set_namelist namelist_ice_cfg ln_icediachk .true. |
---|
354 | set_namelist namelist_top_cfg ln_rsttr .true. |
---|
355 | set_namelist namelist_top_cfg nn_rsttr 2 |
---|
356 | set_namelist namelist_cfg cn_ocerst_in \"O2L3P_LONG_00000495_restart\" |
---|
357 | set_namelist namelist_top_cfg cn_trcrst_in \"O2L3P_LONG_00000495_restart_trc\" |
---|
358 | set_namelist namelist_ice_cfg cn_icerst_in \"O2L3P_LONG_00000495_restart_ice\" |
---|
359 | set_namelist namelist_top_cfg ln_trcdta .false. |
---|
360 | # put ln_ironsed, ln_river, ln_ndepo, ln_dust |
---|
361 | # if not you need input files, and for tests is not necessary |
---|
362 | set_namelist namelist_pisces_cfg ln_presatm .false. |
---|
363 | set_namelist namelist_pisces_cfg ln_varpar .false. |
---|
364 | set_namelist namelist_pisces_cfg ln_dust .false. |
---|
365 | set_namelist namelist_pisces_cfg ln_solub .false. |
---|
366 | set_namelist namelist_pisces_cfg ln_river .false. |
---|
367 | set_namelist namelist_pisces_cfg ln_ndepo .false. |
---|
368 | set_namelist namelist_pisces_cfg ln_ironsed .false. |
---|
369 | set_namelist namelist_pisces_cfg ln_ironice .false. |
---|
370 | set_namelist namelist_pisces_cfg ln_hydrofe .false. |
---|
371 | # put ln_pisdmp to false : no restoring to global mean value |
---|
372 | set_namelist namelist_pisces_cfg ln_pisdmp .false. |
---|
373 | for (( i=1; i<=$NPROC; i++)) ; do |
---|
374 | L_NPROC=$(( $i - 1 )) |
---|
375 | L_NPROC=`printf "%04d\n" ${L_NPROC}` |
---|
376 | ln -sf ../LONG/O2L3P_LONG_00000495_restart_${L_NPROC}.nc . |
---|
377 | ln -sf ../LONG/O2L3P_LONG_00000495_restart_trc_${L_NPROC}.nc . |
---|
378 | ln -sf ../LONG/O2L3P_LONG_00000495_restart_ice_${L_NPROC}.nc . |
---|
379 | if [ ${USING_ICEBERGS} == "yes" ] |
---|
380 | then |
---|
381 | ln -sf ../LONG/O2L3P_LONG_icebergs_00000495_restart_${L_NPROC}.nc O2L3P_LONG_00000495_restart_icebergs_${L_NPROC}.nc |
---|
382 | fi |
---|
383 | done |
---|
384 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
385 | set_xio_using_server iodef.xml true |
---|
386 | else |
---|
387 | set_xio_using_server iodef.xml false |
---|
388 | fi |
---|
389 | cd ${SETTE_DIR} |
---|
390 | . ./prepare_job.sh input_ORCA2_ICE_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
391 | cd ${SETTE_DIR} |
---|
392 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
393 | |
---|
394 | ## Reproducibility tests for ORCA2_ICE_PISCES |
---|
395 | export TEST_NAME="REPRO_4_8" |
---|
396 | cd ${MAIN_DIR} |
---|
397 | cd ${SETTE_DIR} |
---|
398 | . ./param.cfg |
---|
399 | . ./all_functions.sh |
---|
400 | . ./prepare_exe_dir.sh |
---|
401 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
402 | NPROC=32 |
---|
403 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
404 | cd ${EXE_DIR} |
---|
405 | set_namelist namelist_cfg cn_exp \"O2L3P_48\" |
---|
406 | set_namelist namelist_cfg nn_it000 1 |
---|
407 | set_namelist namelist_cfg nn_itend 990 |
---|
408 | set_namelist namelist_cfg jpni 4 |
---|
409 | set_namelist namelist_cfg jpnj 8 |
---|
410 | set_namelist namelist_cfg jpnij 32 |
---|
411 | set_namelist namelist_cfg ln_ctl .true. |
---|
412 | set_namelist namelist_cfg ln_wave .true. |
---|
413 | set_namelist namelist_cfg ln_cdgw .true. |
---|
414 | set_namelist namelist_cfg ln_sdw .true. |
---|
415 | set_namelist namelist_cfg nn_sdrift 1 |
---|
416 | set_namelist namelist_cfg ln_stcor .true. |
---|
417 | set_namelist namelist_cfg ln_tauwoc .true. |
---|
418 | |
---|
419 | if [ ${USING_ICEBERGS} == "no" ] ; then set_namelist namelist_cfg ln_icebergs .false. ; fi |
---|
420 | set_namelist namelist_top_cfg ln_trcdta .false. |
---|
421 | # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false |
---|
422 | # if not you need input files, and for tests is not necessary |
---|
423 | set_namelist namelist_pisces_cfg ln_presatm .false. |
---|
424 | set_namelist namelist_pisces_cfg ln_varpar .false. |
---|
425 | set_namelist namelist_pisces_cfg ln_dust .false. |
---|
426 | set_namelist namelist_pisces_cfg ln_solub .false. |
---|
427 | set_namelist namelist_pisces_cfg ln_river .false. |
---|
428 | set_namelist namelist_pisces_cfg ln_ndepo .false. |
---|
429 | set_namelist namelist_pisces_cfg ln_ironsed .false. |
---|
430 | set_namelist namelist_pisces_cfg ln_ironice .false. |
---|
431 | set_namelist namelist_pisces_cfg ln_hydrofe .false. |
---|
432 | # put ln_pisdmp to false : no restoring to global mean value |
---|
433 | set_namelist namelist_pisces_cfg ln_pisdmp .false. |
---|
434 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
435 | set_xio_using_server iodef.xml true |
---|
436 | else |
---|
437 | set_xio_using_server iodef.xml false |
---|
438 | fi |
---|
439 | cd ${SETTE_DIR} |
---|
440 | . ./prepare_job.sh input_ORCA2_ICE_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
441 | cd ${SETTE_DIR} |
---|
442 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
443 | |
---|
444 | cd ${SETTE_DIR} |
---|
445 | export TEST_NAME="REPRO_8_4" |
---|
446 | . ./prepare_exe_dir.sh |
---|
447 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
448 | NPROC=32 |
---|
449 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
450 | cd ${EXE_DIR} |
---|
451 | set_namelist namelist_cfg cn_exp \"O2L3P_84\" |
---|
452 | set_namelist namelist_cfg nn_it000 1 |
---|
453 | set_namelist namelist_cfg nn_itend 990 |
---|
454 | set_namelist namelist_cfg jpni 8 |
---|
455 | set_namelist namelist_cfg jpnj 4 |
---|
456 | set_namelist namelist_cfg jpnij 32 |
---|
457 | set_namelist namelist_cfg ln_ctl .true. |
---|
458 | set_namelist namelist_cfg ln_wave .true. |
---|
459 | set_namelist namelist_cfg ln_cdgw .true. |
---|
460 | set_namelist namelist_cfg ln_sdw .true. |
---|
461 | set_namelist namelist_cfg nn_sdrift 1 |
---|
462 | set_namelist namelist_cfg ln_stcor .true. |
---|
463 | set_namelist namelist_cfg ln_tauwoc .true. |
---|
464 | if [ ${USING_ICEBERGS} == "no" ] ; then set_namelist namelist_cfg ln_icebergs .false. ; fi |
---|
465 | set_namelist namelist_top_cfg ln_trcdta .false. |
---|
466 | # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false |
---|
467 | # if not you need input files, and for tests is not necessary |
---|
468 | set_namelist namelist_pisces_cfg ln_presatm .false. |
---|
469 | set_namelist namelist_pisces_cfg ln_varpar .false. |
---|
470 | set_namelist namelist_pisces_cfg ln_dust .false. |
---|
471 | set_namelist namelist_pisces_cfg ln_solub .false. |
---|
472 | set_namelist namelist_pisces_cfg ln_river .false. |
---|
473 | set_namelist namelist_pisces_cfg ln_ndepo .false. |
---|
474 | set_namelist namelist_pisces_cfg ln_ironsed .false. |
---|
475 | set_namelist namelist_pisces_cfg ln_ironice .false. |
---|
476 | set_namelist namelist_pisces_cfg ln_hydrofe .false. |
---|
477 | # put ln_pisdmp to false : no restoring to global mean value |
---|
478 | set_namelist namelist_pisces_cfg ln_pisdmp .false. |
---|
479 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
480 | set_xio_using_server iodef.xml true |
---|
481 | else |
---|
482 | set_xio_using_server iodef.xml false |
---|
483 | fi |
---|
484 | cd ${SETTE_DIR} |
---|
485 | . ./prepare_job.sh input_ORCA2_ICE_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
486 | cd ${SETTE_DIR} |
---|
487 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
488 | fi |
---|
489 | |
---|
490 | # ---------------- |
---|
491 | # ORCA2_OFF_PISCES |
---|
492 | # ---------------- |
---|
493 | if [ ${config} -eq 3 ] ; then |
---|
494 | ## Restartability tests for ORCA2_OFF_PISCES |
---|
495 | export TEST_NAME="LONG" |
---|
496 | cd ${MAIN_DIR} |
---|
497 | . ./makenemo -m ${CMP_NAM} -n ORCA2_OFF_PISCES_ST -r ORCA2_OFF_PISCES -j 8 del_key ${DEL_KEYS} |
---|
498 | cd ${SETTE_DIR} |
---|
499 | . ./param.cfg |
---|
500 | . ./all_functions.sh |
---|
501 | . ./prepare_exe_dir.sh |
---|
502 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
503 | NPROC=32 |
---|
504 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
505 | cd ${EXE_DIR} |
---|
506 | set_namelist namelist_cfg cn_exp \"OFFP_LONG\" |
---|
507 | set_namelist namelist_cfg nn_it000 1 |
---|
508 | set_namelist namelist_cfg nn_itend 380 |
---|
509 | set_namelist namelist_cfg nn_stock 190 |
---|
510 | set_namelist namelist_cfg jpni 4 |
---|
511 | set_namelist namelist_cfg jpnj 8 |
---|
512 | set_namelist namelist_cfg jpnij 32 |
---|
513 | set_namelist namelist_cfg ln_ctl .true. |
---|
514 | set_namelist namelist_cfg ln_qsr_rgb .true. |
---|
515 | set_namelist namelist_top_cfg ln_trcdta .false. |
---|
516 | # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false |
---|
517 | # if not you need input files, and for tests is not necessary |
---|
518 | set_namelist namelist_pisces_cfg ln_presatm .false. |
---|
519 | set_namelist namelist_pisces_cfg ln_varpar .false. |
---|
520 | set_namelist namelist_pisces_cfg ln_dust .false. |
---|
521 | set_namelist namelist_pisces_cfg ln_solub .false. |
---|
522 | set_namelist namelist_pisces_cfg ln_river .false. |
---|
523 | set_namelist namelist_pisces_cfg ln_ndepo .false. |
---|
524 | set_namelist namelist_pisces_cfg ln_ironsed .false. |
---|
525 | set_namelist namelist_pisces_cfg ln_ironice .false. |
---|
526 | set_namelist namelist_pisces_cfg ln_hydrofe .false. |
---|
527 | # put ln_pisdmp to false : no restoring to global mean value |
---|
528 | set_namelist namelist_pisces_cfg ln_pisdmp .false. |
---|
529 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
530 | set_xio_using_server iodef.xml true |
---|
531 | else |
---|
532 | set_xio_using_server iodef.xml false |
---|
533 | fi |
---|
534 | cd ${SETTE_DIR} |
---|
535 | . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
536 | |
---|
537 | cd ${SETTE_DIR} |
---|
538 | export TEST_NAME="SHORT" |
---|
539 | . ./prepare_exe_dir.sh |
---|
540 | cd ${EXE_DIR} |
---|
541 | set_namelist namelist_cfg cn_exp \"OFFP_SHORT\" |
---|
542 | set_namelist namelist_cfg nn_it000 191 |
---|
543 | set_namelist namelist_cfg nn_itend 380 |
---|
544 | set_namelist namelist_cfg nn_stock 190 |
---|
545 | set_namelist namelist_cfg jpni 4 |
---|
546 | set_namelist namelist_cfg jpnj 8 |
---|
547 | set_namelist namelist_cfg jpnij 32 |
---|
548 | set_namelist namelist_cfg ln_ctl .true. |
---|
549 | set_namelist namelist_cfg ln_qsr_rgb .true. |
---|
550 | set_namelist namelist_top_cfg ln_rsttr .true. |
---|
551 | set_namelist namelist_top_cfg nn_rsttr 2 |
---|
552 | set_namelist namelist_top_cfg cn_trcrst_in \"OFFP_LONG_00000190_restart_trc\" |
---|
553 | for (( i=1; i<=$NPROC; i++)) ; do |
---|
554 | L_NPROC=$(( $i - 1 )) |
---|
555 | L_NPROC=`printf "%04d\n" ${L_NPROC}` |
---|
556 | ln -sf ../LONG/OFFP_LONG_00000190_restart_trc_${L_NPROC}.nc . |
---|
557 | done |
---|
558 | # put ln_ironsed, ln_river, ln_ndepo, ln_dust |
---|
559 | # if not you need input files, and for tests is not necessary |
---|
560 | set_namelist namelist_pisces_cfg ln_presatm .false. |
---|
561 | set_namelist namelist_pisces_cfg ln_varpar .false. |
---|
562 | set_namelist namelist_pisces_cfg ln_dust .false. |
---|
563 | set_namelist namelist_pisces_cfg ln_solub .false. |
---|
564 | set_namelist namelist_pisces_cfg ln_river .false. |
---|
565 | set_namelist namelist_pisces_cfg ln_ndepo .false. |
---|
566 | set_namelist namelist_pisces_cfg ln_ironsed .false. |
---|
567 | set_namelist namelist_pisces_cfg ln_ironice .false. |
---|
568 | set_namelist namelist_pisces_cfg ln_hydrofe .false. |
---|
569 | # put ln_pisdmp to false : no restoring to global mean value |
---|
570 | set_namelist namelist_pisces_cfg ln_pisdmp .false. |
---|
571 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
572 | set_xio_using_server iodef.xml true |
---|
573 | else |
---|
574 | set_xio_using_server iodef.xml false |
---|
575 | fi |
---|
576 | cd ${SETTE_DIR} |
---|
577 | . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
578 | cd ${SETTE_DIR} |
---|
579 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
580 | |
---|
581 | ## Reproducibility tests for ORCA2_OFF_PISCES |
---|
582 | export TEST_NAME="REPRO_4_8" |
---|
583 | cd ${MAIN_DIR} |
---|
584 | cd ${SETTE_DIR} |
---|
585 | . ./param.cfg |
---|
586 | . ./all_functions.sh |
---|
587 | . ./prepare_exe_dir.sh |
---|
588 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
589 | NPROC=32 |
---|
590 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
591 | cd ${EXE_DIR} |
---|
592 | set_namelist namelist_cfg cn_exp \"OFFP_48\" |
---|
593 | set_namelist namelist_cfg nn_it000 1 |
---|
594 | set_namelist namelist_cfg nn_itend 380 |
---|
595 | set_namelist namelist_cfg jpni 4 |
---|
596 | set_namelist namelist_cfg jpnj 8 |
---|
597 | set_namelist namelist_cfg jpnij 32 |
---|
598 | set_namelist namelist_cfg ln_ctl .true. |
---|
599 | set_namelist namelist_cfg ln_qsr_rgb .true. |
---|
600 | set_namelist namelist_top_cfg ln_trcdta .false. |
---|
601 | # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false |
---|
602 | # if not you need input files, and for tests is not necessary |
---|
603 | set_namelist namelist_pisces_cfg ln_presatm .false. |
---|
604 | set_namelist namelist_pisces_cfg ln_varpar .false. |
---|
605 | set_namelist namelist_pisces_cfg ln_dust .false. |
---|
606 | set_namelist namelist_pisces_cfg ln_solub .false. |
---|
607 | set_namelist namelist_pisces_cfg ln_river .false. |
---|
608 | set_namelist namelist_pisces_cfg ln_ndepo .false. |
---|
609 | set_namelist namelist_pisces_cfg ln_ironsed .false. |
---|
610 | set_namelist namelist_pisces_cfg ln_ironice .false. |
---|
611 | set_namelist namelist_pisces_cfg ln_hydrofe .false. |
---|
612 | # put ln_pisdmp to false : no restoring to global mean value |
---|
613 | set_namelist namelist_pisces_cfg ln_pisdmp .false. |
---|
614 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
615 | set_xio_using_server iodef.xml true |
---|
616 | else |
---|
617 | set_xio_using_server iodef.xml false |
---|
618 | fi |
---|
619 | cd ${SETTE_DIR} |
---|
620 | . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
621 | cd ${SETTE_DIR} |
---|
622 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
623 | |
---|
624 | cd ${SETTE_DIR} |
---|
625 | export TEST_NAME="REPRO_8_4" |
---|
626 | . ./prepare_exe_dir.sh |
---|
627 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
628 | NPROC=32 |
---|
629 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
630 | cd ${EXE_DIR} |
---|
631 | set_namelist namelist_cfg cn_exp \"OFFP_84\" |
---|
632 | set_namelist namelist_cfg nn_it000 1 |
---|
633 | set_namelist namelist_cfg nn_itend 380 |
---|
634 | set_namelist namelist_cfg jpni 8 |
---|
635 | set_namelist namelist_cfg jpnj 4 |
---|
636 | set_namelist namelist_cfg jpnij 32 |
---|
637 | set_namelist namelist_cfg ln_ctl .true. |
---|
638 | set_namelist namelist_cfg ln_qsr_rgb .true. |
---|
639 | set_namelist namelist_top_cfg ln_trcdta .false. |
---|
640 | # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false |
---|
641 | # if not you need input files, and for tests is not necessary |
---|
642 | set_namelist namelist_pisces_cfg ln_presatm .false. |
---|
643 | set_namelist namelist_pisces_cfg ln_varpar .false. |
---|
644 | set_namelist namelist_pisces_cfg ln_dust .false. |
---|
645 | set_namelist namelist_pisces_cfg ln_solub .false. |
---|
646 | set_namelist namelist_pisces_cfg ln_river .false. |
---|
647 | set_namelist namelist_pisces_cfg ln_ndepo .false. |
---|
648 | set_namelist namelist_pisces_cfg ln_ironsed .false. |
---|
649 | set_namelist namelist_pisces_cfg ln_ironice .false. |
---|
650 | set_namelist namelist_pisces_cfg ln_hydrofe .false. |
---|
651 | # put ln_pisdmp to false : no restoring to global mean value |
---|
652 | set_namelist namelist_pisces_cfg ln_pisdmp .false. |
---|
653 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
654 | set_xio_using_server iodef.xml true |
---|
655 | else |
---|
656 | set_xio_using_server iodef.xml false |
---|
657 | fi |
---|
658 | cd ${SETTE_DIR} |
---|
659 | . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
660 | cd ${SETTE_DIR} |
---|
661 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
662 | fi |
---|
663 | |
---|
664 | # ----- |
---|
665 | # AMM12 |
---|
666 | # ----- |
---|
667 | if [ ${config} -eq 4 ] ; then |
---|
668 | ## Restartability tests for AMM12 |
---|
669 | export TEST_NAME="LONG" |
---|
670 | cd ${MAIN_DIR} |
---|
671 | . ./makenemo -m ${CMP_NAM} -n AMM12_ST -r AMM12 -j 8 del_key ${DEL_KEYS} |
---|
672 | cd ${SETTE_DIR} |
---|
673 | . ./param.cfg |
---|
674 | . ./all_functions.sh |
---|
675 | . ./prepare_exe_dir.sh |
---|
676 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
677 | NPROC=32 |
---|
678 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
679 | cd ${EXE_DIR} |
---|
680 | set_namelist namelist_cfg cn_exp \"AMM12_LONG\" |
---|
681 | set_namelist namelist_cfg nn_it000 1 |
---|
682 | set_namelist namelist_cfg nn_itend 576 |
---|
683 | set_namelist namelist_cfg nn_stock 288 |
---|
684 | set_namelist namelist_cfg jpni 4 |
---|
685 | set_namelist namelist_cfg jpnj 8 |
---|
686 | set_namelist namelist_cfg jpnij 32 |
---|
687 | set_namelist namelist_cfg ln_ctl .true. |
---|
688 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
689 | set_xio_using_server iodef.xml true |
---|
690 | else |
---|
691 | set_xio_using_server iodef.xml false |
---|
692 | fi |
---|
693 | cd ${SETTE_DIR} |
---|
694 | . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
695 | |
---|
696 | cd ${SETTE_DIR} |
---|
697 | export TEST_NAME="SHORT" |
---|
698 | . ./prepare_exe_dir.sh |
---|
699 | cd ${EXE_DIR} |
---|
700 | set_namelist namelist_cfg cn_exp \"AMM12_SHORT\" |
---|
701 | set_namelist namelist_cfg nn_it000 289 |
---|
702 | set_namelist namelist_cfg nn_itend 576 |
---|
703 | set_namelist namelist_cfg jpni 4 |
---|
704 | set_namelist namelist_cfg jpnj 8 |
---|
705 | set_namelist namelist_cfg jpnij 32 |
---|
706 | set_namelist namelist_cfg ln_ctl .true. |
---|
707 | set_namelist namelist_cfg ln_rstart .true. |
---|
708 | set_namelist namelist_cfg nn_rstctl 2 |
---|
709 | set_namelist namelist_cfg cn_ocerst_in \"AMM12_LONG_00000288_restart\" |
---|
710 | set_namelist namelist_cfg nn_date0 20120102 |
---|
711 | for (( i=1; i<=$NPROC; i++)) ; do |
---|
712 | L_NPROC=$(( $i - 1 )) |
---|
713 | L_NPROC=`printf "%04d\n" ${L_NPROC}` |
---|
714 | ln -sf ../LONG/AMM12_LONG_00000288_restart_${L_NPROC}.nc . |
---|
715 | done |
---|
716 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
717 | set_xio_using_server iodef.xml true |
---|
718 | else |
---|
719 | set_xio_using_server iodef.xml false |
---|
720 | fi |
---|
721 | cd ${SETTE_DIR} |
---|
722 | . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
723 | cd ${SETTE_DIR} |
---|
724 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
725 | |
---|
726 | ## Reproducibility tests for AMM12 |
---|
727 | export TEST_NAME="REPRO_8_4" |
---|
728 | cd ${MAIN_DIR} |
---|
729 | cd ${SETTE_DIR} |
---|
730 | . ./param.cfg |
---|
731 | . ./all_functions.sh |
---|
732 | . ./prepare_exe_dir.sh |
---|
733 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
734 | NPROC=32 |
---|
735 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
736 | cd ${EXE_DIR} |
---|
737 | set_namelist namelist_cfg cn_exp \"AMM12_84\" |
---|
738 | set_namelist namelist_cfg nn_it000 1 |
---|
739 | set_namelist namelist_cfg nn_itend 576 |
---|
740 | set_namelist namelist_cfg jpni 8 |
---|
741 | set_namelist namelist_cfg jpnj 4 |
---|
742 | set_namelist namelist_cfg jpnij 32 |
---|
743 | set_namelist namelist_cfg ln_ctl .true. |
---|
744 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
745 | set_xio_using_server iodef.xml true |
---|
746 | else |
---|
747 | set_xio_using_server iodef.xml false |
---|
748 | fi |
---|
749 | cd ${SETTE_DIR} |
---|
750 | . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
751 | cd ${SETTE_DIR} |
---|
752 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
753 | |
---|
754 | cd ${SETTE_DIR} |
---|
755 | export TEST_NAME="REPRO_4_8" |
---|
756 | . ./prepare_exe_dir.sh |
---|
757 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
758 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
759 | cd ${EXE_DIR} |
---|
760 | set_namelist namelist_cfg cn_exp \"AMM12_48\" |
---|
761 | set_namelist namelist_cfg nn_it000 1 |
---|
762 | set_namelist namelist_cfg nn_itend 576 |
---|
763 | set_namelist namelist_cfg jpni 4 |
---|
764 | set_namelist namelist_cfg jpnj 8 |
---|
765 | set_namelist namelist_cfg jpnij 32 |
---|
766 | set_namelist namelist_cfg ln_ctl .true. |
---|
767 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
768 | set_xio_using_server iodef.xml true |
---|
769 | else |
---|
770 | set_xio_using_server iodef.xml false |
---|
771 | fi |
---|
772 | cd ${SETTE_DIR} |
---|
773 | . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
774 | cd ${SETTE_DIR} |
---|
775 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
776 | fi |
---|
777 | |
---|
778 | |
---|
779 | # --------- |
---|
780 | # ORCA2_SAS |
---|
781 | # --------- |
---|
782 | if [ ${config} -eq 5 ] ; then |
---|
783 | ## Restartability tests |
---|
784 | export TEST_NAME="LONG" |
---|
785 | cd ${MAIN_DIR} |
---|
786 | . ./makenemo -m ${CMP_NAM} -n ORCA2_SAS_ICE_ST -r ORCA2_SAS_ICE -j 8 del_key ${DEL_KEYS} |
---|
787 | cd ${SETTE_DIR} |
---|
788 | . ./param.cfg |
---|
789 | . ./all_functions.sh |
---|
790 | . ./prepare_exe_dir.sh |
---|
791 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
792 | NPROC=32 |
---|
793 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
794 | cd ${EXE_DIR} |
---|
795 | set_namelist namelist_cfg cn_exp \"SAS\" |
---|
796 | set_namelist namelist_cfg nn_it000 1 |
---|
797 | set_namelist namelist_cfg nn_itend 240 |
---|
798 | set_namelist namelist_cfg nn_stock 120 |
---|
799 | set_namelist namelist_cfg jpni 4 |
---|
800 | set_namelist namelist_cfg jpnj 8 |
---|
801 | set_namelist namelist_cfg jpnij 32 |
---|
802 | set_namelist namelist_cfg ln_ctl .true. |
---|
803 | set_namelist namelist_ice_cfg ln_icediachk .true. |
---|
804 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
805 | set_xio_using_server iodef.xml true |
---|
806 | else |
---|
807 | set_xio_using_server iodef.xml false |
---|
808 | fi |
---|
809 | cd ${SETTE_DIR} |
---|
810 | . ./prepare_job.sh input_SAS.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
811 | |
---|
812 | cd ${SETTE_DIR} |
---|
813 | export TEST_NAME="SHORT" |
---|
814 | . ./prepare_exe_dir.sh |
---|
815 | cd ${EXE_DIR} |
---|
816 | set_namelist namelist_cfg cn_exp \"SAS\" |
---|
817 | set_namelist namelist_cfg nn_it000 121 |
---|
818 | set_namelist namelist_cfg nn_itend 240 |
---|
819 | set_namelist namelist_cfg jpni 4 |
---|
820 | set_namelist namelist_cfg jpnj 8 |
---|
821 | set_namelist namelist_cfg jpnij 32 |
---|
822 | set_namelist namelist_cfg ln_ctl .true. |
---|
823 | set_namelist namelist_cfg ln_rstart .true. |
---|
824 | set_namelist namelist_cfg nn_rstctl 2 |
---|
825 | set_namelist namelist_cfg nn_date0 010109 |
---|
826 | set_namelist namelist_cfg cn_ocerst_in \"SAS_00000120_restart\" |
---|
827 | set_namelist namelist_ice_cfg cn_icerst_in \"SAS_00000120_restart_ice\" |
---|
828 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
829 | set_xio_using_server iodef.xml true |
---|
830 | else |
---|
831 | set_xio_using_server iodef.xml false |
---|
832 | fi |
---|
833 | for (( i=1; i<=$NPROC; i++)) ; do |
---|
834 | L_NPROC=$(( $i - 1 )) |
---|
835 | L_NPROC=`printf "%04d\n" ${L_NPROC}` |
---|
836 | ln -sf ../LONG/SAS_00000120_restart_${L_NPROC}.nc . |
---|
837 | ln -sf ../LONG/SAS_00000120_restart_ice_${L_NPROC}.nc . |
---|
838 | done |
---|
839 | cd ${SETTE_DIR} |
---|
840 | . ./prepare_job.sh input_SAS.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
841 | cd ${SETTE_DIR} |
---|
842 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
843 | |
---|
844 | ## Reproducibility tests |
---|
845 | export TEST_NAME="REPRO_4_8" |
---|
846 | cd ${MAIN_DIR} |
---|
847 | cd ${SETTE_DIR} |
---|
848 | . ./param.cfg |
---|
849 | . ./all_functions.sh |
---|
850 | . ./prepare_exe_dir.sh |
---|
851 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
852 | NPROC=32 |
---|
853 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
854 | cd ${EXE_DIR} |
---|
855 | set_namelist namelist_cfg cn_exp \"SAS_48\" |
---|
856 | set_namelist namelist_cfg nn_it000 1 |
---|
857 | set_namelist namelist_cfg nn_itend 75 |
---|
858 | set_namelist namelist_cfg jpni 4 |
---|
859 | set_namelist namelist_cfg jpnj 8 |
---|
860 | set_namelist namelist_cfg jpnij 32 |
---|
861 | set_namelist namelist_cfg ln_ctl .true. |
---|
862 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
863 | set_xio_using_server iodef.xml true |
---|
864 | else |
---|
865 | set_xio_using_server iodef.xml false |
---|
866 | fi |
---|
867 | cd ${SETTE_DIR} |
---|
868 | . ./prepare_job.sh input_SAS.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
869 | cd ${SETTE_DIR} |
---|
870 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
871 | |
---|
872 | cd ${SETTE_DIR} |
---|
873 | export TEST_NAME="REPRO_8_4" |
---|
874 | . ./prepare_exe_dir.sh |
---|
875 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
876 | NPROC=32 |
---|
877 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
878 | cd ${EXE_DIR} |
---|
879 | set_namelist namelist_cfg cn_exp \"SAS_84\" |
---|
880 | set_namelist namelist_cfg nn_it000 1 |
---|
881 | set_namelist namelist_cfg nn_itend 75 |
---|
882 | set_namelist namelist_cfg jpni 8 |
---|
883 | set_namelist namelist_cfg jpnj 4 |
---|
884 | set_namelist namelist_cfg jpnij 32 |
---|
885 | set_namelist namelist_cfg ln_ctl .true. |
---|
886 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
887 | set_xio_using_server iodef.xml true |
---|
888 | else |
---|
889 | set_xio_using_server iodef.xml false |
---|
890 | fi |
---|
891 | cd ${SETTE_DIR} |
---|
892 | . ./prepare_job.sh input_SAS.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
893 | cd ${SETTE_DIR} |
---|
894 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
895 | |
---|
896 | fi |
---|
897 | |
---|
898 | |
---|
899 | # -------------- |
---|
900 | # ORCA2_ICE_OBS |
---|
901 | # -------------- |
---|
902 | ## Test assimilation interface code, OBS and ASM for reproducibility |
---|
903 | ## Restartability not tested (ASM code not restartable while increments are being applied) |
---|
904 | if [ ${config} -eq 6 ] ; then |
---|
905 | ## Reproducibility tests |
---|
906 | export TEST_NAME="REPRO_4_8" |
---|
907 | cd ${MAIN_DIR} |
---|
908 | . ./makenemo -m ${CMP_NAM} -n ORCA2_ICE_OBS_ST -r ORCA2_ICE_PISCES -d "OCE ICE" -j 8 add_key "key_asminc" del_key "key_top" |
---|
909 | cd ${SETTE_DIR} |
---|
910 | . ./param.cfg |
---|
911 | . ./all_functions.sh |
---|
912 | . ./prepare_exe_dir.sh |
---|
913 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
914 | NPROC=32 |
---|
915 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
916 | cd ${EXE_DIR} |
---|
917 | set_namelist namelist_cfg cn_exp \"O2L3OBS_48\" |
---|
918 | set_namelist namelist_cfg nn_it000 1 |
---|
919 | set_namelist namelist_cfg nn_itend 75 |
---|
920 | set_namelist namelist_cfg ln_read_cfg .true. |
---|
921 | set_namelist namelist_cfg jpni 4 |
---|
922 | set_namelist namelist_cfg jpnj 8 |
---|
923 | set_namelist namelist_cfg jpnij 32 |
---|
924 | set_namelist namelist_cfg ln_ctl .true. |
---|
925 | set_namelist namelist_cfg ln_diaobs .true. |
---|
926 | set_namelist namelist_cfg ln_t3d .true. |
---|
927 | set_namelist namelist_cfg ln_s3d .true. |
---|
928 | set_namelist namelist_cfg ln_sst .true. |
---|
929 | set_namelist namelist_cfg ln_sla .true. |
---|
930 | set_namelist namelist_cfg ln_sic .true. |
---|
931 | set_namelist namelist_cfg ln_vel3d .true. |
---|
932 | set_namelist namelist_cfg ln_bkgwri .true. |
---|
933 | set_namelist namelist_cfg ln_trainc .true. |
---|
934 | set_namelist namelist_cfg ln_dyninc .true. |
---|
935 | set_namelist namelist_cfg ln_sshinc .true. |
---|
936 | set_namelist namelist_cfg ln_asmiau .true. |
---|
937 | #remove all useless options for pisces (due to ORCA2_ICE_PISCES reference configuration) |
---|
938 | set_namelist namelist_top_cfg ln_trcdta .false. |
---|
939 | # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false |
---|
940 | # if not you need input files, and for tests is not necessary |
---|
941 | set_namelist namelist_pisces_cfg ln_presatm .false. |
---|
942 | set_namelist namelist_pisces_cfg ln_varpar .false. |
---|
943 | set_namelist namelist_pisces_cfg ln_dust .false. |
---|
944 | set_namelist namelist_pisces_cfg ln_solub .false. |
---|
945 | set_namelist namelist_pisces_cfg ln_river .false. |
---|
946 | set_namelist namelist_pisces_cfg ln_ndepo .false. |
---|
947 | set_namelist namelist_pisces_cfg ln_ironsed .false. |
---|
948 | set_namelist namelist_pisces_cfg ln_ironice .false. |
---|
949 | set_namelist namelist_pisces_cfg ln_hydrofe .false. |
---|
950 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
951 | set_xio_using_server iodef.xml true |
---|
952 | else |
---|
953 | set_xio_using_server iodef.xml false |
---|
954 | fi |
---|
955 | cd ${SETTE_DIR} |
---|
956 | . ./prepare_job.sh input_ORCA2_ICE_OBS.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
957 | cd ${SETTE_DIR} |
---|
958 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
959 | |
---|
960 | cd ${SETTE_DIR} |
---|
961 | export TEST_NAME="REPRO_8_4" |
---|
962 | . ./prepare_exe_dir.sh |
---|
963 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
964 | NPROC=32 |
---|
965 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
966 | cd ${EXE_DIR} |
---|
967 | set_namelist namelist_cfg cn_exp \"O2L3OBS_84\" |
---|
968 | set_namelist namelist_cfg nn_it000 1 |
---|
969 | set_namelist namelist_cfg nn_itend 75 |
---|
970 | set_namelist namelist_cfg ln_read_cfg .true. |
---|
971 | set_namelist namelist_cfg jpni 8 |
---|
972 | set_namelist namelist_cfg jpnj 4 |
---|
973 | set_namelist namelist_cfg jpnij 32 |
---|
974 | set_namelist namelist_cfg ln_ctl .true. |
---|
975 | set_namelist namelist_cfg ln_diaobs .true. |
---|
976 | set_namelist namelist_cfg ln_t3d .true. |
---|
977 | set_namelist namelist_cfg ln_s3d .true. |
---|
978 | set_namelist namelist_cfg ln_sst .true. |
---|
979 | set_namelist namelist_cfg ln_sla .true. |
---|
980 | set_namelist namelist_cfg ln_sic .true. |
---|
981 | set_namelist namelist_cfg ln_vel3d .true. |
---|
982 | set_namelist namelist_cfg ln_bkgwri .true. |
---|
983 | set_namelist namelist_cfg ln_trainc .true. |
---|
984 | set_namelist namelist_cfg ln_dyninc .true. |
---|
985 | set_namelist namelist_cfg ln_sshinc .true. |
---|
986 | set_namelist namelist_cfg ln_asmiau .true. |
---|
987 | #remove all useless options for pisces (due to ORCA2_ICE_PISCES reference configuration) |
---|
988 | set_namelist namelist_top_cfg ln_trcdta .false. |
---|
989 | # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false |
---|
990 | # if not you need input files, and for tests is not necessary |
---|
991 | set_namelist namelist_pisces_cfg ln_presatm .false. |
---|
992 | set_namelist namelist_pisces_cfg ln_varpar .false. |
---|
993 | set_namelist namelist_pisces_cfg ln_dust .false. |
---|
994 | set_namelist namelist_pisces_cfg ln_solub .false. |
---|
995 | set_namelist namelist_pisces_cfg ln_river .false. |
---|
996 | set_namelist namelist_pisces_cfg ln_ndepo .false. |
---|
997 | set_namelist namelist_pisces_cfg ln_ironsed .false. |
---|
998 | set_namelist namelist_pisces_cfg ln_ironice .false. |
---|
999 | set_namelist namelist_pisces_cfg ln_hydrofe .false. |
---|
1000 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
1001 | set_xio_using_server iodef.xml true |
---|
1002 | else |
---|
1003 | set_xio_using_server iodef.xml false |
---|
1004 | fi |
---|
1005 | cd ${SETTE_DIR} |
---|
1006 | . ./prepare_job.sh input_ORCA2_ICE_OBS.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
1007 | cd ${SETTE_DIR} |
---|
1008 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
1009 | fi |
---|
1010 | |
---|
1011 | # ------------ |
---|
1012 | # AGRIF ICE |
---|
1013 | # ----------- |
---|
1014 | if [ ${config} -eq 7 ] ; then |
---|
1015 | ## Restartability tests |
---|
1016 | export TEST_NAME="LONG" |
---|
1017 | cd ${MAIN_DIR} |
---|
1018 | . ./makenemo -m ${CMP_NAM} -n AGRIF_DEMO_ST -r AGRIF_DEMO -j 8 del_key ${DEL_KEYS} |
---|
1019 | cd ${SETTE_DIR} |
---|
1020 | . ./param.cfg |
---|
1021 | . ./all_functions.sh |
---|
1022 | . ./prepare_exe_dir.sh |
---|
1023 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
1024 | NPROC=16 |
---|
1025 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
1026 | cd ${EXE_DIR} |
---|
1027 | set_namelist namelist_cfg cn_exp \"AGRIF_LONG\" |
---|
1028 | set_namelist namelist_cfg nn_it000 1 |
---|
1029 | set_namelist namelist_cfg nn_itend 20 |
---|
1030 | set_namelist namelist_cfg nn_stock 10 |
---|
1031 | set_namelist 1_namelist_cfg cn_exp \"AGRIF_LONG\" |
---|
1032 | set_namelist 1_namelist_cfg nn_it000 1 |
---|
1033 | set_namelist 1_namelist_cfg nn_itend 20 |
---|
1034 | set_namelist 1_namelist_cfg nn_stock 10 |
---|
1035 | set_namelist 2_namelist_cfg cn_exp \"AGRIF_LONG\" |
---|
1036 | set_namelist 2_namelist_cfg nn_it000 1 |
---|
1037 | set_namelist 2_namelist_cfg nn_itend 80 |
---|
1038 | set_namelist 2_namelist_cfg nn_stock 40 |
---|
1039 | set_namelist 3_namelist_cfg cn_exp \"AGRIF_LONG\" |
---|
1040 | set_namelist 3_namelist_cfg nn_it000 1 |
---|
1041 | set_namelist 3_namelist_cfg nn_itend 240 |
---|
1042 | set_namelist 3_namelist_cfg nn_stock 120 |
---|
1043 | |
---|
1044 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
1045 | set_xio_using_server iodef.xml true |
---|
1046 | else |
---|
1047 | set_xio_using_server iodef.xml false |
---|
1048 | fi |
---|
1049 | cd ${SETTE_DIR} |
---|
1050 | . ./prepare_job.sh input_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
1051 | |
---|
1052 | cd ${SETTE_DIR} |
---|
1053 | export TEST_NAME="SHORT" |
---|
1054 | . ./prepare_exe_dir.sh |
---|
1055 | cd ${EXE_DIR} |
---|
1056 | set_namelist namelist_cfg cn_exp \"AGRIF_SHORT\" |
---|
1057 | set_namelist namelist_cfg nn_it000 11 |
---|
1058 | set_namelist namelist_cfg nn_itend 20 |
---|
1059 | set_namelist namelist_cfg nn_stock 10 |
---|
1060 | set_namelist namelist_cfg ln_rstart .true. |
---|
1061 | set_namelist namelist_cfg nn_rstctl 2 |
---|
1062 | set_namelist 1_namelist_cfg cn_exp \"AGRIF_SHORT\" |
---|
1063 | set_namelist 1_namelist_cfg nn_it000 11 |
---|
1064 | set_namelist 1_namelist_cfg nn_itend 20 |
---|
1065 | set_namelist 1_namelist_cfg nn_stock 10 |
---|
1066 | set_namelist 1_namelist_cfg ln_rstart .true. |
---|
1067 | set_namelist 1_namelist_cfg nn_rstctl 2 |
---|
1068 | set_namelist 2_namelist_cfg cn_exp \"AGRIF_SHORT\" |
---|
1069 | set_namelist 2_namelist_cfg nn_it000 41 |
---|
1070 | set_namelist 2_namelist_cfg nn_itend 80 |
---|
1071 | set_namelist 2_namelist_cfg nn_stock 40 |
---|
1072 | set_namelist 2_namelist_cfg ln_rstart .true. |
---|
1073 | set_namelist 2_namelist_cfg nn_rstctl 2 |
---|
1074 | set_namelist 3_namelist_cfg cn_exp \"AGRIF_SHORT\" |
---|
1075 | set_namelist 3_namelist_cfg nn_it000 121 |
---|
1076 | set_namelist 3_namelist_cfg nn_itend 240 |
---|
1077 | set_namelist 3_namelist_cfg nn_stock 120 |
---|
1078 | set_namelist 3_namelist_cfg ln_rstart .true. |
---|
1079 | set_namelist 3_namelist_cfg nn_rstctl 2 |
---|
1080 | set_namelist namelist_cfg cn_ocerst_in \"AGRIF_LONG_00000010_restart\" |
---|
1081 | set_namelist namelist_ice_cfg cn_icerst_in \"AGRIF_LONG_00000010_restart_ice\" |
---|
1082 | set_namelist 1_namelist_cfg cn_ocerst_in \"AGRIF_LONG_00000010_restart\" |
---|
1083 | set_namelist 1_namelist_ice_cfg cn_icerst_in \"AGRIF_LONG_00000010_restart_ice\" |
---|
1084 | set_namelist 2_namelist_cfg cn_ocerst_in \"AGRIF_LONG_00000040_restart\" |
---|
1085 | set_namelist 2_namelist_ice_cfg cn_icerst_in \"AGRIF_LONG_00000040_restart_ice\" |
---|
1086 | set_namelist 3_namelist_cfg cn_ocerst_in \"AGRIF_LONG_00000120_restart\" |
---|
1087 | set_namelist 3_namelist_ice_cfg cn_icerst_in \"AGRIF_LONG_00000120_restart_ice\" |
---|
1088 | |
---|
1089 | for (( i=1; i<=$NPROC; i++)) ; do |
---|
1090 | L_NPROC=$(( $i - 1 )) |
---|
1091 | L_NPROC=`printf "%04d\n" ${L_NPROC}` |
---|
1092 | ln -sf ../LONG/AGRIF_LONG_00000010_restart_${L_NPROC}.nc . |
---|
1093 | ln -sf ../LONG/AGRIF_LONG_00000010_restart_ice_${L_NPROC}.nc . |
---|
1094 | ln -sf ../LONG/1_AGRIF_LONG_00000010_restart_${L_NPROC}.nc . |
---|
1095 | ln -sf ../LONG/1_AGRIF_LONG_00000010_restart_ice_${L_NPROC}.nc . |
---|
1096 | ln -sf ../LONG/2_AGRIF_LONG_00000040_restart_${L_NPROC}.nc . |
---|
1097 | ln -sf ../LONG/2_AGRIF_LONG_00000040_restart_ice_${L_NPROC}.nc . |
---|
1098 | ln -sf ../LONG/3_AGRIF_LONG_00000120_restart_${L_NPROC}.nc . |
---|
1099 | ln -sf ../LONG/3_AGRIF_LONG_00000120_restart_ice_${L_NPROC}.nc . |
---|
1100 | done |
---|
1101 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
1102 | set_xio_using_server iodef.xml true |
---|
1103 | else |
---|
1104 | set_xio_using_server iodef.xml false |
---|
1105 | fi |
---|
1106 | cd ${SETTE_DIR} |
---|
1107 | . ./prepare_job.sh input_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
1108 | cd ${SETTE_DIR} |
---|
1109 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
1110 | |
---|
1111 | ## Reproducibility tests |
---|
1112 | export TEST_NAME="REPRO_4_8" |
---|
1113 | cd ${MAIN_DIR} |
---|
1114 | cd ${SETTE_DIR} |
---|
1115 | . ./param.cfg |
---|
1116 | . ./all_functions.sh |
---|
1117 | . ./prepare_exe_dir.sh |
---|
1118 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
1119 | NPROC=32 |
---|
1120 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
1121 | cd ${EXE_DIR} |
---|
1122 | set_namelist namelist_cfg cn_exp \"AGRIF_48\" |
---|
1123 | set_namelist namelist_cfg nn_it000 1 |
---|
1124 | set_namelist namelist_cfg nn_itend 20 |
---|
1125 | set_namelist namelist_cfg jpni 4 |
---|
1126 | set_namelist namelist_cfg jpnj 8 |
---|
1127 | set_namelist namelist_cfg jpnij 32 |
---|
1128 | set_namelist namelist_cfg ln_ctl .true. |
---|
1129 | set_namelist 1_namelist_cfg cn_exp \"AGRIF_48\" |
---|
1130 | set_namelist 1_namelist_cfg nn_it000 1 |
---|
1131 | set_namelist 1_namelist_cfg nn_itend 20 |
---|
1132 | set_namelist 1_namelist_cfg jpni 4 |
---|
1133 | set_namelist 1_namelist_cfg jpnj 8 |
---|
1134 | set_namelist 1_namelist_cfg jpnij 32 |
---|
1135 | set_namelist 1_namelist_cfg ln_ctl .true. |
---|
1136 | set_namelist 2_namelist_cfg cn_exp \"AGRIF_48\" |
---|
1137 | set_namelist 2_namelist_cfg nn_it000 1 |
---|
1138 | set_namelist 2_namelist_cfg nn_itend 80 |
---|
1139 | set_namelist 2_namelist_cfg jpni 4 |
---|
1140 | set_namelist 2_namelist_cfg jpnj 8 |
---|
1141 | set_namelist 2_namelist_cfg jpnij 32 |
---|
1142 | set_namelist 2_namelist_cfg ln_ctl .true. |
---|
1143 | set_namelist 3_namelist_cfg cn_exp \"AGRIF_48\" |
---|
1144 | set_namelist 3_namelist_cfg nn_it000 1 |
---|
1145 | set_namelist 3_namelist_cfg nn_itend 240 |
---|
1146 | set_namelist 3_namelist_cfg jpni 4 |
---|
1147 | set_namelist 3_namelist_cfg jpnj 8 |
---|
1148 | set_namelist 3_namelist_cfg jpnij 32 |
---|
1149 | set_namelist 3_namelist_cfg ln_ctl .true. |
---|
1150 | |
---|
1151 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
1152 | set_xio_using_server iodef.xml true |
---|
1153 | else |
---|
1154 | set_xio_using_server iodef.xml false |
---|
1155 | fi |
---|
1156 | cd ${SETTE_DIR} |
---|
1157 | . ./prepare_job.sh input_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
1158 | cd ${SETTE_DIR} |
---|
1159 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
1160 | |
---|
1161 | cd ${SETTE_DIR} |
---|
1162 | export TEST_NAME="REPRO_8_4" |
---|
1163 | . ./prepare_exe_dir.sh |
---|
1164 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
1165 | NPROC=32 |
---|
1166 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
1167 | cd ${EXE_DIR} |
---|
1168 | set_namelist namelist_cfg cn_exp \"AGRIF_84\" |
---|
1169 | set_namelist namelist_cfg nn_it000 1 |
---|
1170 | set_namelist namelist_cfg nn_itend 20 |
---|
1171 | set_namelist namelist_cfg jpni 8 |
---|
1172 | set_namelist namelist_cfg jpnj 4 |
---|
1173 | set_namelist namelist_cfg jpnij 32 |
---|
1174 | set_namelist namelist_cfg ln_ctl .true. |
---|
1175 | set_namelist 1_namelist_cfg cn_exp \"AGRIF_84\" |
---|
1176 | set_namelist 1_namelist_cfg nn_it000 1 |
---|
1177 | set_namelist 1_namelist_cfg nn_itend 20 |
---|
1178 | set_namelist 1_namelist_cfg jpni 8 |
---|
1179 | set_namelist 1_namelist_cfg jpnj 4 |
---|
1180 | set_namelist 1_namelist_cfg jpnij 32 |
---|
1181 | set_namelist 1_namelist_cfg ln_ctl .true. |
---|
1182 | set_namelist 2_namelist_cfg cn_exp \"AGRIF_84\" |
---|
1183 | set_namelist 2_namelist_cfg nn_it000 1 |
---|
1184 | set_namelist 2_namelist_cfg nn_itend 80 |
---|
1185 | set_namelist 2_namelist_cfg jpni 8 |
---|
1186 | set_namelist 2_namelist_cfg jpnj 4 |
---|
1187 | set_namelist 2_namelist_cfg jpnij 32 |
---|
1188 | set_namelist 2_namelist_cfg ln_ctl .true. |
---|
1189 | set_namelist 3_namelist_cfg cn_exp \"AGRIF_84\" |
---|
1190 | set_namelist 3_namelist_cfg nn_it000 1 |
---|
1191 | set_namelist 3_namelist_cfg nn_itend 240 |
---|
1192 | set_namelist 3_namelist_cfg jpni 8 |
---|
1193 | set_namelist 3_namelist_cfg jpnj 4 |
---|
1194 | set_namelist 3_namelist_cfg jpnij 32 |
---|
1195 | set_namelist 3_namelist_cfg ln_ctl .true. |
---|
1196 | |
---|
1197 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
1198 | set_xio_using_server iodef.xml true |
---|
1199 | else |
---|
1200 | set_xio_using_server iodef.xml false |
---|
1201 | fi |
---|
1202 | cd ${SETTE_DIR} |
---|
1203 | . ./prepare_job.sh input_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
1204 | cd ${SETTE_DIR} |
---|
1205 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
1206 | |
---|
1207 | ## test code corruption with AGRIF (phase 1) ==> Compile with key_agrif but run with no zoom |
---|
1208 | export TEST_NAME="ORCA2" |
---|
1209 | cd ${MAIN_DIR} |
---|
1210 | cd ${SETTE_DIR} |
---|
1211 | . ./param.cfg |
---|
1212 | . ./all_functions.sh |
---|
1213 | . ./prepare_exe_dir.sh |
---|
1214 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
1215 | NPROC=32 |
---|
1216 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
1217 | cd ${EXE_DIR} |
---|
1218 | set_namelist namelist_cfg cn_exp \"ORCA2\" |
---|
1219 | set_namelist namelist_cfg nn_it000 1 |
---|
1220 | set_namelist namelist_cfg nn_itend 150 |
---|
1221 | |
---|
1222 | # Set the number of fine grids to zero: |
---|
1223 | sed -i "1s/.*/0/" ${EXE_DIR}/AGRIF_FixedGrids.in |
---|
1224 | |
---|
1225 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
1226 | set_xio_using_server iodef.xml true |
---|
1227 | else |
---|
1228 | set_xio_using_server iodef.xml false |
---|
1229 | fi |
---|
1230 | cd ${SETTE_DIR} |
---|
1231 | . ./prepare_job.sh input_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
1232 | cd ${SETTE_DIR} |
---|
1233 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
1234 | |
---|
1235 | fi |
---|
1236 | |
---|
1237 | |
---|
1238 | ## test code corruption with AGRIF (phase 2) ==> Compile without key_agrif (to be compared with AGRIF_DEMO_ST/ORCA2) |
---|
1239 | if [ ${config} -eq 8 ] ; then |
---|
1240 | export TEST_NAME="ORCA2" |
---|
1241 | cd ${MAIN_DIR} |
---|
1242 | . ./makenemo -m ${CMP_NAM} -n AGRIF_DEMO_NOAGRIF_ST -r AGRIF_DEMO -j 8 del_key "key_agrif" |
---|
1243 | cd ${SETTE_DIR} |
---|
1244 | . ./param.cfg |
---|
1245 | . ./all_functions.sh |
---|
1246 | . ./prepare_exe_dir.sh |
---|
1247 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
1248 | NPROC=32 |
---|
1249 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
1250 | cd ${EXE_DIR} |
---|
1251 | set_namelist namelist_cfg cn_exp \"ORCA2\" |
---|
1252 | set_namelist namelist_cfg nn_it000 1 |
---|
1253 | set_namelist namelist_cfg nn_itend 150 |
---|
1254 | # |
---|
1255 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
1256 | set_xio_using_server iodef.xml true |
---|
1257 | else |
---|
1258 | set_xio_using_server iodef.xml false |
---|
1259 | fi |
---|
1260 | cd ${SETTE_DIR} |
---|
1261 | . ./prepare_job.sh input_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
1262 | cd ${SETTE_DIR} |
---|
1263 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
1264 | |
---|
1265 | fi |
---|
1266 | |
---|
1267 | # ------- |
---|
1268 | # SPITZ12 |
---|
1269 | # ------- |
---|
1270 | if [ ${config} -eq 9 ] ; then |
---|
1271 | ## Restartability tests |
---|
1272 | export TEST_NAME="LONG" |
---|
1273 | cd ${MAIN_DIR} |
---|
1274 | . ./makenemo -m ${CMP_NAM} -n SPITZ12_ST -r SPITZ12 -j 8 del_key ${DEL_KEYS} |
---|
1275 | cd ${SETTE_DIR} |
---|
1276 | . ./param.cfg |
---|
1277 | . ./all_functions.sh |
---|
1278 | . ./prepare_exe_dir.sh |
---|
1279 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
1280 | NPROC=32 |
---|
1281 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
1282 | cd ${EXE_DIR} |
---|
1283 | set_namelist namelist_cfg cn_exp \"S12_LONG\" |
---|
1284 | set_namelist namelist_cfg nn_it000 1 |
---|
1285 | set_namelist namelist_cfg nn_itend 240 |
---|
1286 | set_namelist namelist_cfg nn_stock 120 |
---|
1287 | set_namelist namelist_cfg nn_date0 20020101 |
---|
1288 | set_namelist namelist_cfg jpni 4 |
---|
1289 | set_namelist namelist_cfg jpnj 8 |
---|
1290 | set_namelist namelist_cfg jpnij 32 |
---|
1291 | set_namelist namelist_cfg ln_ctl .true. |
---|
1292 | #set_namelist namelist_ice_cfg ln_icediachk .true. |
---|
1293 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
1294 | set_xio_using_server iodef.xml true |
---|
1295 | else |
---|
1296 | set_xio_using_server iodef.xml false |
---|
1297 | fi |
---|
1298 | cd ${SETTE_DIR} |
---|
1299 | . ./prepare_job.sh input_SPITZ12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
1300 | |
---|
1301 | cd ${SETTE_DIR} |
---|
1302 | export TEST_NAME="SHORT" |
---|
1303 | . ./prepare_exe_dir.sh |
---|
1304 | cd ${EXE_DIR} |
---|
1305 | set_namelist namelist_cfg cn_exp \"S12_SHORT\" |
---|
1306 | set_namelist namelist_cfg nn_it000 121 |
---|
1307 | set_namelist namelist_cfg nn_itend 240 |
---|
1308 | set_namelist namelist_cfg nn_stock 120 |
---|
1309 | set_namelist namelist_cfg ln_rstart .true. |
---|
1310 | set_namelist namelist_cfg nn_rstctl 2 |
---|
1311 | set_namelist namelist_cfg jpni 4 |
---|
1312 | set_namelist namelist_cfg jpnj 8 |
---|
1313 | set_namelist namelist_cfg jpnij 32 |
---|
1314 | set_namelist namelist_cfg ln_ctl .true. |
---|
1315 | set_namelist namelist_cfg cn_ocerst_in \"S12_LONG_00000120_restart\" |
---|
1316 | set_namelist namelist_ice_cfg cn_icerst_in \"S12_LONG_00000120_restart_ice\" |
---|
1317 | for (( i=1; i<=$NPROC; i++)) ; do |
---|
1318 | L_NPROC=$(( $i - 1 )) |
---|
1319 | L_NPROC=`printf "%04d\n" ${L_NPROC}` |
---|
1320 | ln -sf ../LONG/S12_LONG_00000120_restart_${L_NPROC}.nc . |
---|
1321 | ln -sf ../LONG/S12_LONG_00000120_restart_ice_${L_NPROC}.nc . |
---|
1322 | done |
---|
1323 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
1324 | set_xio_using_server iodef.xml true |
---|
1325 | else |
---|
1326 | set_xio_using_server iodef.xml false |
---|
1327 | fi |
---|
1328 | cd ${SETTE_DIR} |
---|
1329 | . ./prepare_job.sh input_SPITZ12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
1330 | cd ${SETTE_DIR} |
---|
1331 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
1332 | |
---|
1333 | ## Reproducibility tests |
---|
1334 | export TEST_NAME="REPRO_4_8" |
---|
1335 | cd ${MAIN_DIR} |
---|
1336 | cd ${SETTE_DIR} |
---|
1337 | . ./param.cfg |
---|
1338 | . ./all_functions.sh |
---|
1339 | . ./prepare_exe_dir.sh |
---|
1340 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
1341 | NPROC=32 |
---|
1342 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
1343 | cd ${EXE_DIR} |
---|
1344 | set_namelist namelist_cfg cn_exp \"S12_48\" |
---|
1345 | set_namelist namelist_cfg nn_it000 1 |
---|
1346 | set_namelist namelist_cfg nn_itend 120 |
---|
1347 | set_namelist namelist_cfg nn_date0 20020101 |
---|
1348 | set_namelist namelist_cfg jpni 4 |
---|
1349 | set_namelist namelist_cfg jpnj 8 |
---|
1350 | set_namelist namelist_cfg jpnij 32 |
---|
1351 | set_namelist namelist_cfg ln_ctl .true. |
---|
1352 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
1353 | set_xio_using_server iodef.xml true |
---|
1354 | else |
---|
1355 | set_xio_using_server iodef.xml false |
---|
1356 | fi |
---|
1357 | cd ${SETTE_DIR} |
---|
1358 | . ./prepare_job.sh input_SPITZ12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
1359 | cd ${SETTE_DIR} |
---|
1360 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
1361 | |
---|
1362 | cd ${SETTE_DIR} |
---|
1363 | export TEST_NAME="REPRO_8_4" |
---|
1364 | . ./prepare_exe_dir.sh |
---|
1365 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
1366 | NPROC=32 |
---|
1367 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
1368 | cd ${EXE_DIR} |
---|
1369 | set_namelist namelist_cfg cn_exp \"S12_84\" |
---|
1370 | set_namelist namelist_cfg nn_it000 1 |
---|
1371 | set_namelist namelist_cfg nn_itend 120 |
---|
1372 | set_namelist namelist_cfg nn_date0 20020101 |
---|
1373 | set_namelist namelist_cfg jpni 8 |
---|
1374 | set_namelist namelist_cfg jpnj 4 |
---|
1375 | set_namelist namelist_cfg jpnij 32 |
---|
1376 | set_namelist namelist_cfg ln_ctl .true. |
---|
1377 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
1378 | set_xio_using_server iodef.xml true |
---|
1379 | else |
---|
1380 | set_xio_using_server iodef.xml false |
---|
1381 | fi |
---|
1382 | cd ${SETTE_DIR} |
---|
1383 | . ./prepare_job.sh input_SPITZ12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
1384 | cd ${SETTE_DIR} |
---|
1385 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
1386 | fi |
---|
1387 | |
---|
1388 | |
---|
1389 | done |
---|