source: trunk/NEMOGCM/SETTE/sette.sh @ 7646

Last change on this file since 7646 was 7646, checked in by timgraham, 5 years ago

Merge of dev_merge_2016 into trunk. UPDATE TO ARCHFILES NEEDED for XIOS2.
LIM_SRC_s/limrhg.F90 to follow in next commit due to change of kind (I'm unable to do it in this commit).
Merged using the following steps:

1) svn merge —reintegrate svn+ssh://forge.ipsl.jussieu.fr/ipsl/forge/projets/nemo/svn/trunk .
2) Resolve minor conflicts in sette.sh and namelist_cfg for ORCA2LIM3 (due to a change in trunk after branch was created)
3) svn commit
4) svn switch svn+ssh://forge.ipsl.jussieu.fr/ipsl/forge/projets/nemo/svn/trunk
5) svn merge svn+ssh://forge.ipsl.jussieu.fr/ipsl/forge/projets/nemo/svn/branches/2016/dev_merge_2016 .
6) At this stage I checked out a clean copy of the branch to compare against what is about to be committed to the trunk.
6) svn commit #Commit code to the trunk

In this commit I have also reverted a change to Fcheck_archfile.sh which was causing problems on the Paris machine.

  • Property svn:executable set to *
File size: 57.7 KB
Line 
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 -x
15set -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 opa 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#                      (solver.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
90COMPILER=X64_ADA_DEBUG
91export BATCH_COMMAND_PAR="llsubmit"
92export BATCH_COMMAND_SEQ=$BATCH_COMMAND_PAR
93export INTERACT_FLAG="no"
94export MPIRUN_FLAG="yes"
95export USING_XIOS="yes"
96#
97export DEL_KEYS="key_iomput"
98if [ ${USING_XIOS} == "yes" ] 
99 then
100   export DEL_KEYS=""
101fi
102#
103# Settings which control the use of stand alone servers (only relevant if using xios)
104#
105export USING_MPMD="no"
106export NUM_XIOSERVERS=4
107export JOB_PREFIX=batch-mpmd
108#
109if [ ${USING_MPMD} == "no" ] 
110 then
111   export NUM_XIOSERVERS=0
112   export JOB_PREFIX=batch
113fi
114#
115#
116if [ ${USING_MPMD} == "yes" ] && [ ${USING_XIOS} == "no"]
117 then
118   echo "Incompatible choices. MPMD mode requires the XIOS server"
119   exit
120fi
121#
122
123# Directory to run the tests
124SETTE_DIR=$(cd $(dirname "$0"); pwd)
125MAIN_DIR=$(dirname $SETTE_DIR)
126CONFIG_DIR=${MAIN_DIR}/CONFIG
127TOOLS_DIR=${MAIN_DIR}/TOOLS
128COMPIL_DIR=${TOOLS_DIR}/COMPILE
129
130CMP_NAM=${1:-$COMPILER}
131# Copy job_batch_COMPILER file for specific compiler into job_batch_template
132cd ${SETTE_DIR}
133cp BATCH_TEMPLATE/${JOB_PREFIX}-${COMPILER} job_batch_template || exit
134# Description of configuration tested:
135# GYRE              :  1 &  2
136# ORCA2_LIM3        :  3 &  4
137# ORCA2_LIM3_PISCES :  5 &  6
138# ORCA2_OFF_PISCES  :  7 &  8
139# AMM12             :  9 & 10
140# SAS               : 11     fos SAS there is no solver so is useless to test REPRO
141# ISOMIP            : 12 & 13
142# ORCA2_LIM3_OBS    : 14
143# ORCA2_AGRIF_LIM   : 15 & 16
144#                     17 & 18
145
146for config in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
147
148do
149
150# TESTS FOR GYRE CONFIGURATION
151if [ ${config} -eq 1 ] ;  then
152    ## Restartability tests for GYRE
153    export TEST_NAME="LONG"
154    cd ${CONFIG_DIR}
155    . ./makenemo -m ${CMP_NAM} -n GYRE_LONG -r GYRE -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=32
162    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
163    cd ${EXE_DIR} 
164    set_namelist namelist_cfg cn_exp \"GYRE_LONG\"
165    set_namelist namelist_cfg nn_it000 1
166    set_namelist namelist_cfg nn_itend 120
167    set_namelist namelist_cfg nn_stock 60
168    set_namelist namelist_cfg ln_clobber .true.
169    set_namelist namelist_cfg ln_linssh .true.
170    set_namelist namelist_cfg ln_read_cfg .false.
171    set_namelist namelist_cfg nn_fwb 0
172    set_namelist namelist_cfg jpni 4
173    set_namelist namelist_cfg jpnj 8
174    set_namelist namelist_cfg jpnij 32
175    if [ ${USING_MPMD} == "yes" ] ; then
176       set_xio_using_server iodef.xml true
177    else
178       set_xio_using_server iodef.xml false
179    fi
180    cd ${SETTE_DIR}
181    . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
182
183    cd ${SETTE_DIR}
184    export TEST_NAME="SHORT"
185    . ./prepare_exe_dir.sh
186    cd ${EXE_DIR}
187    set_namelist namelist_cfg cn_exp \"GYRE_SHORT\"
188    set_namelist namelist_cfg nn_it000 61
189    set_namelist namelist_cfg nn_itend 120
190    set_namelist namelist_cfg nn_stock 60
191    set_namelist namelist_cfg ln_rstart .true.
192    set_namelist namelist_cfg nn_rstctl 2
193    set_namelist namelist_cfg ln_clobber .true.
194    set_namelist namelist_cfg ln_linssh .true.
195    set_namelist namelist_cfg ln_read_cfg .false.
196    set_namelist namelist_cfg nn_fwb 0
197    set_namelist namelist_cfg jpni 4
198    set_namelist namelist_cfg jpnj 8
199    set_namelist namelist_cfg jpnij 32
200    set_namelist namelist_cfg cn_ocerst_in \"GYRE_LONG_00000060_restart\"
201    if [ ${USING_MPMD} == "yes" ] ; then
202       set_xio_using_server iodef.xml true
203    else
204       set_xio_using_server iodef.xml false
205    fi
206    for (( i=1; i<=$NPROC; i++)) ; do
207        L_NPROC=$(( $i - 1 ))
208        L_NPROC=`printf "%04d\n" ${L_NPROC}`
209        ln -sf ../LONG/GYRE_LONG_00000060_restart_${L_NPROC}.nc .
210    done
211    if [ ${USING_MPMD} == "yes" ] ; then
212       set_xio_using_server iodef.xml true
213    else
214       set_xio_using_server iodef.xml false
215    fi
216    cd ${SETTE_DIR}
217    . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
218    cd ${SETTE_DIR}
219    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
220fi
221
222if [ ${config} -eq 2 ] ;  then
223    ## Reproducibility tests for GYRE
224    export TEST_NAME="REPRO_4_8"
225    cd ${CONFIG_DIR}
226    . ./makenemo -m ${CMP_NAM} -n GYRE_32 -r GYRE -j 8 del_key ${DEL_KEYS}
227    cd ${SETTE_DIR}
228    . ./param.cfg
229    . ./all_functions.sh
230    . ./prepare_exe_dir.sh
231    JOB_FILE=${EXE_DIR}/run_job.sh
232    NPROC=32
233    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
234    cd ${EXE_DIR}
235    set_namelist namelist_cfg cn_exp \"GYRE_48\"
236    set_namelist namelist_cfg nn_it000 1
237    set_namelist namelist_cfg nn_itend 60
238    set_namelist namelist_cfg nn_fwb 0
239    set_namelist namelist_cfg ln_ctl .false.
240    set_namelist namelist_cfg ln_clobber .true.
241    set_namelist namelist_cfg ln_linssh .true.
242    set_namelist namelist_cfg ln_read_cfg .false.
243    set_namelist namelist_cfg jpni 4
244    set_namelist namelist_cfg jpnj 8
245    set_namelist namelist_cfg jpnij 32
246    if [ ${USING_MPMD} == "yes" ] ; then
247       set_xio_using_server iodef.xml true
248    else
249       set_xio_using_server iodef.xml false
250    fi
251    cd ${SETTE_DIR}
252    . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
253    cd ${SETTE_DIR}
254    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
255
256    cd ${SETTE_DIR}
257    export TEST_NAME="REPRO_8_4"
258    . ./prepare_exe_dir.sh
259    JOB_FILE=${EXE_DIR}/run_job.sh
260    NPROC=32
261    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
262    cd ${EXE_DIR}
263    set_namelist namelist_cfg cn_exp \"GYRE_84\"
264    set_namelist namelist_cfg nn_it000 1
265    set_namelist namelist_cfg nn_itend 60
266    set_namelist namelist_cfg nn_fwb 0
267    set_namelist namelist_cfg ln_ctl .false.
268    set_namelist namelist_cfg ln_clobber .true.
269    set_namelist namelist_cfg ln_linssh .true.
270    set_namelist namelist_cfg ln_read_cfg .false.
271    set_namelist namelist_cfg jpni 8
272    set_namelist namelist_cfg jpnj 4
273    set_namelist namelist_cfg jpnij 32
274    if [ ${USING_MPMD} == "yes" ] ; then
275       set_xio_using_server iodef.xml true
276    else
277       set_xio_using_server iodef.xml false
278    fi
279    cd ${SETTE_DIR}
280    . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
281    cd ${SETTE_DIR}
282    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
283
284fi
285
286# TESTS FOR ORCA2_LIM3 CONFIGURATION
287if [ ${config} -eq 3 ] ;  then
288    ## Restartability tests for ORCA2_LIM3
289    export TEST_NAME="LONG"
290    cd ${CONFIG_DIR}
291    . ./makenemo -m ${CMP_NAM} -n ORCA2LIM3_LONG -r ORCA2_LIM3 -j 8 del_key ${DEL_KEYS}
292    cd ${SETTE_DIR}
293    . ./param.cfg
294    . ./all_functions.sh
295    . ./prepare_exe_dir.sh
296    JOB_FILE=${EXE_DIR}/run_job.sh
297    NPROC=4
298    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
299    cd ${EXE_DIR}
300    set_namelist namelist_cfg cn_exp \"O2L3_LONG\"
301    set_namelist namelist_cfg nn_it000 1
302    set_namelist namelist_cfg nn_itend 150
303    set_namelist namelist_cfg nn_stock 75
304    set_namelist namelist_cfg ln_clobber .true.
305    set_namelist namelist_cfg ln_read_cfg .true.
306    set_namelist namelist_cfg ln_linssh .false.
307    set_namelist namelist_cfg ln_icebergs .true.
308    set_namelist namelist_cfg nn_fwb 0
309    set_namelist namelist_cfg jpni 2
310    set_namelist namelist_cfg jpnj 2
311    set_namelist namelist_cfg jpnij 4
312    if [ ${USING_MPMD} == "yes" ] ; then
313       set_xio_using_server iodef.xml true
314    else
315       set_xio_using_server iodef.xml false
316    fi
317    cd ${SETTE_DIR}
318    . ./prepare_job.sh input_ORCA2_LIM3.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
319
320    cd ${SETTE_DIR}
321    export TEST_NAME="SHORT"
322    . ./prepare_exe_dir.sh
323    cd ${EXE_DIR}
324    set_namelist namelist_cfg cn_exp \"O2L3_SHORT\"
325    set_namelist namelist_cfg nn_it000 76
326    set_namelist namelist_cfg nn_itend 150
327    set_namelist namelist_cfg nn_stock 75
328    set_namelist namelist_cfg ln_rstart .true.
329    set_namelist namelist_cfg nn_rstctl 2
330    set_namelist namelist_cfg ln_clobber .true.
331    set_namelist namelist_cfg ln_read_cfg .true.
332    set_namelist namelist_cfg ln_linssh .false.
333    set_namelist namelist_cfg ln_icebergs .true.
334    set_namelist namelist_cfg nn_fwb 0
335    set_namelist namelist_cfg jpni 2
336    set_namelist namelist_cfg jpnj 2
337    set_namelist namelist_cfg jpnij 4
338    set_namelist namelist_cfg cn_ocerst_in \"O2L3_LONG_00000075_restart\"
339    set_namelist namelist_ice_cfg cn_icerst_in \"O2L3_LONG_00000075_restart_ice\"
340    for (( i=1; i<=$NPROC; i++)) ; do
341        L_NPROC=$(( $i - 1 ))
342        L_NPROC=`printf "%04d\n" ${L_NPROC}`
343        ln -sf ../LONG/O2L3_LONG_00000075_restart_${L_NPROC}.nc .
344        ln -sf ../LONG/O2L3_LONG_00000075_restart_ice_${L_NPROC}.nc .
345        ln -sf ../LONG/O2L3_LONG_icebergs_00000075_restart_${L_NPROC}.nc O2L3_LONG_00000075_restart_icebergs_${L_NPROC}.nc
346    done
347    if [ ${USING_MPMD} == "yes" ] ; then
348       set_xio_using_server iodef.xml true
349    else
350       set_xio_using_server iodef.xml false
351    fi
352    cd ${SETTE_DIR}
353    . ./prepare_job.sh input_ORCA2_LIM3.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
354    cd ${SETTE_DIR}
355    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
356fi
357
358if [ ${config} -eq 4 ] ;  then
359    ## Reproducibility tests for ORCA2_LIM3
360    export TEST_NAME="REPRO_8_4"
361    cd ${CONFIG_DIR}
362    . ./makenemo -m ${CMP_NAM} -n ORCA2LIM3_32 -r ORCA2_LIM3 -j 8 del_key ${DEL_KEYS}
363    cd ${SETTE_DIR}
364    . ./param.cfg
365    . ./all_functions.sh
366    . ./prepare_exe_dir.sh
367    JOB_FILE=${EXE_DIR}/run_job.sh
368    NPROC=32
369    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
370    cd ${EXE_DIR}
371    set_namelist namelist_cfg nn_it000 1
372    set_namelist namelist_cfg nn_itend 75
373    set_namelist namelist_cfg nn_fwb 0
374    set_namelist namelist_cfg ln_ctl .false.
375    set_namelist namelist_cfg ln_clobber .true.
376    set_namelist namelist_cfg ln_read_cfg .true.
377    set_namelist namelist_cfg ln_linssh .false.
378    set_namelist namelist_cfg ln_icebergs .true.
379    set_namelist namelist_cfg jpni 8
380    set_namelist namelist_cfg jpnj 4
381    set_namelist namelist_cfg jpnij 32
382    if [ ${USING_MPMD} == "yes" ] ; then
383       set_xio_using_server iodef.xml true
384    else
385       set_xio_using_server iodef.xml false
386    fi
387    cd ${SETTE_DIR}
388    . ./prepare_job.sh input_ORCA2_LIM3.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
389    cd ${SETTE_DIR}
390    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
391
392
393    cd ${SETTE_DIR}
394    export TEST_NAME="REPRO_4_8"
395    . ./prepare_exe_dir.sh
396    JOB_FILE=${EXE_DIR}/run_job.sh
397    NPROC=32
398    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
399    cd ${EXE_DIR}
400    set_namelist namelist_cfg nn_it000 1
401    set_namelist namelist_cfg nn_itend 75
402    set_namelist namelist_cfg ln_clobber .true.
403    set_namelist namelist_cfg ln_read_cfg .true.
404    set_namelist namelist_cfg ln_linssh .false.
405    set_namelist namelist_cfg ln_icebergs .true.
406    set_namelist namelist_cfg nn_fwb 0
407    set_namelist namelist_cfg jpni 4
408    set_namelist namelist_cfg jpnj 8
409    set_namelist namelist_cfg jpnij 32
410    if [ ${USING_MPMD} == "yes" ] ; then
411       set_xio_using_server iodef.xml true
412    else
413       set_xio_using_server iodef.xml false
414    fi
415
416    cd ${SETTE_DIR}
417    . ./prepare_job.sh input_ORCA2_LIM3.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
418    cd ${SETTE_DIR}
419    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
420fi
421
422# TESTS FOR ORCA2_LIM3_PISCES CONFIGURATION
423if [ ${config} -eq 5 ] ;  then
424    ## Restartability tests for ORCA2_LIM3_PISCES
425    export TEST_NAME="LONG"
426    cd ${CONFIG_DIR}
427    . ./makenemo -m ${CMP_NAM} -n ORCA2LIM3PIS_LONG -r ORCA2_LIM3_PISCES -j 8 del_key ${DEL_KEYS}
428    cd ${SETTE_DIR}
429    . ./param.cfg
430    . ./all_functions.sh
431    . ./prepare_exe_dir.sh
432    JOB_FILE=${EXE_DIR}/run_job.sh
433    NPROC=32
434    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
435    cd ${EXE_DIR}
436    set_namelist namelist_cfg cn_exp \"O2L3P_LONG\"
437    set_namelist namelist_cfg nn_it000 1
438    set_namelist namelist_cfg nn_itend 150
439    set_namelist namelist_cfg nn_stock 75
440    set_namelist namelist_cfg ln_clobber .true.
441    set_namelist namelist_cfg ln_read_cfg .true.
442    set_namelist namelist_cfg ln_linssh .false.
443    set_namelist namelist_cfg nn_fwb 0
444    set_namelist namelist_cfg jpni 4
445    set_namelist namelist_cfg jpnj 8
446    set_namelist namelist_cfg jpnij 32
447    set_namelist namelist_top_cfg ln_trcdta .false.
448    # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false
449    # if not you need input files, and for tests is not necessary
450    set_namelist namelist_pisces_cfg ln_presatm .false.
451    set_namelist namelist_pisces_cfg ln_varpar .false.
452    set_namelist namelist_pisces_cfg ln_dust .false.
453    set_namelist namelist_pisces_cfg ln_solub .false.
454    set_namelist namelist_pisces_cfg ln_river .false.
455    set_namelist namelist_pisces_cfg ln_ndepo .false.
456    set_namelist namelist_pisces_cfg ln_ironsed .false.
457    set_namelist namelist_pisces_cfg ln_ironice .false.
458    set_namelist namelist_pisces_cfg ln_hydrofe .false.
459    if [ ${USING_MPMD} == "yes" ] ; then
460       set_xio_using_server iodef.xml true
461    else
462       set_xio_using_server iodef.xml false
463    fi
464    cd ${SETTE_DIR}
465    . ./prepare_job.sh input_ORCA2_LIM3_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
466   
467    cd ${SETTE_DIR}
468    export TEST_NAME="SHORT"
469    . ./prepare_exe_dir.sh
470    cd ${EXE_DIR}
471    set_namelist namelist_cfg cn_exp \"O2L3P_SHORT\"
472    set_namelist namelist_cfg nn_it000 76
473    set_namelist namelist_cfg nn_itend 150
474    set_namelist namelist_cfg nn_stock 75
475    set_namelist namelist_cfg ln_rstart .true.
476    set_namelist namelist_cfg nn_rstctl 2
477    set_namelist namelist_cfg ln_clobber .true.
478    set_namelist namelist_cfg ln_read_cfg .true.
479    set_namelist namelist_cfg ln_linssh .false.
480    set_namelist namelist_cfg nn_fwb 0
481    set_namelist namelist_cfg jpni 4
482    set_namelist namelist_cfg jpnj 8
483    set_namelist namelist_cfg jpnij 32
484    set_namelist namelist_top_cfg ln_rsttr .true.
485    set_namelist namelist_top_cfg nn_rsttr 2
486    set_namelist namelist_cfg cn_ocerst_in \"O2L3P_LONG_00000075_restart\"
487    set_namelist namelist_ice_cfg cn_icerst_in \"O2L3P_LONG_00000075_restart_ice\"
488    set_namelist namelist_top_cfg cn_trcrst_in \"O2L3P_LONG_00000075_restart_trc\"
489    # put ln_ironsed, ln_river, ln_ndepo, ln_dust
490    # if not you need input files, and for tests is not necessary
491    set_namelist namelist_pisces_cfg ln_presatm .false.
492    set_namelist namelist_pisces_cfg ln_varpar .false.
493    set_namelist namelist_pisces_cfg ln_dust .false.
494    set_namelist namelist_pisces_cfg ln_solub .false.
495    set_namelist namelist_pisces_cfg ln_river .false.
496    set_namelist namelist_pisces_cfg ln_ndepo .false.
497    set_namelist namelist_pisces_cfg ln_ironsed .false.
498    set_namelist namelist_pisces_cfg ln_ironice .false.
499    set_namelist namelist_pisces_cfg ln_hydrofe .false.
500    # put ln_pisdmp to false : no restoring to global mean value
501    set_namelist namelist_pisces_cfg ln_pisdmp .false.
502    for (( i=1; i<=$NPROC; i++)) ; do
503        L_NPROC=$(( $i - 1 ))
504        L_NPROC=`printf "%04d\n" ${L_NPROC}`
505        ln -sf ../LONG/O2L3P_LONG_00000075_restart_${L_NPROC}.nc .
506        ln -sf ../LONG/O2L3P_LONG_00000075_restart_trc_${L_NPROC}.nc .
507        ln -sf ../LONG/O2L3P_LONG_00000075_restart_ice_${L_NPROC}.nc .
508    done
509    if [ ${USING_MPMD} == "yes" ] ; then
510       set_xio_using_server iodef.xml true
511    else
512       set_xio_using_server iodef.xml false
513    fi
514    cd ${SETTE_DIR}
515    . ./prepare_job.sh input_ORCA2_LIM3_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
516    cd ${SETTE_DIR}
517    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
518fi
519
520if [ ${config} -eq 6 ] ;  then
521    ## Reproducibility tests for ORCA2_LIM3_PISCES
522    export TEST_NAME="REPRO_4_8"
523    cd ${CONFIG_DIR}
524    . ./makenemo -m ${CMP_NAM} -n ORCA2LIM3PIS_32 -r ORCA2_LIM3_PISCES -j 8 del_key ${DEL_KEYS}
525    cd ${SETTE_DIR}
526    . ./param.cfg
527    . ./all_functions.sh
528    . ./prepare_exe_dir.sh
529    JOB_FILE=${EXE_DIR}/run_job.sh
530    NPROC=32
531    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
532    cd ${EXE_DIR}
533    set_namelist namelist_cfg nn_it000 1
534    set_namelist namelist_cfg nn_itend 75
535    set_namelist namelist_cfg nn_fwb 0
536    set_namelist namelist_cfg ln_ctl .false.
537    set_namelist namelist_cfg ln_clobber .true.
538    set_namelist namelist_cfg ln_read_cfg .true.
539    set_namelist namelist_cfg ln_linssh .false.
540    set_namelist namelist_cfg jpni 4
541    set_namelist namelist_cfg jpnj 8
542    set_namelist namelist_cfg jpnij 32
543    set_namelist namelist_top_cfg ln_trcdta .false.
544    # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false
545    # if not you need input files, and for tests is not necessary
546    set_namelist namelist_pisces_cfg ln_presatm .false.
547    set_namelist namelist_pisces_cfg ln_varpar .false.
548    set_namelist namelist_pisces_cfg ln_dust .false.
549    set_namelist namelist_pisces_cfg ln_solub .false.
550    set_namelist namelist_pisces_cfg ln_river .false.
551    set_namelist namelist_pisces_cfg ln_ndepo .false.
552    set_namelist namelist_pisces_cfg ln_ironsed .false.
553    set_namelist namelist_pisces_cfg ln_ironice .false.
554    set_namelist namelist_pisces_cfg ln_hydrofe .false.
555    # put ln_pisdmp to false : no restoring to global mean value
556    set_namelist namelist_pisces_cfg ln_pisdmp .false.
557    if [ ${USING_MPMD} == "yes" ] ; then
558       set_xio_using_server iodef.xml true
559    else
560       set_xio_using_server iodef.xml false
561    fi
562    cd ${SETTE_DIR}
563    . ./prepare_job.sh input_ORCA2_LIM3_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
564    cd ${SETTE_DIR}
565    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
566
567    cd ${SETTE_DIR}
568    export TEST_NAME="REPRO_8_4"
569    . ./prepare_exe_dir.sh
570    JOB_FILE=${EXE_DIR}/run_job.sh
571    NPROC=32
572    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
573    cd ${EXE_DIR}
574    set_namelist namelist_cfg nn_it000 1
575    set_namelist namelist_cfg nn_itend 75
576    set_namelist namelist_cfg ln_clobber .true.
577    set_namelist namelist_cfg ln_read_cfg .true.
578    set_namelist namelist_cfg ln_linssh .false.
579    set_namelist namelist_cfg nn_fwb 0
580    set_namelist namelist_cfg jpni 8
581    set_namelist namelist_cfg jpnj 4
582    set_namelist namelist_cfg jpnij 32
583    set_namelist namelist_top_cfg ln_trcdta .false.
584    # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false
585    # if not you need input files, and for tests is not necessary
586    set_namelist namelist_pisces_cfg ln_presatm .false.
587    set_namelist namelist_pisces_cfg ln_varpar .false.
588    set_namelist namelist_pisces_cfg ln_dust .false.
589    set_namelist namelist_pisces_cfg ln_solub .false.
590    set_namelist namelist_pisces_cfg ln_river .false.
591    set_namelist namelist_pisces_cfg ln_ndepo .false.
592    set_namelist namelist_pisces_cfg ln_ironsed .false.
593    set_namelist namelist_pisces_cfg ln_ironice .false.
594    set_namelist namelist_pisces_cfg ln_hydrofe .false.
595    # put ln_pisdmp to false : no restoring to global mean value
596    set_namelist namelist_pisces_cfg ln_pisdmp .false.
597    if [ ${USING_MPMD} == "yes" ] ; then
598       set_xio_using_server iodef.xml true
599    else
600       set_xio_using_server iodef.xml false
601    fi
602    cd ${SETTE_DIR}
603    . ./prepare_job.sh input_ORCA2_LIM3_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
604    cd ${SETTE_DIR}
605    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
606fi
607
608# TESTS FOR ORCA2_OFF_PISCES CONFIGURATION
609if [ ${config} -eq 7 ] ;  then
610    ## Restartability tests for ORCA2_OFF_PISCES
611    export TEST_NAME="LONG"
612    cd ${CONFIG_DIR}
613    . ./makenemo -m ${CMP_NAM} -n ORCA2OFFPIS_LONG -r ORCA2_OFF_PISCES -j 8 del_key ${DEL_KEYS}
614    cd ${SETTE_DIR}
615    . ./param.cfg
616    . ./all_functions.sh
617    . ./prepare_exe_dir.sh
618    JOB_FILE=${EXE_DIR}/run_job.sh
619    NPROC=32
620    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
621    cd ${EXE_DIR}
622    set_namelist namelist_cfg cn_exp \"OFFP_LONG\"
623    set_namelist namelist_cfg nn_it000 1
624    set_namelist namelist_cfg nn_itend 40
625    set_namelist namelist_cfg nn_stock 20
626    set_namelist namelist_cfg ln_clobber .true.
627    set_namelist namelist_cfg ln_read_cfg .true.
628    set_namelist namelist_cfg ln_linssh .true.
629    set_namelist namelist_cfg jpni 4
630    set_namelist namelist_cfg jpnj 8
631    set_namelist namelist_cfg jpnij 32
632    set_namelist namelist_top_cfg ln_trcdta .false.
633    # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false
634    # if not you need input files, and for tests is not necessary
635    set_namelist namelist_pisces_cfg ln_presatm .false.
636    set_namelist namelist_pisces_cfg ln_varpar .false.
637    set_namelist namelist_pisces_cfg ln_dust .false.
638    set_namelist namelist_pisces_cfg ln_solub .false.
639    set_namelist namelist_pisces_cfg ln_river .false.
640    set_namelist namelist_pisces_cfg ln_ndepo .false.
641    set_namelist namelist_pisces_cfg ln_ironsed .false.
642    set_namelist namelist_pisces_cfg ln_ironice .false.
643    set_namelist namelist_pisces_cfg ln_hydrofe .false.
644    # put ln_pisdmp to false : no restoring to global mean value
645    set_namelist namelist_pisces_cfg ln_pisdmp .false.
646    if [ ${USING_MPMD} == "yes" ] ; then
647       set_xio_using_server iodef.xml true
648    else
649       set_xio_using_server iodef.xml false
650    fi
651    cd ${SETTE_DIR}
652    . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
653   
654    cd ${SETTE_DIR}
655    export TEST_NAME="SHORT"
656    . ./prepare_exe_dir.sh
657    cd ${EXE_DIR}
658    set_namelist namelist_cfg cn_exp \"OFFP_SHORT\"
659    set_namelist namelist_cfg nn_it000 21
660    set_namelist namelist_cfg nn_itend 40
661    set_namelist namelist_cfg nn_stock 20
662    set_namelist namelist_cfg ln_clobber .true.
663    set_namelist namelist_cfg ln_read_cfg .true.
664    set_namelist namelist_cfg ln_linssh .true.
665    set_namelist namelist_cfg jpni 4
666    set_namelist namelist_cfg jpnj 8
667    set_namelist namelist_cfg jpnij 32
668    set_namelist namelist_top_cfg ln_rsttr .true.
669    set_namelist namelist_top_cfg nn_rsttr 2
670    set_namelist namelist_top_cfg cn_trcrst_in \"OFFP_LONG_00000020_restart_trc\"
671    for (( i=1; i<=$NPROC; i++)) ; do
672        L_NPROC=$(( $i - 1 ))
673        L_NPROC=`printf "%04d\n" ${L_NPROC}`
674        ln -sf ../LONG/OFFP_LONG_00000020_restart_trc_${L_NPROC}.nc .
675    done
676    # put ln_ironsed, ln_river, ln_ndepo, ln_dust
677    # if not you need input files, and for tests is not necessary
678    set_namelist namelist_pisces_cfg ln_presatm .false.
679    set_namelist namelist_pisces_cfg ln_varpar .false.
680    set_namelist namelist_pisces_cfg ln_dust .false.
681    set_namelist namelist_pisces_cfg ln_solub .false.
682    set_namelist namelist_pisces_cfg ln_river .false.
683    set_namelist namelist_pisces_cfg ln_ndepo .false.
684    set_namelist namelist_pisces_cfg ln_ironsed .false.
685    set_namelist namelist_pisces_cfg ln_ironice .false.
686    set_namelist namelist_pisces_cfg ln_hydrofe .false.
687    # put ln_pisdmp to false : no restoring to global mean value
688    set_namelist namelist_pisces_cfg ln_pisdmp .false.
689    if [ ${USING_MPMD} == "yes" ] ; then
690       set_xio_using_server iodef.xml true
691    else
692       set_xio_using_server iodef.xml false
693    fi
694    cd ${SETTE_DIR}
695    . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME}  ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
696    cd ${SETTE_DIR}
697    . ./fcm_job.sh $NPROC  ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
698fi
699
700if [ ${config} -eq 8 ] ;  then
701    ## Reproducibility tests for ORCA2_OFF_PISCES
702    export TEST_NAME="REPRO_4_8"
703    cd ${CONFIG_DIR}
704    . ./makenemo -m ${CMP_NAM} -n ORCA2OFFPIS_32 -r ORCA2_OFF_PISCES -j 8 del_key ${DEL_KEYS}
705    cd ${SETTE_DIR}
706    . ./param.cfg
707    . ./all_functions.sh
708    . ./prepare_exe_dir.sh
709    JOB_FILE=${EXE_DIR}/run_job.sh
710    NPROC=32
711    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
712    cd ${EXE_DIR}
713    set_namelist namelist_cfg nn_it000 1
714    set_namelist namelist_cfg nn_itend 40
715    set_namelist namelist_cfg ln_ctl .false.
716    set_namelist namelist_cfg ln_clobber .true.
717    set_namelist namelist_cfg ln_read_cfg .true.
718    set_namelist namelist_cfg ln_linssh .true.
719    set_namelist namelist_cfg jpni 4
720    set_namelist namelist_cfg jpnj 8
721    set_namelist namelist_cfg jpnij 32
722    set_namelist namelist_top_cfg ln_trcdta .false.
723    # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false
724    # if not you need input files, and for tests is not necessary
725    set_namelist namelist_pisces_cfg ln_presatm .false.
726    set_namelist namelist_pisces_cfg ln_varpar .false.
727    set_namelist namelist_pisces_cfg ln_dust .false.
728    set_namelist namelist_pisces_cfg ln_solub .false.
729    set_namelist namelist_pisces_cfg ln_river .false.
730    set_namelist namelist_pisces_cfg ln_ndepo .false.
731    set_namelist namelist_pisces_cfg ln_ironsed .false.
732    set_namelist namelist_pisces_cfg ln_ironice .false.
733    set_namelist namelist_pisces_cfg ln_hydrofe .false.
734    # put ln_pisdmp to false : no restoring to global mean value
735    set_namelist namelist_pisces_cfg ln_pisdmp .false.
736    if [ ${USING_MPMD} == "yes" ] ; then
737       set_xio_using_server iodef.xml true
738    else
739       set_xio_using_server iodef.xml false
740    fi
741    cd ${SETTE_DIR}
742    . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
743    cd ${SETTE_DIR}
744    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
745
746    cd ${SETTE_DIR}
747    export TEST_NAME="REPRO_8_4"
748    . ./prepare_exe_dir.sh
749    JOB_FILE=${EXE_DIR}/run_job.sh
750    NPROC=32
751    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
752    cd ${EXE_DIR}
753    set_namelist namelist_cfg nn_it000 1
754    set_namelist namelist_cfg nn_itend 40
755    set_namelist namelist_cfg ln_ctl .false.
756    set_namelist namelist_cfg ln_clobber .true.
757    set_namelist namelist_cfg ln_read_cfg .true.
758    set_namelist namelist_cfg ln_linssh .true.
759    set_namelist namelist_cfg jpni 8
760    set_namelist namelist_cfg jpnj 4
761    set_namelist namelist_cfg jpnij 32
762    set_namelist namelist_top_cfg ln_trcdta .false.
763    # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false
764    # if not you need input files, and for tests is not necessary
765    set_namelist namelist_pisces_cfg ln_presatm .false.
766    set_namelist namelist_pisces_cfg ln_varpar .false.
767    set_namelist namelist_pisces_cfg ln_dust .false.
768    set_namelist namelist_pisces_cfg ln_solub .false.
769    set_namelist namelist_pisces_cfg ln_river .false.
770    set_namelist namelist_pisces_cfg ln_ndepo .false.
771    set_namelist namelist_pisces_cfg ln_ironsed .false.
772    set_namelist namelist_pisces_cfg ln_ironice .false.
773    set_namelist namelist_pisces_cfg ln_hydrofe .false.
774    # put ln_pisdmp to false : no restoring to global mean value
775    set_namelist namelist_pisces_cfg ln_pisdmp .false.
776    if [ ${USING_MPMD} == "yes" ] ; then
777       set_xio_using_server iodef.xml true
778    else
779       set_xio_using_server iodef.xml false
780    fi
781    cd ${SETTE_DIR}
782    . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
783    cd ${SETTE_DIR}
784    . ./fcm_job.sh $NPROC  ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
785fi
786
787# TESTS FOR AMM12 CONFIGURATION
788if [ ${config} -eq 9 ] ;  then
789    ## Restartability tests for AMM12
790    export TEST_NAME="LONG"
791    cd ${CONFIG_DIR}
792    . ./makenemo -m ${CMP_NAM} -n AMM12_LONG -r AMM12 -j 8 add_key "key_tide" del_key ${DEL_KEYS}
793    cd ${SETTE_DIR}
794    . ./param.cfg
795    . ./all_functions.sh
796    . ./prepare_exe_dir.sh
797    JOB_FILE=${EXE_DIR}/run_job.sh
798    NPROC=32
799    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
800    cd ${EXE_DIR}
801    set_namelist namelist_cfg nn_it000 1
802    set_namelist namelist_cfg nn_itend 576
803    set_namelist namelist_cfg nn_stock 288
804    set_namelist namelist_cfg nn_fwb 0
805    set_namelist namelist_cfg ln_ctl .false.
806    set_namelist namelist_cfg ln_clobber .true.
807    set_namelist namelist_cfg ln_read_cfg .true.
808    set_namelist namelist_cfg ln_linssh .false.
809    set_namelist namelist_cfg jpni 4
810    set_namelist namelist_cfg jpnj 8
811    set_namelist namelist_cfg jpnij 32
812    if [ ${USING_MPMD} == "yes" ] ; then
813       set_xio_using_server iodef.xml true
814    else
815       set_xio_using_server iodef.xml false
816    fi
817    cd ${SETTE_DIR}
818    . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
819
820    cd ${SETTE_DIR}
821    export TEST_NAME="SHORT"
822    . ./prepare_exe_dir.sh
823    cd ${EXE_DIR}
824    set_namelist namelist_cfg nn_it000 289
825    set_namelist namelist_cfg nn_itend 576
826    set_namelist namelist_cfg nn_fwb 0
827    set_namelist namelist_cfg ln_ctl .false.
828    set_namelist namelist_cfg ln_clobber .true.
829    set_namelist namelist_cfg ln_read_cfg .true.
830    set_namelist namelist_cfg ln_linssh .false.
831    set_namelist namelist_cfg jpni 4
832    set_namelist namelist_cfg jpnj 8
833    set_namelist namelist_cfg jpnij 32
834    set_namelist namelist_cfg ln_rstart .true.
835    set_namelist namelist_cfg nn_rstctl 2
836    set_namelist namelist_cfg cn_ocerst_in \"AMM12_00000288_restart_oce_out\"
837    set_namelist namelist_cfg nn_date0 20120102
838    for (( i=1; i<=$NPROC; i++)) ; do
839        L_NPROC=$(( $i - 1 ))
840        L_NPROC=`printf "%04d\n" ${L_NPROC}`
841        ln -sf ../LONG/AMM12_00000288_restart_oce_out_${L_NPROC}.nc .
842    done
843    if [ ${USING_MPMD} == "yes" ] ; then
844       set_xio_using_server iodef.xml true
845    else
846       set_xio_using_server iodef.xml false
847    fi
848    cd ${SETTE_DIR}
849    . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
850    cd ${SETTE_DIR}
851    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
852fi
853
854if [ ${config} -eq 10 ] ;  then
855## Reproducibility tests for AMM12
856    export TEST_NAME="REPRO_8_4"
857    cd ${CONFIG_DIR}
858    . ./makenemo -m ${CMP_NAM} -n AMM12_32 -r AMM12 -j 8 del_key ${DEL_KEYS}
859    cd ${SETTE_DIR}
860    . ./param.cfg
861    . ./all_functions.sh
862    . ./prepare_exe_dir.sh
863    JOB_FILE=${EXE_DIR}/run_job.sh
864    NPROC=32
865    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
866    cd ${EXE_DIR}
867    set_namelist namelist_cfg nn_it000 1
868    set_namelist namelist_cfg nn_itend 576
869    set_namelist namelist_cfg nn_fwb 0
870    set_namelist namelist_cfg ln_ctl .false.
871    set_namelist namelist_cfg ln_clobber .true.
872    set_namelist namelist_cfg ln_read_cfg .true.
873    set_namelist namelist_cfg ln_linssh .false.
874    set_namelist namelist_cfg jpni 8
875    set_namelist namelist_cfg jpnj 4
876    set_namelist namelist_cfg jpnij 32
877    if [ ${USING_MPMD} == "yes" ] ; then
878       set_xio_using_server iodef.xml true
879    else
880       set_xio_using_server iodef.xml false
881    fi
882    cd ${SETTE_DIR}
883    . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
884    cd ${SETTE_DIR}
885    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
886
887    cd ${SETTE_DIR}
888    export TEST_NAME="REPRO_4_8"
889    . ./prepare_exe_dir.sh
890    JOB_FILE=${EXE_DIR}/run_job.sh
891    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
892    cd ${EXE_DIR}
893    set_namelist namelist_cfg nn_it000 1
894    set_namelist namelist_cfg nn_itend 576
895    set_namelist namelist_cfg nn_fwb 0
896    set_namelist namelist_cfg ln_ctl .false.
897    set_namelist namelist_cfg ln_clobber .true.
898    set_namelist namelist_cfg ln_read_cfg .true.
899    set_namelist namelist_cfg ln_linssh .false.
900    set_namelist namelist_cfg jpni 4
901    set_namelist namelist_cfg jpnj 8
902    set_namelist namelist_cfg jpnij 32
903    if [ ${USING_MPMD} == "yes" ] ; then
904       set_xio_using_server iodef.xml true
905    else
906       set_xio_using_server iodef.xml false
907    fi
908    cd ${SETTE_DIR}
909    . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
910    cd ${SETTE_DIR}
911    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
912fi
913
914
915# TESTS FOR ORCA2_SAS_LIM3 CONFIGURATION
916if [ ${config} -eq 11 ] ;  then
917    ## Restartability tests for SAS
918    export TEST_NAME="LONG"
919    cd ${CONFIG_DIR}
920    . ./makenemo -m ${CMP_NAM} -n SAS_LONG -r ORCA2_SAS_LIM3 -j 8 del_key ${DEL_KEYS}
921    cd ${SETTE_DIR}
922    . ./param.cfg
923    . ./all_functions.sh
924    . ./prepare_exe_dir.sh
925    JOB_FILE=${EXE_DIR}/run_job.sh
926    NPROC=32
927    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
928    cd ${EXE_DIR}
929    set_namelist namelist_cfg cn_exp \"SAS\"
930    set_namelist namelist_cfg nn_it000 1
931    set_namelist namelist_cfg nn_itend 100
932    set_namelist namelist_cfg nn_stock 50
933    set_namelist namelist_cfg ln_ctl .false.
934    set_namelist namelist_cfg ln_clobber .true.
935    set_namelist namelist_cfg ln_read_cfg .true.
936    set_namelist namelist_cfg ln_linssh .true.
937    set_namelist namelist_cfg nn_fwb 0
938    set_namelist namelist_cfg jpni 4
939    set_namelist namelist_cfg jpnj 8
940    set_namelist namelist_cfg jpnij 32
941    if [ ${USING_MPMD} == "yes" ] ; then
942       set_xio_using_server iodef.xml true
943    else
944       set_xio_using_server iodef.xml false
945    fi
946    cd ${SETTE_DIR}
947    . ./prepare_job.sh input_SAS.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
948
949    cd ${SETTE_DIR}
950    export TEST_NAME="SHORT"
951    . ./prepare_exe_dir.sh
952    cd ${EXE_DIR}
953    set_namelist namelist_cfg cn_exp \"SAS\"
954    set_namelist namelist_cfg nn_it000 51
955    set_namelist namelist_cfg nn_itend 100
956    set_namelist namelist_cfg ln_ctl .false.
957    set_namelist namelist_cfg ln_clobber .true.
958    set_namelist namelist_cfg ln_read_cfg .true.
959    set_namelist namelist_cfg ln_linssh .true.
960    set_namelist namelist_cfg nn_fwb 0
961    set_namelist namelist_cfg jpni 4
962    set_namelist namelist_cfg jpnj 8
963    set_namelist namelist_cfg jpnij 32
964    set_namelist namelist_cfg ln_rstart .true.
965    set_namelist namelist_cfg nn_rstctl 2
966    set_namelist namelist_ice_cfg cn_icerst_in \"SAS_00000050_restart_ice\"
967    if [ ${USING_MPMD} == "yes" ] ; then
968       set_xio_using_server iodef.xml true
969    else
970       set_xio_using_server iodef.xml false
971    fi
972    for (( i=1; i<=$NPROC; i++)) ; do
973        L_NPROC=$(( $i - 1 ))
974        L_NPROC=`printf "%04d\n" ${L_NPROC}`
975        ln -sf ../LONG/SAS_00000050_restart_ice_${L_NPROC}.nc .
976    done
977    cd ${SETTE_DIR}
978    . ./prepare_job.sh input_SAS.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
979    cd ${SETTE_DIR}
980    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
981fi
982
983# TESTS FOR ISOMIP CONFIGURATION
984if [ ${config} -eq 12 ] ;  then
985    ## Restartability tests for ISOMIP
986    export TEST_NAME="LONG"
987    cd ${CONFIG_DIR}
988    . ./makenemo -m ${CMP_NAM} -n ISOMIP_LONG -r ISOMIP -j 8 del_key ${DEL_KEYS}
989    cd ${SETTE_DIR}
990    . ./param.cfg
991    . ./all_functions.sh
992    . ./prepare_exe_dir.sh
993    JOB_FILE=${EXE_DIR}/run_job.sh
994    NPROC=32
995    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
996    cd ${EXE_DIR}
997    set_namelist namelist_cfg cn_exp \"ISOMIP_LONG\"
998    set_namelist namelist_cfg nn_it000 1
999    set_namelist namelist_cfg nn_itend 96
1000    set_namelist namelist_cfg nn_stock 48
1001    set_namelist namelist_cfg ln_clobber .true.
1002    set_namelist namelist_cfg ln_read_cfg .true.
1003    set_namelist namelist_cfg ln_linssh .true.
1004    set_namelist namelist_cfg nn_fwb 0
1005    set_namelist namelist_cfg jpni 4
1006    set_namelist namelist_cfg jpnj 8
1007    set_namelist namelist_cfg jpnij 32
1008    if [ ${USING_MPMD} == "yes" ] ; then
1009       set_xio_using_server iodef.xml true
1010    else
1011       set_xio_using_server iodef.xml false
1012    fi
1013    cd ${SETTE_DIR}
1014    . ./prepare_job.sh input_ISOMIP.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
1015
1016    cd ${SETTE_DIR}
1017    export TEST_NAME="SHORT"
1018    . ./prepare_exe_dir.sh
1019    cd ${EXE_DIR}
1020    set_namelist namelist_cfg cn_exp \"ISOMIP_SHORT\"
1021    set_namelist namelist_cfg nn_it000 49
1022    set_namelist namelist_cfg nn_itend 96
1023    set_namelist namelist_cfg nn_stock 48
1024    set_namelist namelist_cfg ln_rstart .true.
1025    set_namelist namelist_cfg nn_rstctl 2
1026    set_namelist namelist_cfg ln_clobber .true.
1027    set_namelist namelist_cfg ln_read_cfg .true.
1028    set_namelist namelist_cfg ln_linssh .true.
1029    set_namelist namelist_cfg nn_fwb 0
1030    set_namelist namelist_cfg jpni 4
1031    set_namelist namelist_cfg jpnj 8
1032    set_namelist namelist_cfg jpnij 32
1033    set_namelist namelist_cfg cn_ocerst_in \"ISOMIP_LONG_00000048_restart\"
1034    if [ ${USING_MPMD} == "yes" ] ; then
1035       set_xio_using_server iodef.xml true
1036    else
1037       set_xio_using_server iodef.xml false
1038    fi
1039    for (( i=1; i<=$NPROC; i++)) ; do
1040        L_NPROC=$(( $i - 1 ))
1041        L_NPROC=`printf "%04d\n" ${L_NPROC}`
1042        ln -sf ../LONG/ISOMIP_LONG_00000048_restart_${L_NPROC}.nc .
1043    done
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_ISOMIP.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
1051    cd ${SETTE_DIR}
1052    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
1053fi
1054if [ ${config} -eq 13 ] ;  then
1055    ## Reproducibility tests for ISOMIP
1056    export TEST_NAME="REPRO_4_8"
1057    cd ${CONFIG_DIR}
1058    . ./makenemo -m ${CMP_NAM} -n ISOMIP_32 -r ISOMIP -j 8 del_key ${DEL_KEYS}
1059    cd ${SETTE_DIR}
1060    . ./param.cfg
1061    . ./all_functions.sh
1062    . ./prepare_exe_dir.sh
1063    JOB_FILE=${EXE_DIR}/run_job.sh
1064    NPROC=32
1065    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
1066    cd ${EXE_DIR}
1067    set_namelist namelist_cfg cn_exp \"ISOMIP_14\"
1068    set_namelist namelist_cfg nn_it000 1
1069    set_namelist namelist_cfg nn_itend 48
1070    set_namelist namelist_cfg ln_ctl .false.
1071    set_namelist namelist_cfg ln_clobber .true.
1072    set_namelist namelist_cfg ln_read_cfg .true.
1073    set_namelist namelist_cfg ln_linssh .true.
1074    set_namelist namelist_cfg nn_fwb 0
1075    set_namelist namelist_cfg jpni 4
1076    set_namelist namelist_cfg jpnj 8
1077    set_namelist namelist_cfg jpnij 32
1078    if [ ${USING_MPMD} == "yes" ] ; then
1079       set_xio_using_server iodef.xml true
1080    else
1081       set_xio_using_server iodef.xml false
1082    fi
1083    cd ${SETTE_DIR}
1084    . ./prepare_job.sh input_ISOMIP.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
1085    cd ${SETTE_DIR}
1086    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
1087
1088    cd ${SETTE_DIR}
1089    export TEST_NAME="REPRO_8_4"
1090    . ./prepare_exe_dir.sh
1091    JOB_FILE=${EXE_DIR}/run_job.sh
1092    NPROC=32
1093    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
1094    cd ${EXE_DIR}
1095    set_namelist namelist_cfg cn_exp \"ISOMIP_22\"
1096    set_namelist namelist_cfg nn_it000 1
1097    set_namelist namelist_cfg nn_itend 48
1098    set_namelist namelist_cfg ln_ctl .false.
1099    set_namelist namelist_cfg ln_clobber .true.
1100    set_namelist namelist_cfg ln_read_cfg .true.
1101    set_namelist namelist_cfg ln_linssh .true.
1102    set_namelist namelist_cfg nn_fwb 0
1103    set_namelist namelist_cfg jpni 8
1104    set_namelist namelist_cfg jpnj 4
1105    set_namelist namelist_cfg jpnij 32
1106    if [ ${USING_MPMD} == "yes" ] ; then
1107       set_xio_using_server iodef.xml true
1108    else
1109       set_xio_using_server iodef.xml false
1110    fi
1111    cd ${SETTE_DIR}
1112    . ./prepare_job.sh input_ISOMIP.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
1113    cd ${SETTE_DIR}
1114    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
1115
1116fi
1117
1118## Test assimilation interface code, OBS and ASM for reproducibility
1119## Restartability not tested (ASM code not restartable while increments are being applied)
1120if [ ${config} -eq 14 ] ; then
1121   ## Reproducibility tests for ORCA2_LIM_OBS
1122    export TEST_NAME="REPRO_4_8"
1123    cd ${CONFIG_DIR}
1124    . ./makenemo -m ${CMP_NAM} -n ORCA2_LIM3_OBS -r ORCA2_LIM3 -j 8 add_key "key_asminc" del_key ${DEL_KEYS}
1125    cd ${SETTE_DIR}
1126    . ./param.cfg
1127    . ./all_functions.sh
1128    . ./prepare_exe_dir.sh
1129    JOB_FILE=${EXE_DIR}/run_job.sh
1130    NPROC=32
1131    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
1132    cd ${EXE_DIR}
1133    set_namelist namelist_cfg nn_it000 1
1134    set_namelist namelist_cfg nn_itend 75
1135    set_namelist namelist_cfg nn_fwb 0
1136    set_namelist namelist_cfg ln_ctl .false.
1137    set_namelist namelist_cfg ln_clobber .true.
1138    set_namelist namelist_cfg ln_read_cfg .true.
1139    set_namelist namelist_cfg ln_linssh .false.
1140    set_namelist namelist_cfg jpni 4
1141    set_namelist namelist_cfg jpnj 8
1142    set_namelist namelist_cfg jpnij 32
1143    set_namelist namelist_cfg ln_diaobs .true.
1144    set_namelist namelist_cfg ln_t3d .true.
1145    set_namelist namelist_cfg ln_s3d .true.
1146    set_namelist namelist_cfg ln_sst .true.
1147    set_namelist namelist_cfg ln_sla .true.
1148    set_namelist namelist_cfg ln_sic .true.
1149    set_namelist namelist_cfg ln_vel3d .true.
1150    set_namelist namelist_cfg ln_bkgwri .true.
1151    set_namelist namelist_cfg ln_trainc .true.
1152    set_namelist namelist_cfg ln_dyninc .true.
1153    set_namelist namelist_cfg ln_sshinc .true.
1154    set_namelist namelist_cfg ln_asmiau .true.
1155    if [ ${USING_MPMD} == "yes" ] ; then
1156       set_xio_using_server iodef.xml true
1157    else
1158       set_xio_using_server iodef.xml false
1159    fi
1160    cd ${SETTE_DIR}
1161    . ./prepare_job.sh input_ORCA2_LIM3_OBS.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
1162    cd ${SETTE_DIR}
1163    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
1164
1165   cd ${SETTE_DIR}
1166    export TEST_NAME="REPRO_8_4"
1167    . ./prepare_exe_dir.sh
1168    JOB_FILE=${EXE_DIR}/run_job.sh
1169    NPROC=32
1170    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
1171    cd ${EXE_DIR}
1172    set_namelist namelist_cfg nn_it000 1
1173    set_namelist namelist_cfg nn_itend 75
1174    set_namelist namelist_cfg nn_fwb 0
1175    set_namelist namelist_cfg ln_ctl .false.
1176    set_namelist namelist_cfg ln_clobber .true.
1177    set_namelist namelist_cfg ln_read_cfg .true.
1178    set_namelist namelist_cfg ln_linssh .false.
1179    set_namelist namelist_cfg jpni 8
1180    set_namelist namelist_cfg jpnj 4
1181    set_namelist namelist_cfg jpnij 32
1182    set_namelist namelist_cfg ln_diaobs .true.
1183    set_namelist namelist_cfg ln_t3d .true.
1184    set_namelist namelist_cfg ln_s3d .true.
1185    set_namelist namelist_cfg ln_sst .true.
1186    set_namelist namelist_cfg ln_sla .true.
1187    set_namelist namelist_cfg ln_sic .true.
1188    set_namelist namelist_cfg ln_vel3d .true.
1189    set_namelist namelist_cfg ln_bkgwri .true.
1190    set_namelist namelist_cfg ln_trainc .true.
1191    set_namelist namelist_cfg ln_dyninc .true.
1192    set_namelist namelist_cfg ln_sshinc .true.
1193    set_namelist namelist_cfg ln_asmiau .true.
1194    if [ ${USING_MPMD} == "yes" ] ; then
1195       set_xio_using_server iodef.xml true
1196    else
1197       set_xio_using_server iodef.xml false
1198    fi
1199    cd ${SETTE_DIR}
1200    . ./prepare_job.sh input_ORCA2_LIM3_OBS.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
1201    cd ${SETTE_DIR}
1202    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
1203fi
1204# TEST FOR ORCA2_LIM_AGRIF : simple test of running AGRIF (no restartability neither reproducibility tests)
1205if [ ${config} -eq 15 ] ;  then
1206    ## ORCA2_LIM with Agulhas AGRIF zoom in MPI
1207    export TEST_NAME="SHORT"
1208    cd ${CONFIG_DIR}
1209    . ./makenemo -m ${CMP_NAM} -n ORCA2AGUL_1_2 -r ORCA2_LIM -j 8 add_key "key_agrif" del_key "key_zdftmx" del_key ${DEL_KEYS}
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=2
1216    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
1217    cd ${EXE_DIR}
1218    set_namelist namelist_cfg nn_it000 1
1219    set_namelist namelist_cfg nn_itend 75
1220    set_namelist namelist_cfg ln_ctl .false.
1221    set_namelist namelist_cfg ln_clobber .true.
1222    set_namelist namelist_cfg ln_read_cfg .true.
1223    set_namelist namelist_cfg ln_linssh .true.
1224    set_namelist namelist_cfg ln_hpg_sco .false.
1225    set_namelist namelist_cfg ln_hpg_zps .true.
1226    set_namelist namelist_cfg nn_fwb 0
1227    set_namelist namelist_cfg jpni 1
1228    set_namelist namelist_cfg jpnj 2
1229    set_namelist namelist_cfg jpnij 2
1230    set_namelist 1_namelist_cfg nn_it000 1
1231    set_namelist 1_namelist_cfg nn_itend 150
1232    set_namelist 1_namelist_cfg ln_ctl .false.
1233    set_namelist 1_namelist_cfg ln_clobber .true.
1234    set_namelist 1_namelist_cfg ln_read_cfg .true.
1235    set_namelist 1_namelist_cfg ln_linssh .true.
1236    set_namelist 1_namelist_cfg ln_hpg_sco .false.
1237    set_namelist 1_namelist_cfg ln_hpg_zps .true.
1238    if [ ${USING_MPMD} == "yes" ] ; then
1239       set_xio_using_server iodef.xml true
1240    else
1241       set_xio_using_server iodef.xml false
1242    fi
1243    cd ${SETTE_DIR}
1244    . ./prepare_job.sh input_ORCA2_LIM_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
1245    cd ${SETTE_DIR}
1246    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
1247fi
1248
1249# test code corruption with AGRIF
1250# Compile and run with or without AGRIF ORCA2_LIM
1251if [ ${config} -eq 16 ] ;  then
1252    # First run same as 15 but without zoom
1253    export TEST_NAME="SHORT_NOZOOM"
1254    cd ${CONFIG_DIR}
1255    . ./makenemo -m ${CMP_NAM} -n ORCA2AGUL_2_2 -r ORCA2_LIM -j 8 add_key "key_agrif" del_key "key_zdftmx" del_key ${DEL_KEYS}
1256    cd ${SETTE_DIR}
1257    . ./param.cfg
1258    . ./all_functions.sh
1259    . ./prepare_exe_dir.sh
1260    JOB_FILE=${EXE_DIR}/run_job.sh
1261    NPROC=4
1262    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
1263    cd ${EXE_DIR}
1264    set_namelist namelist_cfg nn_it000 1
1265    set_namelist namelist_cfg nn_itend 75
1266    set_namelist namelist_cfg ln_ctl .false.
1267    set_namelist namelist_cfg ln_clobber .true.
1268    set_namelist namelist_cfg ln_read_cfg .true.
1269    set_namelist namelist_cfg ln_linssh .true.
1270    set_namelist namelist_cfg ln_hpg_sco .false.
1271    set_namelist namelist_cfg ln_hpg_zps .true.
1272    set_namelist namelist_cfg nn_fwb 0
1273    set_namelist namelist_cfg jpni 2
1274    set_namelist namelist_cfg jpnj 2
1275    set_namelist namelist_cfg jpnij 4
1276#
1277#   Set the number of fine grids to zero:   
1278    sed -i "1s/.*/0/" ${EXE_DIR}/AGRIF_FixedGrids.in
1279
1280    if [ ${USING_MPMD} == "yes" ] ; then
1281       set_xio_using_server iodef.xml true
1282    else
1283       set_xio_using_server iodef.xml false
1284    fi
1285    cd ${SETTE_DIR}
1286    . ./prepare_job.sh input_ORCA2_LIM_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
1287    cd ${SETTE_DIR}
1288    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
1289
1290    export TEST_NAME="SHORT_NOAGRIF"
1291    cd ${CONFIG_DIR}
1292    . ./makenemo -m ${CMP_NAM} -n ORCA2AGUL_2_2_NAG -r ORCA2_LIM -j 8 del_key "key_zdftmx" del_key ${DEL_KEYS}
1293    cd ${SETTE_DIR}
1294    . ./param.cfg
1295    . ./all_functions.sh
1296    . ./prepare_exe_dir.sh
1297    JOB_FILE=${EXE_DIR}/run_job.sh
1298    NPROC=4
1299    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
1300    cd ${EXE_DIR}
1301    set_namelist namelist_cfg nn_it000 1
1302    set_namelist namelist_cfg nn_itend 75
1303    set_namelist namelist_cfg ln_ctl .false.
1304    set_namelist namelist_cfg ln_clobber .true.
1305    set_namelist namelist_cfg ln_read_cfg .true.
1306    set_namelist namelist_cfg ln_linssh .true.
1307    set_namelist namelist_cfg ln_hpg_sco .false.
1308    set_namelist namelist_cfg ln_hpg_zps .true.
1309    set_namelist namelist_cfg nn_fwb 0
1310    set_namelist namelist_cfg jpni 2
1311    set_namelist namelist_cfg jpnj 2
1312    set_namelist namelist_cfg jpnij 4
1313#
1314    if [ ${USING_MPMD} == "yes" ] ; then
1315       set_xio_using_server iodef.xml true
1316    else
1317       set_xio_using_server iodef.xml false
1318    fi
1319    cd ${SETTE_DIR}
1320    . ./prepare_job.sh input_ORCA2_LIM_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
1321    cd ${SETTE_DIR}
1322    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
1323
1324fi
1325
1326## Restartability tests for ORCA2_LIM_AGRIF
1327if [ ${config} -eq 17 ] ;  then
1328    export TEST_NAME="LONG"
1329    cd ${CONFIG_DIR}
1330    . ./makenemo -m ${CMP_NAM} -n ORCA2AGUL_LONG -r ORCA2_LIM -j 8 add_key "key_agrif" del_key "key_zdftmx" del_key ${DEL_KEYS}
1331    cd ${SETTE_DIR}
1332    . ./param.cfg
1333    . ./all_functions.sh
1334    . ./prepare_exe_dir.sh
1335    JOB_FILE=${EXE_DIR}/run_job.sh
1336    NPROC=4
1337    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
1338    cd ${EXE_DIR}
1339    set_namelist namelist_cfg cn_exp \"O2LP_LONG\"
1340    set_namelist namelist_cfg nn_it000 1
1341    set_namelist namelist_cfg nn_itend 150
1342    set_namelist namelist_cfg nn_stock 75
1343    set_namelist namelist_cfg ln_clobber .true.
1344    set_namelist namelist_cfg ln_read_cfg .true.
1345    set_namelist namelist_cfg ln_linssh .true.
1346    set_namelist namelist_cfg ln_hpg_sco .false.
1347    set_namelist namelist_cfg ln_hpg_zps .true.
1348    set_namelist namelist_cfg nn_fwb 0
1349    set_namelist namelist_cfg jpni 2
1350    set_namelist namelist_cfg jpnj 2
1351    set_namelist namelist_cfg jpnij 4
1352    set_namelist 1_namelist_cfg cn_exp \"O2LP_LONG\"
1353    set_namelist 1_namelist_cfg nn_it000 1
1354    set_namelist 1_namelist_cfg nn_itend 300
1355    set_namelist 1_namelist_cfg nn_stock 150
1356    set_namelist 1_namelist_cfg ln_ctl .false.
1357    set_namelist 1_namelist_cfg ln_clobber .true.
1358    set_namelist 1_namelist_cfg ln_read_cfg .true.
1359    set_namelist 1_namelist_cfg ln_linssh .true.
1360    set_namelist 1_namelist_cfg ln_hpg_sco .false.
1361    set_namelist 1_namelist_cfg ln_hpg_zps .true.
1362#
1363    if [ ${USING_MPMD} == "yes" ] ; then
1364       set_xio_using_server iodef.xml true
1365    else
1366       set_xio_using_server iodef.xml false
1367    fi
1368    cd ${SETTE_DIR}
1369    . ./prepare_job.sh input_ORCA2_LIM_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
1370   
1371    cd ${SETTE_DIR}
1372    export TEST_NAME="SHORT"
1373    . ./prepare_exe_dir.sh
1374    cd ${EXE_DIR}
1375    set_namelist namelist_cfg cn_exp \"O2LP_SHORT\"
1376    set_namelist namelist_cfg nn_it000 76
1377    set_namelist namelist_cfg nn_itend 150
1378    set_namelist namelist_cfg nn_stock 75
1379    set_namelist namelist_cfg ln_rstart .true.
1380    set_namelist namelist_cfg nn_rstctl 2
1381    set_namelist namelist_cfg ln_clobber .true.
1382    set_namelist namelist_cfg ln_read_cfg .true.
1383    set_namelist namelist_cfg ln_linssh .true.
1384    set_namelist namelist_cfg ln_hpg_sco .false.
1385    set_namelist namelist_cfg ln_hpg_zps .true.
1386    set_namelist namelist_cfg nn_fwb 0
1387    set_namelist namelist_cfg jpni 2
1388    set_namelist namelist_cfg jpnj 2
1389
1390    set_namelist namelist_cfg jpnij 4
1391#   set_namelist namelist_cfg nn_solv 2
1392    set_namelist 1_namelist_cfg cn_exp \"O2LP_SHORT\"
1393    set_namelist 1_namelist_cfg nn_it000 151
1394    set_namelist 1_namelist_cfg nn_itend 300
1395    set_namelist 1_namelist_cfg nn_stock 150
1396    set_namelist 1_namelist_cfg ln_rstart .true.
1397    set_namelist 1_namelist_cfg nn_rstctl 2
1398    set_namelist 1_namelist_cfg ln_clobber .true.
1399    set_namelist 1_namelist_cfg ln_read_cfg .true.
1400    set_namelist 1_namelist_cfg ln_linssh .true.
1401    set_namelist 1_namelist_cfg ln_hpg_sco .false.
1402    set_namelist 1_namelist_cfg ln_hpg_zps .true.
1403    set_namelist namelist_cfg cn_ocerst_in \"O2LP_LONG_00000075_restart\"
1404    set_namelist namelist_ice_cfg cn_icerst_in \"O2LP_LONG_00000075_restart_ice\"
1405
1406    set_namelist 1_namelist_cfg cn_ocerst_in \"O2LP_LONG_00000150_restart\"
1407
1408    for (( i=1; i<=$NPROC; i++)) ; do
1409        L_NPROC=$(( $i - 1 ))
1410        L_NPROC=`printf "%04d\n" ${L_NPROC}`
1411        ln -sf ../LONG/O2LP_LONG_00000075_restart_${L_NPROC}.nc .
1412        ln -sf ../LONG/O2LP_LONG_00000075_restart_ice_${L_NPROC}.nc .
1413        ln -sf ../LONG/1_O2LP_LONG_00000150_restart_${L_NPROC}.nc .
1414    done
1415    if [ ${USING_MPMD} == "yes" ] ; then
1416       set_xio_using_server iodef.xml true
1417    else
1418       set_xio_using_server iodef.xml false
1419    fi
1420    cd ${SETTE_DIR}
1421    . ./prepare_job.sh input_ORCA2_LIM_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
1422    cd ${SETTE_DIR}
1423    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
1424fi
1425
1426## Reproducibility tests for ORCA2_LIM_AGRIF
1427if [ ${config} -eq 18 ] ;  then
1428    export TEST_NAME="REPRO_4_4"
1429    cd ${CONFIG_DIR}
1430    . ./makenemo -m ${CMP_NAM} -n ORCA2AGUL_16 -r ORCA2_LIM -j 8 add_key "key_agrif" del_key "key_zdftmx" del_key ${DEL_KEYS}
1431    cd ${SETTE_DIR}
1432    . ./param.cfg
1433    . ./all_functions.sh
1434    . ./prepare_exe_dir.sh
1435    JOB_FILE=${EXE_DIR}/run_job.sh
1436    NPROC=16
1437    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
1438    cd ${EXE_DIR}
1439    set_namelist namelist_cfg nn_it000 1
1440    set_namelist namelist_cfg nn_itend 75
1441    set_namelist namelist_cfg ln_ctl .false.
1442    set_namelist namelist_cfg ln_clobber .true.
1443    set_namelist namelist_cfg ln_read_cfg .true.
1444    set_namelist namelist_cfg ln_linssh .true.
1445    set_namelist namelist_cfg ln_hpg_sco .false.
1446    set_namelist namelist_cfg ln_hpg_zps .true.
1447    set_namelist namelist_cfg nn_fwb 0
1448    set_namelist namelist_cfg jpni 4
1449    set_namelist namelist_cfg jpnj 4
1450    set_namelist namelist_cfg jpnij 16
1451    set_namelist 1_namelist_cfg nn_it000 1
1452    set_namelist 1_namelist_cfg nn_itend 150
1453    set_namelist 1_namelist_cfg ln_ctl .false.
1454    set_namelist 1_namelist_cfg ln_clobber .true.
1455    set_namelist 1_namelist_cfg ln_read_cfg .true.
1456    set_namelist 1_namelist_cfg ln_linssh .true.
1457    set_namelist 1_namelist_cfg ln_hpg_sco .false.
1458    set_namelist 1_namelist_cfg ln_hpg_zps .true.
1459
1460    if [ ${USING_MPMD} == "yes" ] ; then
1461       set_xio_using_server iodef.xml true
1462    else
1463       set_xio_using_server iodef.xml false
1464    fi
1465    cd ${SETTE_DIR}
1466    . ./prepare_job.sh input_ORCA2_LIM_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
1467    cd ${SETTE_DIR}
1468    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
1469
1470    cd ${SETTE_DIR}
1471    export TEST_NAME="REPRO_2_8"
1472    . ./prepare_exe_dir.sh
1473    JOB_FILE=${EXE_DIR}/run_job.sh
1474    NPROC=16
1475    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
1476    cd ${EXE_DIR}
1477    set_namelist namelist_cfg nn_it000 1
1478    set_namelist namelist_cfg nn_itend 75
1479    set_namelist namelist_cfg ln_ctl .false.
1480    set_namelist namelist_cfg ln_clobber .true.
1481    set_namelist namelist_cfg ln_read_cfg .true.
1482    set_namelist namelist_cfg ln_linssh .true.
1483    set_namelist namelist_cfg ln_hpg_sco .false.
1484    set_namelist namelist_cfg ln_hpg_zps .true.
1485    set_namelist namelist_cfg nn_fwb 0
1486    set_namelist namelist_cfg jpni 2
1487    set_namelist namelist_cfg jpnj 8
1488    set_namelist namelist_cfg jpnij 16
1489    set_namelist 1_namelist_cfg nn_it000 1
1490    set_namelist 1_namelist_cfg nn_itend 150
1491    set_namelist 1_namelist_cfg ln_ctl .false.
1492    set_namelist 1_namelist_cfg ln_clobber .true.
1493    set_namelist 1_namelist_cfg ln_read_cfg .true.
1494    set_namelist 1_namelist_cfg ln_linssh .true.
1495    set_namelist 1_namelist_cfg ln_hpg_sco .false.
1496    set_namelist 1_namelist_cfg ln_hpg_zps .true.
1497
1498    if [ ${USING_MPMD} == "yes" ] ; then
1499       set_xio_using_server iodef.xml true
1500    else
1501       set_xio_using_server iodef.xml false
1502    fi
1503    cd ${SETTE_DIR}
1504    . ./prepare_job.sh input_ORCA2_LIM_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
1505    cd ${SETTE_DIR}
1506    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
1507fi
1508
1509done
Note: See TracBrowser for help on using the repository browser.