source: utils/CI/sette/sette_test-cases.sh @ 13790

Last change on this file since 13790 was 13790, checked in by acc, 10 months ago

Add -T option to sette.sh to set ln_timing true for all, non-AGRIF SETTE tests. Also archives timing.output files to the validation directory. Added first attempt at batch files for ARCHER2 (MPMD version still needs some work)

  • Property svn:executable set to *
File size: 33.8 KB
Line 
1#!/bin/bash
2############################################################
3# Author : Simona Flavoni for NEMO
4# Contact: sflod@locean-ipsl.upmc.fr
5#
6# sette_test-cases.sh   : principal script of SET TEsts for NEMO (SETTE)
7#                       : this script : compiles, run and tests TEST_CASES
8#
9#                       : TO DO: test if nitend is equal to end of run.stat
10# ----------------------------------------------------------------------
11# NEMO/SETTE , NEMO Consortium (2018)
12# Software governed by the CeCILL licence     (NEMOGCM/NEMO_CeCILL.txt)
13# ----------------------------------------------------------------------
14#
15#############################################################
16#set -vx
17set -o posix
18#set -u
19#set -e
20# ===========
21# DESCRIPTION
22# ===========
23#
24# Variables to be checked by user:
25#
26# COMPILER          : name of compiler as defined in NEMOGCM/ARCH directory
27# BATCH_COMMAND_PAR :  name of the command for submitting parallel batch jobs
28# BATCH_COMMAND_SEQ :  name of the command for submitting sequential batch jobs 
29# INTERACT_FLAG     : flag to run in interactive mode "yes"
30#                           to run in batch mode "no"
31# MPIRUN_FLAG       : flag to run in parallel (MPI) "yes"
32#                           to run in sequential mode (NB_PROC = 1) "no"
33# USING_XIOS        : flag to control the activation of key_iomput
34#                      "yes" to compile using key_iomput and link to the external XIOS library
35#                      "no"  to compile without key_iomput and link to the old IOIPSL library
36# USING_MPMD        : flag to control the use of stand-alone IO servers
37#                     requires USING_XIOS="yes"
38#                      "yes" to run in MPMD (detached) mode with stand-alone IO servers
39#                      "no"  to run in SPMD (attached) mode without separate IO servers
40# NUM_XIOSERVERS    : number of stand-alone IO servers to employ
41#                     set to zero if USING_MPMD="no"
42#
43# Principal script is sette_test-cases.sh, that calls
44#
45#  makenemo  : to create successive exectuables in ${CONFIG_NAME}/BLD/bin/nemo.exe
46#              and links to nemo in ${CONFIG_NAME}/EXP00)
47#
48#  param.cfg : sets and loads following directories:
49#              This will have been run by the parent sette.sh and values exported here
50#
51#   FORCING_DIR         : is the directory for forcing files (tarfile)
52#   INPUT_DIR           : is the directory for input files storing
53#   TMPDIR              : is the temporary directory (if needed)
54#   NEMO_VALIDATION_DIR : is the validation directory
55#
56#   (NOTE: this file is the same for all configrations to be tested with sette_test-cases.sh)
57#
58#   all_functions.sh : loads functions used by sette (note: new functions can be added here)
59#   set_namelist     : function declared in all_functions that sets namelist parameters
60#   post_test_tidyup : creates validation storage directory and copies required output files
61#                      (run.stat and ocean.output) in it after execution of test.
62#
63#  VALIDATION tree is:
64#
65#   NEMO_VALIDATION_DIR/WCONFIG_NAME/WCOMPILER_NAME/TEST_NAME/REVISION_NUMBER(or DATE)
66#
67#  prepare_exe_dir.sh : defines and creates directory where the test is executed
68#                       execution directory takes name of TEST_NAME defined for every test
69#                       in sette_test-cases.sh. (each test in executed in its own directory)
70#
71#  set_valid_dir       : rename ocean.output/run.stat and tracer.stat to avoid checking them in the report
72#
73#  clean_valid_dir    : rename ocean.output/run.stat and tracer.stat to avoid checking them in the report
74#                       ( not doing it could lead to false positive )
75#
76#  prepare_job.sh     : to generate the script run_job.sh
77#
78#  fcm_job.sh         : run in batch (INTERACT_FLAG="no") or interactive (INTERACT_FLAG="yes")
79#                        see sette_test-cases.sh and BATCH_TEMPLATE directory
80#
81#  NOTE: jobs requiring initial or forcing data need to have an input_CONFIG.cfg in which
82#        can be found paths to the input tar file)
83#  NOTE: if job is not launched for any reason you have the executable ready in ${EXE_DIR}
84#        directory
85#  NOTE: the changed namelists are left in ${EXE_DIR} directory whereas original namelists
86#        remain in ${NEW_CONF}/EXP00
87#
88#  NOTE: a log file, output.sette, is created in ${SETTE_DIR} with the echoes of
89#        executed commands
90#
91#  NOTE: if sette_test-cases.sh is stopped in output.sette there is written the last command
92#        executed by sette_test-cases.sh
93#
94# example use: ./sette_test-cases.sh
95#########################################################################################
96#
97# LOAD param value
98SETTE_DIR=$(cd $(dirname "$0"); pwd)
99MAIN_DIR=$(dirname $SETTE_DIR)
100
101export BATCH_COMMAND_PAR=${BATCH_CMD}
102export BATCH_COMMAND_SEQ=${BATCH_CMD}
103export INTERACT_FLAG="no"
104export MPIRUN_FLAG="yes"
105#
106export ADD_KEYS=""
107export DEL_KEYS=""
108if [ ${USING_XIOS} == "yes" ] 
109 then
110   export ADD_KEYS="${ADD_KEYS} key_iomput"
111 else
112   export DEL_KEYS="${DEL_KEYS} key_iomput"
113fi
114#
115if [ ${ADD_NOSIGNEDZERO} == "yes" ]
116 then
117   export ADD_KEYS="${ADD_KEYS} key_nosignedzero"
118 else
119   export DEL_KEYS="${DEL_KEYS} key_nosignedzero" 
120fi
121#
122# Settings which control the use of stand alone servers (only relevant if using xios)
123#
124export NUM_XIOSERVERS=4
125export JOB_PREFIX=${JOB_PREFIX_MPMD}
126#
127if [ ${USING_MPMD} == "no" ] 
128 then
129   export NUM_XIOSERVERS=0
130   export JOB_PREFIX=${JOB_PREFIX_NOMPMD}
131fi
132#
133#
134if [ ${USING_MPMD} == "yes" ] && [ ${USING_XIOS} == "no" ]
135 then
136   echo "Incompatible choices. MPMD mode requires the XIOS server"
137   exit
138fi
139
140# Directory to run the tests
141CONFIG_DIR0=${MAIN_DIR}/cfgs
142TOOLS_DIR=${MAIN_DIR}/tools
143
144CMP_NAM=${1:-$COMPILER}
145# Copy job_batch_COMPILER file for specific compiler into job_batch_template
146cd ${SETTE_DIR}
147cp BATCH_TEMPLATE/${JOB_PREFIX}-${COMPILER} job_batch_template || exit
148# Description of configuration tested:
149# OVERFLOW       : TEST s-coordinates : (tracers) Advection schemes: FCT2, FCT4, ubs
150#                                     & (dynamics) advection schemes: flux form (ubs, centered), vector form (een)
151#                       zps-coordinates : (tracers) Advection schemes: FCT2, FCT4, ubs
152#                                     & (dynamics) advection schemes: flux form (ubs, centered), vector form (een, and een + Hollingsworth correction)
153# LOCK_EXCHANGE  :
154# VORTEX         :
155# ICE_AGRIF      :
156# ISOMIP+         :
157# WAD
158
159for config in ${TEST_CONFIGS[@]}
160do
161
162# ---------
163#  OVERFLOW
164# ---------
165if [ ${config} == "OVERFLOW" ] && [ ${DO_RESTART} == "1" ] ;  then
166    ## Restartability tests for OVERFLOW
167    if [ $( echo ${CMP_NAM} | grep -ic debug ) -eq 1 ]
168    then
169   ITEND=12
170    else
171   ITEND=120
172    fi
173    ITRST=$( printf "%08d" $(( ${ITEND} / 2 )) )
174    export TEST_NAME="LONG"
175    cd ${MAIN_DIR}
176    #
177    . ${SETTE_DIR}/all_functions.sh
178    #
179    clean_config OVERFLOW OVERFLOW_ST 'tests'
180    #
181    sync_config  OVERFLOW OVERFLOW_ST 'tests'
182    #
183    . ./makenemo -m ${CMP_NAM} -n OVERFLOW_ST -a OVERFLOW -j 8 add_key "${ADD_KEYS}" del_key "${DEL_KEYS}"
184    cd ${SETTE_DIR}
185    . ./param.cfg
186    . ./all_functions.sh
187    . ./prepare_exe_dir.sh
188    set_valid_dir
189    clean_valid_dir
190    JOB_FILE=${EXE_DIR}/run_job.sh
191    NPROC=1
192    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
193    cd ${EXE_DIR} 
194    set_namelist namelist_cfg cn_exp \"OVF_LONG\"
195    set_namelist namelist_cfg nn_it000 1
196    set_namelist namelist_cfg nn_itend ${ITEND}
197    set_namelist namelist_cfg nn_stock $(( ${ITEND} / 2 ))
198    set_namelist namelist_cfg sn_cfctl%l_runstat .true.
199    if [ ${SETTE_TIMING} == "yes" ]  ; then set_namelist namelist_cfg ln_timing .true. ; fi
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    cd ${SETTE_DIR}
206    . ./prepare_job.sh input_EMPTY.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID}
207
208    cd ${SETTE_DIR}
209    export TEST_NAME="SHORT"
210    . ./prepare_exe_dir.sh
211    set_valid_dir
212    clean_valid_dir
213    cd ${EXE_DIR}
214    set_namelist namelist_cfg cn_exp \"OVF_SHORT\"
215    set_namelist namelist_cfg nn_it000 $(( ${ITEND} / 2 + 1 ))
216    set_namelist namelist_cfg nn_itend ${ITEND}
217    set_namelist namelist_cfg nn_stock $(( ${ITEND} / 2 ))
218    set_namelist namelist_cfg sn_cfctl%l_runstat .true.
219    set_namelist namelist_cfg ln_rstart .true.
220    set_namelist namelist_cfg nn_rstctl 2
221    set_namelist namelist_cfg cn_ocerst_in \"OVF_LONG_${ITRST}_restart\"
222    if [ ${SETTE_TIMING} == "yes" ]  ; then set_namelist namelist_cfg ln_timing .true. ; fi
223    if [ ${USING_MPMD} == "yes" ] ; then
224       set_xio_using_server iodef.xml true
225    else
226       set_xio_using_server iodef.xml false
227    fi
228    ln -sf ../LONG/OVF_LONG_${ITRST}_restart.nc .
229
230    cd ${SETTE_DIR}
231    . ./prepare_job.sh input_EMPTY.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID}
232    cd ${SETTE_DIR}
233    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
234
235
236fi
237
238if [ ${config} == "OVERFLOW" ] && [ ${DO_PHYOPTS} == "1" ] ;  then
239    ## Test for all advection, vert. coordinates, vector form, flux form: test runability and complete all time steps
240    ## Needed namelist-xxxx for every type of run tested
241    if [ $( echo ${CMP_NAM} | grep -ic debug ) -eq 1 ]
242    then
243   ITEND=12
244    else
245   ITEND=6120
246    fi
247    cd ${CONFIG_DIR}/${NEW_CONF}/EXP00
248
249    for file in $(echo `ls namelist_*_cfg `) ; do
250        TEST_NAME=`echo $file | sed -e "s/namelist_//" | sed -e "s/_cfg//"`
251        TEST_NAME="EXP-${TEST_NAME}"
252        if [ ! -d ${CONFIG_DIR}/${NEW_CONF}/${TEST_NAME} ] ; then mkdir ${CONFIG_DIR}/${NEW_CONF}/${TEST_NAME} ; fi
253        export TEST_NAME="${TEST_NAME}"
254         ##
255        cd ${SETTE_DIR}
256        . ./param.cfg
257        . ./all_functions.sh
258        . ./prepare_exe_dir.sh
259        set_valid_dir
260        clean_valid_dir
261        JOB_FILE=${EXE_DIR}/run_job.sh
262        NPROC=1
263        if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
264        cd ${EXE_DIR}
265        rm namelist_*_*_*_*
266        cp -pL ${CONFIG_DIR}/${NEW_CONF}/EXP00/$file namelist_cfg
267   set_namelist namelist_cfg nn_it000 1
268   set_namelist namelist_cfg nn_itend ${ITEND}
269        if [ ${SETTE_TIMING} == "yes" ]  ; then set_namelist namelist_cfg ln_timing .true. ; fi
270        if [ ${USING_MPMD} == "yes" ] ; then
271           set_xio_using_server iodef.xml true
272        else
273           set_xio_using_server iodef.xml false
274        fi
275        cd ${SETTE_DIR}
276        . ./prepare_job.sh input_EMPTY.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID}
277        cd ${SETTE_DIR}
278        . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
279       ##
280     done
281fi
282
283# --------------
284#  LOCK_EXCHANGE
285# --------------
286if [ ${config} == "LOCK_EXCHANGE" ] && [ ${DO_RESTART} == "1" ] ;  then
287    ## Restartability tests for LOCK_EXCHANGE
288    if [ $( echo ${CMP_NAM} | grep -ic debug ) -eq 1 ]
289    then
290   ITEND=12
291    else
292   ITEND=120
293    fi
294    ITRST=$( printf "%08d" $(( ${ITEND} / 2 )) )
295    export TEST_NAME="LONG"
296    cd ${MAIN_DIR}
297    #
298    # syncronisation if target directory/file exist (not done by makenemo)
299    . ${SETTE_DIR}/all_functions.sh
300    #
301    clean_config LOCK_EXCHANGE LOCK_EXCHANGE_ST 'tests'
302    #
303    sync_config  LOCK_EXCHANGE LOCK_EXCHANGE_ST 'tests'
304    #
305    . ./makenemo -m ${CMP_NAM} -n LOCK_EXCHANGE_ST -a LOCK_EXCHANGE -j 8 add_key "${ADD_KEYS}" del_key "${DEL_KEYS}"
306    cd ${SETTE_DIR}
307    . ./param.cfg
308    . ./all_functions.sh
309    . ./prepare_exe_dir.sh
310    set_valid_dir
311    clean_valid_dir
312    JOB_FILE=${EXE_DIR}/run_job.sh
313    NPROC=1
314    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
315    cd ${EXE_DIR}
316    set_namelist namelist_cfg cn_exp \"LOCK_LONG\"
317    set_namelist namelist_cfg nn_it000 1
318    set_namelist namelist_cfg nn_itend ${ITEND}
319    set_namelist namelist_cfg nn_stock $(( ${ITEND} / 2 ))
320    set_namelist namelist_cfg sn_cfctl%l_runstat .true.
321    if [ ${SETTE_TIMING} == "yes" ]  ; then set_namelist namelist_cfg ln_timing .true. ; fi
322    if [ ${USING_MPMD} == "yes" ] ; then
323       set_xio_using_server iodef.xml true
324    else
325       set_xio_using_server iodef.xml false
326    fi
327    cd ${SETTE_DIR}
328    . ./prepare_job.sh input_EMPTY.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID}
329
330    cd ${SETTE_DIR}
331    export TEST_NAME="SHORT"
332    . ./prepare_exe_dir.sh
333    set_valid_dir
334    clean_valid_dir
335    cd ${EXE_DIR}
336    set_namelist namelist_cfg cn_exp \"LOCK_SHORT\"
337    set_namelist namelist_cfg nn_it000 $(( ${ITEND} / 2 + 1 ))
338    set_namelist namelist_cfg nn_itend ${ITEND}
339    set_namelist namelist_cfg nn_stock $(( ${ITEND} / 2 ))
340    set_namelist namelist_cfg sn_cfctl%l_runstat .true.
341    set_namelist namelist_cfg ln_rstart .true.
342    set_namelist namelist_cfg nn_rstctl 2
343    set_namelist namelist_cfg cn_ocerst_in \"LOCK_LONG_${ITRST}_restart\"
344    if [ ${SETTE_TIMING} == "yes" ]  ; then set_namelist namelist_cfg ln_timing .true. ; fi
345    if [ ${USING_MPMD} == "yes" ] ; then
346       set_xio_using_server iodef.xml true
347    else
348       set_xio_using_server iodef.xml false
349    fi
350    ln -sf ../LONG/LOCK_LONG_${ITRST}_restart.nc .
351
352    cd ${SETTE_DIR}
353    . ./prepare_job.sh input_EMPTY.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID}
354    cd ${SETTE_DIR}
355    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
356
357fi
358
359if [ ${config} == "LOCK_EXCHANGE" ] && [ ${DO_PHYOPTS} == "1" ] ;  then
360    ## Test for all advection, vector form, flux form: test runability and complete all time steps
361    ## Needed namelist-xxxx for every type of run tested
362    if [ $( echo ${CMP_NAM} | grep -ic debug ) -eq 1 ]
363    then
364   ITEND=12
365    else
366   ITEND=61200
367    fi
368    cd ${CONFIG_DIR}/${NEW_CONF}/EXP00
369
370    for file in $(echo `ls namelist_*_cfg `) ; do
371        echo ''
372        TEST_NAME=`echo $file | sed -e "s/namelist_//" | sed -e "s/_cfg//"`
373        TEST_NAME="EXP-${TEST_NAME}"
374        `mkdir ${CONFIG_DIR}/${NEW_CONF}/${TEST_NAME}`
375        export TEST_NAME="${TEST_NAME}"
376        ## 
377        cd ${SETTE_DIR}
378        . ./param.cfg
379        . ./all_functions.sh
380        . ./prepare_exe_dir.sh
381        set_valid_dir
382        clean_valid_dir
383        JOB_FILE=${EXE_DIR}/run_job.sh
384        NPROC=1
385        if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
386        cd ${EXE_DIR}
387        rm namelist_*_*_*_*
388        cp -pL ${CONFIG_DIR}/${NEW_CONF}/EXP00/$file namelist_cfg
389        if [ ${SETTE_TIMING} == "yes" ]  ; then set_namelist namelist_cfg ln_timing .true. ; fi
390   set_namelist namelist_cfg nn_it000 1
391        set_namelist namelist_cfg nn_itend ${ITEND}
392        if [ ${USING_MPMD} == "yes" ] ; then
393           set_xio_using_server iodef.xml true
394        else
395           set_xio_using_server iodef.xml false
396        fi
397        cd ${SETTE_DIR}
398        . ./prepare_job.sh input_EMPTY.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID}
399        cd ${SETTE_DIR}
400        . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
401        ##
402        echo ''
403   done
404fi
405
406# ---------
407# VORTEX
408# ---------
409if [ ${config} == "VORTEX" ] && [ ${DO_RESTART} == "1" ] ;  then
410## Restartability tests for VORTEX
411    if [ $( echo ${CMP_NAM} | grep -ic debug ) -eq 1 ]
412    then
413   ITEND=12
414    else
415   ITEND=240
416    fi
417    ITRST=$(   printf "%08d" $(( ${ITEND} / 2 )) )
418    ITRST_1=$( printf "%08d" $(( ${ITEND} * 3 / 2 )) )
419    export TEST_NAME="LONG"
420    cd ${MAIN_DIR}
421    #
422    # syncronisation if target directory/file exist (not done by makenemo)
423    . ${SETTE_DIR}/all_functions.sh
424    #
425    clean_config VORTEX VORTEX_ST 'tests'
426    #
427    sync_config  VORTEX VORTEX_ST 'tests'
428    #
429    . ./makenemo -m ${CMP_NAM} -n VORTEX_ST -a VORTEX -j 8  add_key "${ADD_KEYS}" del_key "${DEL_KEYS}"
430    cd ${SETTE_DIR}
431    . ./param.cfg
432    . ./all_functions.sh
433    . ./prepare_exe_dir.sh
434    set_valid_dir
435    clean_valid_dir
436    JOB_FILE=${EXE_DIR}/run_job.sh
437    NPROC=6
438    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
439    cd ${EXE_DIR}
440    set_namelist namelist_cfg cn_exp \"VORTEX_LONG\"
441    set_namelist namelist_cfg nn_it000 1
442    set_namelist namelist_cfg nn_itend ${ITEND}
443    set_namelist namelist_cfg nn_stock $(( ${ITEND} / 2 ))
444    set_namelist namelist_cfg sn_cfctl%l_runstat .true. 
445
446    set_namelist 1_namelist_cfg cn_exp \"VORTEX_LONG\"
447    set_namelist 1_namelist_cfg nn_it000 1
448    set_namelist 1_namelist_cfg nn_itend $(( ${ITEND} * 3 ))
449    set_namelist 1_namelist_cfg nn_stock $(( ${ITEND} * 3 / 2 ))
450    set_namelist 1_namelist_cfg sn_cfctl%l_runstat .true.
451   
452    #if [ ${SETTE_TIMING} == "yes" ]  ; then set_namelist namelist_cfg ln_timing .true. ; fi
453    if [ ${USING_MPMD} == "yes" ] ; then
454        set_xio_using_server iodef.xml true
455    else
456        set_xio_using_server iodef.xml false
457    fi
458    cd ${SETTE_DIR}
459    . ./prepare_job.sh input_EMPTY.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID}
460   
461    cd ${SETTE_DIR}
462    export TEST_NAME="SHORT"
463    . ./prepare_exe_dir.sh
464    set_valid_dir
465    clean_valid_dir
466    cd ${EXE_DIR}
467    set_namelist namelist_cfg cn_exp \"VORTEX_SHORT\"
468    set_namelist namelist_cfg nn_it000 $(( ${ITEND} / 2 + 1 ))
469    set_namelist namelist_cfg nn_itend ${ITEND}
470    set_namelist namelist_cfg nn_stock $(( ${ITEND} / 2 ))
471    set_namelist namelist_cfg sn_cfctl%l_runstat .true.
472    set_namelist namelist_cfg ln_rstart .true.
473    set_namelist namelist_cfg nn_rstctl 2
474    set_namelist namelist_cfg cn_ocerst_in \"VORTEX_LONG_${ITRST}_restart\"
475   
476    set_namelist 1_namelist_cfg cn_exp \"VORTEX_SHORT\"
477    set_namelist 1_namelist_cfg nn_it000 $(( ${ITEND} * 3 / 2 + 1 ))
478    set_namelist 1_namelist_cfg nn_itend $(( ${ITEND} * 3 ))
479    set_namelist 1_namelist_cfg nn_stock $(( ${ITEND} * 3 / 2 ))
480    set_namelist 1_namelist_cfg sn_cfctl%l_runstat .true.
481    set_namelist 1_namelist_cfg ln_rstart .true.
482    set_namelist 1_namelist_cfg nn_rstctl 2
483    set_namelist 1_namelist_cfg cn_ocerst_in \"VORTEX_LONG_${ITRST_1}_restart\"
484     
485    #if [ ${SETTE_TIMING} == "yes" ]  ; then set_namelist namelist_cfg ln_timing .true. ; fi
486    if [ ${USING_MPMD} == "yes" ] ; then
487        set_xio_using_server iodef.xml true
488    else
489        set_xio_using_server iodef.xml false
490    fi
491    if [ $NPROC -eq 1 ] ;  then
492        ln -sf ../LONG/VORTEX_LONG_${ITRST}_restart.nc .
493        ln -sf ../LONG/1_VORTEX_LONG_${ITRST_1}_restart.nc .
494    else
495        for (( i=1; i<=$NPROC; i++)) ; do
496            L_NPROC=$(( $i - 1 ))
497            L_NPROC=`printf "%04d\n" ${L_NPROC}`
498            ln -sf ../LONG/VORTEX_LONG_${ITRST}_restart_${L_NPROC}.nc .
499            ln -sf ../LONG/1_VORTEX_LONG_${ITRST_1}_restart_${L_NPROC}.nc .
500        done
501    fi
502    cd ${SETTE_DIR}
503    . ./prepare_job.sh input_EMPTY.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID}
504    cd ${SETTE_DIR}
505    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
506fi
507
508if [ ${config} == "VORTEX" ] && [ ${DO_REPRO} == "1" ] ;  then
509
510## Reproducibility tests for VORTEX
511    export TEST_NAME="REPRO_2_3"
512    cd ${MAIN_DIR}
513    cd ${SETTE_DIR}
514    . ./param.cfg
515    . ./all_functions.sh
516    . ./prepare_exe_dir.sh
517    set_valid_dir
518    clean_valid_dir
519    JOB_FILE=${EXE_DIR}/run_job.sh
520    NPROC=6
521    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
522    cd ${EXE_DIR}
523    set_namelist namelist_cfg cn_exp \"VORTEX_23\"
524    set_namelist namelist_cfg nn_it000 1
525    set_namelist namelist_cfg nn_itend ${ITEND}
526    set_namelist namelist_cfg nn_stock ${ITEND}
527    set_namelist namelist_cfg jpni 2
528    set_namelist namelist_cfg jpnj 3
529    set_namelist namelist_cfg sn_cfctl%l_runstat .true.
530   
531    set_namelist 1_namelist_cfg cn_exp \"VORTEX_23\"
532    set_namelist 1_namelist_cfg nn_it000 1
533    set_namelist 1_namelist_cfg nn_itend $(( ${ITEND} * 3 ))
534    set_namelist 1_namelist_cfg nn_stock $(( ${ITEND} * 3 ))
535    set_namelist 1_namelist_cfg jpni 2
536    set_namelist 1_namelist_cfg jpnj 3
537    set_namelist 1_namelist_cfg sn_cfctl%l_runstat .true.
538
539    #if [ ${SETTE_TIMING} == "yes" ]  ; then set_namelist namelist_cfg ln_timing .true. ; fi
540    if [ ${USING_MPMD} == "yes" ] ; then
541       set_xio_using_server iodef.xml true
542    else
543       set_xio_using_server iodef.xml false
544    fi
545    cd ${SETTE_DIR}
546    . ./prepare_job.sh input_EMPTY.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID}
547    cd ${SETTE_DIR}
548    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
549
550    cd ${SETTE_DIR}
551    export TEST_NAME="REPRO_3_2"
552    . ./prepare_exe_dir.sh
553    set_valid_dir
554    clean_valid_dir
555    JOB_FILE=${EXE_DIR}/run_job.sh
556    NPROC=6
557    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
558    cd ${EXE_DIR}
559
560    set_namelist namelist_cfg cn_exp \"VORTEX_32\"
561    set_namelist namelist_cfg nn_it000 1
562    set_namelist namelist_cfg nn_itend ${ITEND}
563    set_namelist namelist_cfg nn_stock ${ITEND}
564    set_namelist namelist_cfg jpni 3
565    set_namelist namelist_cfg jpnj 2
566    set_namelist namelist_cfg sn_cfctl%l_runstat .true.
567
568    set_namelist 1_namelist_cfg cn_exp \"VORTEX_32\"
569    set_namelist 1_namelist_cfg nn_it000 1
570    set_namelist 1_namelist_cfg nn_itend $(( ${ITEND} * 3 ))
571    set_namelist 1_namelist_cfg nn_stock $(( ${ITEND} * 3 ))
572    set_namelist 1_namelist_cfg jpni 3
573    set_namelist 1_namelist_cfg jpnj 2
574    set_namelist 1_namelist_cfg sn_cfctl%l_runstat .true.
575
576    #if [ ${SETTE_TIMING} == "yes" ]  ; then set_namelist namelist_cfg ln_timing .true. ; fi
577    if [ ${USING_MPMD} == "yes" ] ; then
578       set_xio_using_server iodef.xml true
579    else
580       set_xio_using_server iodef.xml false
581    fi
582    cd ${SETTE_DIR}
583    . ./prepare_job.sh input_EMPTY.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID}
584    cd ${SETTE_DIR}
585    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
586
587fi
588
589
590# ---------
591# ICE_AGRIF
592# ---------
593if [ ${config} == "ICE_AGRIF" ] && [ ${DO_RESTART} == "1" ] ;  then
594## Restartability tests for ICE_AGRIF
595    if [ $( echo ${CMP_NAM} | grep -ic debug ) -eq 1 ]
596    then
597   ITEND=10
598    else
599   ITEND=200
600    fi
601    ITRST=$(   printf "%08d" $(( ${ITEND} / 2 )) )
602    ITRST_1=$( printf "%08d" $(( ${ITEND} * 3 / 2 )) )
603    export TEST_NAME="LONG"
604    cd ${MAIN_DIR}
605    #
606    # syncronisation if target directory/file exist (not done by makenemo)
607    . ${SETTE_DIR}/all_functions.sh
608    #
609    clean_config ICE_AGRIF ICE_AGRIF_ST 'tests'
610    #
611    sync_config  ICE_AGRIF ICE_AGRIF_ST 'tests'
612    #
613    . ./makenemo -m ${CMP_NAM} -n ICE_AGRIF_ST -a ICE_AGRIF -j 8  add_key "${ADD_KEYS}" del_key "${DEL_KEYS}"
614    cd ${SETTE_DIR}
615    . ./param.cfg
616    . ./all_functions.sh
617    . ./prepare_exe_dir.sh
618    set_valid_dir
619    clean_valid_dir
620    JOB_FILE=${EXE_DIR}/run_job.sh
621    NPROC=6
622    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
623    cd ${EXE_DIR}
624    set_namelist namelist_cfg cn_exp \"ICE_AGRIF_LONG\"
625    set_namelist namelist_cfg nn_it000 1
626    set_namelist namelist_cfg nn_itend ${ITEND}
627    set_namelist namelist_cfg nn_stock $(( ${ITEND} / 2 ))
628    set_namelist namelist_cfg sn_cfctl%l_runstat .true.
629   
630    set_namelist 1_namelist_cfg cn_exp \"ICE_AGRIF_LONG\"
631    set_namelist 1_namelist_cfg nn_it000 1
632    set_namelist 1_namelist_cfg nn_itend $(( ${ITEND} * 3 ))
633    set_namelist 1_namelist_cfg nn_stock $(( ${ITEND} * 3 / 2 ))
634    set_namelist 1_namelist_cfg sn_cfctl%l_runstat .true.
635   
636    #if [ ${SETTE_TIMING} == "yes" ]  ; then set_namelist namelist_cfg ln_timing .true. ; fi
637    if [ ${USING_MPMD} == "yes" ] ; then
638        set_xio_using_server iodef.xml true
639    else
640        set_xio_using_server iodef.xml false
641    fi
642    cd ${SETTE_DIR}
643    . ./prepare_job.sh input_ICE_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID}
644   
645    cd ${SETTE_DIR}
646    export TEST_NAME="SHORT"
647    . ./prepare_exe_dir.sh
648    set_valid_dir
649    clean_valid_dir
650    cd ${EXE_DIR}
651    set_namelist namelist_cfg cn_exp \"ICE_AGRIF_SHORT\"
652    set_namelist namelist_cfg nn_it000 $(( ${ITEND} / 2 + 1 ))
653    set_namelist namelist_cfg nn_itend ${ITEND}
654    set_namelist namelist_cfg nn_stock $(( ${ITEND} / 2 ))
655    set_namelist namelist_cfg sn_cfctl%l_runstat .true.
656    set_namelist namelist_cfg ln_rstart .true.
657    set_namelist namelist_cfg nn_rstctl 2
658    set_namelist namelist_cfg cn_ocerst_in \"ICE_AGRIF_LONG_${ITRST}_restart\"
659    set_namelist namelist_ice_cfg cn_icerst_in \"ICE_AGRIF_LONG_${ITRST}_restart_ice\"
660   
661    set_namelist 1_namelist_cfg cn_exp \"ICE_AGRIF_SHORT\"
662    set_namelist 1_namelist_cfg nn_it000 $(( ${ITEND} * 3 / 2 + 1 ))
663    set_namelist 1_namelist_cfg nn_itend $(( ${ITEND} * 3 ))
664    set_namelist 1_namelist_cfg nn_stock $(( ${ITEND} * 3 / 2 ))
665    set_namelist 1_namelist_cfg sn_cfctl%l_runstat .true.
666    set_namelist 1_namelist_cfg ln_rstart .true.
667    set_namelist 1_namelist_cfg nn_rstctl 2
668    set_namelist 1_namelist_cfg cn_ocerst_in \"ICE_AGRIF_LONG_${ITRST_1}_restart\"
669    set_namelist 1_namelist_ice_cfg cn_icerst_in \"ICE_AGRIF_LONG_${ITRST_1}_restart_ice\"
670   
671   
672    #if [ ${SETTE_TIMING} == "yes" ]  ; then set_namelist namelist_cfg ln_timing .true. ; fi
673    if [ ${USING_MPMD} == "yes" ] ; then
674        set_xio_using_server iodef.xml true
675    else
676        set_xio_using_server iodef.xml false
677    fi
678    if [ $NPROC -eq 1 ] ;  then
679        ln -sf ../LONG/ICE_AGRIF_LONG_${ITRST}_restart.nc .
680        ln -sf ../LONG/ICE_AGRIF_LONG_${ITRST}_restart_ice.nc .
681        ln -sf ../LONG/1_ICE_AGRIF_LONG_${ITRST_1}_restart.nc .
682        ln -sf ../LONG/1_ICE_AGRIF_LONG_${ITRST_1}_restart_ice.nc .
683    else
684        for (( i=1; i<=$NPROC; i++)) ; do
685            L_NPROC=$(( $i - 1 ))
686            L_NPROC=`printf "%04d\n" ${L_NPROC}`
687            ln -sf ../LONG/ICE_AGRIF_LONG_${ITRST}_restart_${L_NPROC}.nc .
688            ln -sf ../LONG/ICE_AGRIF_LONG_${ITRST}_restart_ice_${L_NPROC}.nc .
689            ln -sf ../LONG/1_ICE_AGRIF_LONG_${ITRST_1}_restart_${L_NPROC}.nc .
690            ln -sf ../LONG/1_ICE_AGRIF_LONG_${ITRST_1}_restart_ice_${L_NPROC}.nc .
691        done
692    fi
693
694    cd ${SETTE_DIR}
695    . ./prepare_job.sh input_ICE_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID}
696    cd ${SETTE_DIR}
697    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
698
699fi
700
701if [ ${config} == "ICE_AGRIF" ] && [ ${DO_REPRO} == "1" ] ;  then
702
703## Reproducibility tests for ICE_AGRIF
704    export TEST_NAME="REPRO_2_3"
705    cd ${MAIN_DIR}
706    cd ${SETTE_DIR}
707    . ./param.cfg
708    . ./all_functions.sh
709    . ./prepare_exe_dir.sh
710    set_valid_dir
711    clean_valid_dir
712    JOB_FILE=${EXE_DIR}/run_job.sh
713    NPROC=6
714    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
715    cd ${EXE_DIR}
716    set_namelist namelist_cfg cn_exp \"ICE_AGRIF_23\"
717    set_namelist namelist_cfg nn_it000 1
718    set_namelist namelist_cfg nn_itend ${ITEND}
719    set_namelist namelist_cfg nn_stock $(( ${ITEND} / 2 ))
720    set_namelist namelist_cfg jpni 2
721    set_namelist namelist_cfg jpnj 3
722    set_namelist namelist_cfg sn_cfctl%l_runstat .true.
723   
724    set_namelist 1_namelist_cfg cn_exp \"ICE_AGRIF_23\"
725    set_namelist 1_namelist_cfg nn_it000 1
726    set_namelist 1_namelist_cfg nn_itend $(( ${ITEND} * 3 ))
727    set_namelist 1_namelist_cfg nn_stock $(( ${ITEND} * 3 / 2 ))
728    set_namelist 1_namelist_cfg jpni 2
729    set_namelist 1_namelist_cfg jpnj 3
730    set_namelist 1_namelist_cfg sn_cfctl%l_runstat .true.
731
732    #if [ ${SETTE_TIMING} == "yes" ]  ; then set_namelist namelist_cfg ln_timing .true. ; fi
733    if [ ${USING_MPMD} == "yes" ] ; then
734       set_xio_using_server iodef.xml true
735    else
736       set_xio_using_server iodef.xml false
737    fi
738    cd ${SETTE_DIR}
739    . ./prepare_job.sh input_ICE_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID}
740    cd ${SETTE_DIR}
741    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
742
743    cd ${SETTE_DIR}
744    export TEST_NAME="REPRO_3_2"
745    . ./prepare_exe_dir.sh
746    set_valid_dir
747    clean_valid_dir
748    JOB_FILE=${EXE_DIR}/run_job.sh
749    NPROC=6
750    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
751    cd ${EXE_DIR}
752
753    set_namelist namelist_cfg cn_exp \"ICE_AGRIF_32\"
754    set_namelist namelist_cfg nn_it000 1
755    set_namelist namelist_cfg nn_itend ${ITEND}
756    set_namelist namelist_cfg nn_stock $(( ${ITEND} / 2 ))
757    set_namelist namelist_cfg jpni 3
758    set_namelist namelist_cfg jpnj 2
759    set_namelist namelist_cfg sn_cfctl%l_runstat .true.
760   
761    set_namelist 1_namelist_cfg cn_exp \"ICE_AGRIF_32\"
762    set_namelist 1_namelist_cfg nn_it000 1
763    set_namelist 1_namelist_cfg nn_itend $(( ${ITEND} * 3 ))
764    set_namelist 1_namelist_cfg nn_stock $(( ${ITEND} * 3 / 2 ))
765    set_namelist 1_namelist_cfg jpni 3
766    set_namelist 1_namelist_cfg jpnj 2
767    set_namelist 1_namelist_cfg sn_cfctl%l_runstat .true.
768   
769    #if [ ${SETTE_TIMING} == "yes" ]  ; then set_namelist namelist_cfg ln_timing .true. ; fi
770    if [ ${USING_MPMD} == "yes" ] ; then
771       set_xio_using_server iodef.xml true
772    else
773       set_xio_using_server iodef.xml false
774    fi
775    cd ${SETTE_DIR}
776    . ./prepare_job.sh input_ICE_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID}
777    cd ${SETTE_DIR}
778    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
779
780fi
781
782# ------
783# ISOMIP+
784# ------
785if [ ${config} == "ISOMIP+" ] && [ ${DO_RESTART} == "1" ] ;  then
786## Restartability tests
787    if [ $( echo ${CMP_NAM} | grep -ic debug ) -eq 1 ]
788    then
789   ITEND=12
790    else
791   ITEND=1200
792    fi
793    ITRST=$( printf "%08d" $(( ${ITEND} / 2 )) )
794    export TEST_NAME="LONG"
795    cd ${MAIN_DIR}
796    #
797    # syncronisation if target directory/file exist (not done by makenemo)
798    . ${SETTE_DIR}/all_functions.sh
799    #
800    clean_config ISOMIP+ ISOMIP+_ST 'tests'
801    #
802    sync_config  ISOMIP+ ISOMIP+_ST 'tests'
803    #
804    . ./makenemo -m ${CMP_NAM} -n ISOMIP+_ST -a ISOMIP+ -j 8 add_key "${ADD_KEYS}" del_key "${DEL_KEYS}"
805    cd ${SETTE_DIR}
806    . ./param.cfg
807    . ./all_functions.sh
808    . ./prepare_exe_dir.sh
809    set_valid_dir
810    clean_valid_dir
811    JOB_FILE=${EXE_DIR}/run_job.sh
812    NPROC=27
813    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
814    cd ${EXE_DIR}
815    set_namelist namelist_cfg cn_exp \"ISOMIP+_LONG\"
816    set_namelist namelist_cfg nn_it000 1
817    set_namelist namelist_cfg nn_itend ${ITEND}
818    set_namelist namelist_cfg nn_stock $(( ${ITEND} / 2 ))
819    set_namelist namelist_cfg jpni 9
820    set_namelist namelist_cfg jpnj 3
821    set_namelist namelist_cfg sn_cfctl%l_runstat .true.
822    if [ ${SETTE_TIMING} == "yes" ]  ; then set_namelist namelist_cfg ln_timing .true. ; fi
823    if [ ${USING_MPMD} == "yes" ] ; then
824       set_xio_using_server iodef.xml true
825    else
826       set_xio_using_server iodef.xml false
827    fi
828    cd ${SETTE_DIR}
829    . ./prepare_job.sh input_ISOMIP+.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID}
830
831    cd ${SETTE_DIR}
832    export TEST_NAME="SHORT"
833    . ./prepare_exe_dir.sh
834    set_valid_dir
835    clean_valid_dir
836    cd ${EXE_DIR}
837    set_namelist namelist_cfg cn_exp \"ISOMIP+_SHORT\"
838    set_namelist namelist_cfg nn_it000 $(( ${ITEND} / 2 + 1 ))
839    set_namelist namelist_cfg nn_itend ${ITEND}
840    set_namelist namelist_cfg nn_stock $(( ${ITEND} / 2 ))
841    set_namelist namelist_cfg ln_rstart .true.
842    set_namelist namelist_cfg nn_rstctl 2
843    set_namelist namelist_cfg jpni 9
844    set_namelist namelist_cfg jpnj 3
845    set_namelist namelist_cfg sn_cfctl%l_runstat .true.
846    set_namelist namelist_cfg cn_ocerst_in \"ISOMIP+_LONG_${ITRST}_restart\"
847    if [ ${SETTE_TIMING} == "yes" ]  ; then set_namelist namelist_cfg ln_timing .true. ; fi
848    if [ ${USING_MPMD} == "yes" ] ; then
849       set_xio_using_server iodef.xml true
850    else
851       set_xio_using_server iodef.xml false
852    fi
853    for (( i=1; i<=$NPROC; i++)) ; do
854        L_NPROC=$(( $i - 1 ))
855        L_NPROC=`printf "%04d\n" ${L_NPROC}`
856        ln -sf ../LONG/ISOMIP+_LONG_${ITRST}_restart_${L_NPROC}.nc .
857    done
858
859    cd ${SETTE_DIR}
860    . ./prepare_job.sh input_ISOMIP+.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID}
861    cd ${SETTE_DIR}
862    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
863
864fi
865
866if [ ${config} == "ISOMIP+" ] && [ ${DO_REPRO} == "1" ] ;  then
867## Reproducibility tests
868    if [ $( echo ${CMP_NAM} | grep -ic debug ) -eq 1 ]
869    then
870   ITEND=12
871    else
872   ITEND=600
873    fi
874    export TEST_NAME="REPRO_9_3"
875    cd ${MAIN_DIR}
876    cd ${SETTE_DIR}
877    . ./param.cfg
878    . ./all_functions.sh
879    . ./prepare_exe_dir.sh
880    set_valid_dir
881    clean_valid_dir
882    JOB_FILE=${EXE_DIR}/run_job.sh
883    NPROC=27
884    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
885    cd ${EXE_DIR}
886    set_namelist namelist_cfg cn_exp \"ISOMIP+_93\"
887    set_namelist namelist_cfg nn_it000 1
888    set_namelist namelist_cfg nn_itend ${ITEND}
889    set_namelist namelist_cfg jpni 9
890    set_namelist namelist_cfg jpnj 3
891    set_namelist namelist_cfg sn_cfctl%l_runstat .true.
892    if [ ${SETTE_TIMING} == "yes" ]  ; then set_namelist namelist_cfg ln_timing .true. ; fi
893    if [ ${USING_MPMD} == "yes" ] ; then
894       set_xio_using_server iodef.xml true
895    else
896       set_xio_using_server iodef.xml false
897    fi
898    cd ${SETTE_DIR}
899    . ./prepare_job.sh input_ISOMIP+.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID}
900    cd ${SETTE_DIR}
901    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
902
903    cd ${SETTE_DIR}
904    export TEST_NAME="REPRO_8_4"
905    . ./prepare_exe_dir.sh
906    set_valid_dir
907    clean_valid_dir
908    JOB_FILE=${EXE_DIR}/run_job.sh
909    NPROC=32
910    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
911    cd ${EXE_DIR}
912    set_namelist namelist_cfg cn_exp \"ISOMIP+_84\"
913    set_namelist namelist_cfg nn_it000 1
914    set_namelist namelist_cfg nn_itend ${ITEND}
915    set_namelist namelist_cfg jpni 8
916    set_namelist namelist_cfg jpnj 4
917    set_namelist namelist_cfg sn_cfctl%l_runstat .true.
918    if [ ${SETTE_TIMING} == "yes" ]  ; then set_namelist namelist_cfg ln_timing .true. ; fi
919    if [ ${USING_MPMD} == "yes" ] ; then
920       set_xio_using_server iodef.xml true
921    else
922       set_xio_using_server iodef.xml false
923    fi
924    cd ${SETTE_DIR}
925    . ./prepare_job.sh input_ISOMIP+.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID}
926    cd ${SETTE_DIR}
927    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
928
929fi
930
931#----
932done
933#
934# Return to SETTE_DIR (last fcm_job.sh will have moved to EXE_DIR)
935cd ${SETTE_DIR}
Note: See TracBrowser for help on using the repository browser.