New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
sette_test-cases.sh in utils/CI/sette – NEMO

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

Last change on this file since 13568 was 13568, checked in by acc, 4 years ago

Added some new controls for SETTE.

SETTE currently carries out several types of tests: restartability, reproducibility, code
corruption (agrif-related) and, in the case of LOCK_EXCHANGE and OVERFLOW, a series of
runs with different physical options. For quick checking, such as is now the default with
a *DEBUG* arch file, a subset of these tests may be appropriate. This commit provides
that possibility by introducing a new command line option to sette.sh. Without arguments
SETTE will carry out all tests labelled as: "RESTART REPRO CORRUPT PHYOPTS". The
explicit equivalent would be:

./sette.sh -x "RESTART REPRO CORRUPT PHYOPTS"

any subset of these is allowed but RESTART is mandatory (since this compiles the code)
and will be prepended if omitted. For example:

./sette.sh

Configurations ORCA2_ICE_PISCES ORCA2_OFF_PISCES AMM12 AGRIF WED025 GYRE_PISCES SAS
ORCA2_ICE_OBS ICE_AGRIF OVERFLOW LOCK_EXCHANGE VORTEX ISOMIP+ will be tested if they
are available

Carrying out the following tests: RESTART REPRO CORRUPT PHYOPTS


Or to test restartability only on one configuration:

./sette.sh -t GYRE_PISCES -x RESTART

Configuration GYRE_PISCES will be tested if it is available

Carrying out the following tests: RESTART


Or trying to test reproducibility on its own will also invoke RESTART:

./sette.sh -t GYRE_PISCES -x REPRO

Configuration GYRE_PISCES will be tested if it is available

Carrying out the following tests: RESTART REPRO


Some subtle changes to the bash scripts have been necessary to achieve
this. Notably, param.cfg is only evaluated by sette.sh and consequently the
sette_reference-configurations.sh and sette_test-cases.sh scripts must now be run within
the same shell as sette.sh. This has been tested but there remains a possibility that
different flavours of bash may behave differently. I will hold off from updating the
svn_external reference for SETTE until this has been confirmed to work elsewhere.

One other change is the addition of an internal setting for USING_EXTRA_HALO which
mimics the USING_ICEBERGS setting within sette_reference-configurations.sh and can be
used to toggle testing with the extra halo.

This commit also introduces a debug arch file for the NOC MOBILIS system. This is an
intel-based system but has a rather dated ifort compiler (17.0.4). The -init=huge
keyword was not introduced until ifort v18. In all other arguments this arch file
matches the set recommened by Seb.

  • Property svn:executable set to *
File size: 32.0 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 DEL_KEYS="key_iomput"
107if [ ${USING_XIOS} == "yes" ] 
108 then
109   export DEL_KEYS=""
110fi
111#
112export ADD_KEYS=""
113if [ ${ADD_NOSIGNEDZERO} == "yes" ]
114 then
115   export ADD_KEYS="key_nosignedzero"
116fi
117#
118# Settings which control the use of stand alone servers (only relevant if using xios)
119#
120export NUM_XIOSERVERS=4
121export JOB_PREFIX=${JOB_PREFIX_MPMD}
122#
123if [ ${USING_MPMD} == "no" ] 
124 then
125   export NUM_XIOSERVERS=0
126   export JOB_PREFIX=${JOB_PREFIX_NOMPMD}
127fi
128#
129#
130if [ ${USING_MPMD} == "yes" ] && [ ${USING_XIOS} == "no" ]
131 then
132   echo "Incompatible choices. MPMD mode requires the XIOS server"
133   exit
134fi
135
136# Directory to run the tests
137CONFIG_DIR0=${MAIN_DIR}/cfgs
138TOOLS_DIR=${MAIN_DIR}/tools
139
140CMP_NAM=${1:-$COMPILER}
141# Copy job_batch_COMPILER file for specific compiler into job_batch_template
142cd ${SETTE_DIR}
143cp BATCH_TEMPLATE/${JOB_PREFIX}-${COMPILER} job_batch_template || exit
144# Description of configuration tested:
145# OVERFLOW       : TEST s-coordinates : (tracers) Advection schemes: FCT2, FCT4, ubs
146#                                     & (dynamics) advection schemes: flux form (ubs, centered), vector form (een)
147#                       zps-coordinates : (tracers) Advection schemes: FCT2, FCT4, ubs
148#                                     & (dynamics) advection schemes: flux form (ubs, centered), vector form (een, and een + Hollingsworth correction)
149# LOCK_EXCHANGE  :
150# VORTEX         :
151# ICE_AGRIF      :
152# ISOMIP+         :
153# WAD
154
155for config in ${TEST_CONFIGS[@]}
156do
157
158# ---------
159#  OVERFLOW
160# ---------
161if [ ${config} == "OVERFLOW" ] && [ ${DO_RESTART} == "1" ] ;  then
162    ## Restartability tests for OVERFLOW
163    if [ $( echo ${CMP_NAM} | grep -ic debug ) -eq 1 ]
164    then
165   ITEND=12
166    else
167   ITEND=120
168    fi
169    ITRST=$( printf "%08d" $(( ${ITEND} / 2 )) )
170    export TEST_NAME="LONG"
171    cd ${MAIN_DIR}
172    #
173    . ${SETTE_DIR}/all_functions.sh
174    #
175    clean_config OVERFLOW OVERFLOW_ST 'tests'
176    #
177    sync_config  OVERFLOW OVERFLOW_ST 'tests'
178    #
179    . ./makenemo -m ${CMP_NAM} -n OVERFLOW_ST -a OVERFLOW -j 8 add_key "${ADD_KEYS}" del_key "${DEL_KEYS}"
180    cd ${SETTE_DIR}
181    . ./param.cfg
182    . ./all_functions.sh
183    . ./prepare_exe_dir.sh
184    set_valid_dir
185    clean_valid_dir
186    JOB_FILE=${EXE_DIR}/run_job.sh
187    NPROC=1
188    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
189    cd ${EXE_DIR} 
190    set_namelist namelist_cfg cn_exp \"OVF_LONG\"
191    set_namelist namelist_cfg nn_it000 1
192    set_namelist namelist_cfg nn_itend ${ITEND}
193    set_namelist namelist_cfg nn_stock $(( ${ITEND} / 2 ))
194    set_namelist namelist_cfg sn_cfctl%l_runstat .true.
195    if [ ${USING_MPMD} == "yes" ] ; then
196       set_xio_using_server iodef.xml true
197    else
198       set_xio_using_server iodef.xml false
199    fi
200    cd ${SETTE_DIR}
201    . ./prepare_job.sh input_EMPTY.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID}
202
203    cd ${SETTE_DIR}
204    export TEST_NAME="SHORT"
205    . ./prepare_exe_dir.sh
206    set_valid_dir
207    clean_valid_dir
208    cd ${EXE_DIR}
209    set_namelist namelist_cfg cn_exp \"OVF_SHORT\"
210    set_namelist namelist_cfg nn_it000 $(( ${ITEND} / 2 + 1 ))
211    set_namelist namelist_cfg nn_itend ${ITEND}
212    set_namelist namelist_cfg nn_stock $(( ${ITEND} / 2 ))
213    set_namelist namelist_cfg sn_cfctl%l_runstat .true.
214    set_namelist namelist_cfg ln_rstart .true.
215    set_namelist namelist_cfg nn_rstctl 2
216    set_namelist namelist_cfg cn_ocerst_in \"OVF_LONG_${ITRST}_restart\"
217    if [ ${USING_MPMD} == "yes" ] ; then
218       set_xio_using_server iodef.xml true
219    else
220       set_xio_using_server iodef.xml false
221    fi
222    ln -sf ../LONG/OVF_LONG_${ITRST}_restart.nc .
223
224    cd ${SETTE_DIR}
225    . ./prepare_job.sh input_EMPTY.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID}
226    cd ${SETTE_DIR}
227    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
228
229
230fi
231
232if [ ${config} == "OVERFLOW" ] && [ ${DO_PHYOPTS} == "1" ] ;  then
233    ## Test for all advection, vert. coordinates, vector form, flux form: test runability and complete all time steps
234    ## Needed namelist-xxxx for every type of run tested
235    if [ $( echo ${CMP_NAM} | grep -ic debug ) -eq 1 ]
236    then
237   ITEND=12
238    else
239   ITEND=6120
240    fi
241    cd ${CONFIG_DIR}/${NEW_CONF}/EXP00
242
243    for file in $(echo `ls namelist_*_cfg `) ; do
244        TEST_NAME=`echo $file | sed -e "s/namelist_//" | sed -e "s/_cfg//"`
245        TEST_NAME="EXP-${TEST_NAME}"
246        if [ ! -d ${CONFIG_DIR}/${NEW_CONF}/${TEST_NAME} ] ; then mkdir ${CONFIG_DIR}/${NEW_CONF}/${TEST_NAME} ; fi
247        export TEST_NAME="${TEST_NAME}"
248         ##
249        cd ${SETTE_DIR}
250        . ./param.cfg
251        . ./all_functions.sh
252        . ./prepare_exe_dir.sh
253        set_valid_dir
254        clean_valid_dir
255        JOB_FILE=${EXE_DIR}/run_job.sh
256        NPROC=1
257        if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
258        cd ${EXE_DIR}
259        rm namelist_*_*_*_*
260        cp -pL ${CONFIG_DIR}/${NEW_CONF}/EXP00/$file namelist_cfg
261   set_namelist namelist_cfg nn_it000 1
262   set_namelist namelist_cfg nn_itend ${ITEND}
263        if [ ${USING_MPMD} == "yes" ] ; then
264           set_xio_using_server iodef.xml true
265        else
266           set_xio_using_server iodef.xml false
267        fi
268        cd ${SETTE_DIR}
269        . ./prepare_job.sh input_EMPTY.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID}
270        cd ${SETTE_DIR}
271        . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
272       ##
273     done
274fi
275
276# --------------
277#  LOCK_EXCHANGE
278# --------------
279if [ ${config} == "LOCK_EXCHANGE" ] && [ ${DO_RESTART} == "1" ] ;  then
280    ## Restartability tests for LOCK_EXCHANGE
281    if [ $( echo ${CMP_NAM} | grep -ic debug ) -eq 1 ]
282    then
283   ITEND=12
284    else
285   ITEND=120
286    fi
287    ITRST=$( printf "%08d" $(( ${ITEND} / 2 )) )
288    export TEST_NAME="LONG"
289    cd ${MAIN_DIR}
290    #
291    # syncronisation if target directory/file exist (not done by makenemo)
292    . ${SETTE_DIR}/all_functions.sh
293    #
294    clean_config LOCK_EXCHANGE LOCK_EXCHANGE_ST 'tests'
295    #
296    sync_config  LOCK_EXCHANGE LOCK_EXCHANGE_ST 'tests'
297    #
298    . ./makenemo -m ${CMP_NAM} -n LOCK_EXCHANGE_ST -a LOCK_EXCHANGE -j 8 add_key "${ADD_KEYS}" del_key "${DEL_KEYS}"
299    cd ${SETTE_DIR}
300    . ./param.cfg
301    . ./all_functions.sh
302    . ./prepare_exe_dir.sh
303    set_valid_dir
304    clean_valid_dir
305    JOB_FILE=${EXE_DIR}/run_job.sh
306    NPROC=1
307    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
308    cd ${EXE_DIR}
309    set_namelist namelist_cfg cn_exp \"LOCK_LONG\"
310    set_namelist namelist_cfg nn_it000 1
311    set_namelist namelist_cfg nn_itend ${ITEND}
312    set_namelist namelist_cfg nn_stock $(( ${ITEND} / 2 ))
313    set_namelist namelist_cfg sn_cfctl%l_runstat .true.
314    if [ ${USING_MPMD} == "yes" ] ; then
315       set_xio_using_server iodef.xml true
316    else
317       set_xio_using_server iodef.xml false
318    fi
319    cd ${SETTE_DIR}
320    . ./prepare_job.sh input_EMPTY.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID}
321
322    cd ${SETTE_DIR}
323    export TEST_NAME="SHORT"
324    . ./prepare_exe_dir.sh
325    set_valid_dir
326    clean_valid_dir
327    cd ${EXE_DIR}
328    set_namelist namelist_cfg cn_exp \"LOCK_SHORT\"
329    set_namelist namelist_cfg nn_it000 $(( ${ITEND} / 2 + 1 ))
330    set_namelist namelist_cfg nn_itend ${ITEND}
331    set_namelist namelist_cfg nn_stock $(( ${ITEND} / 2 ))
332    set_namelist namelist_cfg sn_cfctl%l_runstat .true.
333    set_namelist namelist_cfg ln_rstart .true.
334    set_namelist namelist_cfg nn_rstctl 2
335    set_namelist namelist_cfg cn_ocerst_in \"LOCK_LONG_${ITRST}_restart\"
336    if [ ${USING_MPMD} == "yes" ] ; then
337       set_xio_using_server iodef.xml true
338    else
339       set_xio_using_server iodef.xml false
340    fi
341    ln -sf ../LONG/LOCK_LONG_${ITRST}_restart.nc .
342
343    cd ${SETTE_DIR}
344    . ./prepare_job.sh input_EMPTY.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID}
345    cd ${SETTE_DIR}
346    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
347
348fi
349
350if [ ${config} == "LOCK_EXCHANGE" ] && [ ${DO_PHYOPTS} == "1" ] ;  then
351    ## Test for all advection, vector form, flux form: test runability and complete all time steps
352    ## Needed namelist-xxxx for every type of run tested
353    if [ $( echo ${CMP_NAM} | grep -ic debug ) -eq 1 ]
354    then
355   ITEND=12
356    else
357   ITEND=61200
358    fi
359    cd ${CONFIG_DIR}/${NEW_CONF}/EXP00
360
361    for file in $(echo `ls namelist_*_cfg `) ; do
362        echo ''
363        TEST_NAME=`echo $file | sed -e "s/namelist_//" | sed -e "s/_cfg//"`
364        TEST_NAME="EXP-${TEST_NAME}"
365        `mkdir ${CONFIG_DIR}/${NEW_CONF}/${TEST_NAME}`
366        export TEST_NAME="${TEST_NAME}"
367        ## 
368        cd ${SETTE_DIR}
369        . ./param.cfg
370        . ./all_functions.sh
371        . ./prepare_exe_dir.sh
372        set_valid_dir
373        clean_valid_dir
374        JOB_FILE=${EXE_DIR}/run_job.sh
375        NPROC=1
376        if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
377        cd ${EXE_DIR}
378        rm namelist_*_*_*_*
379        cp -pL ${CONFIG_DIR}/${NEW_CONF}/EXP00/$file namelist_cfg
380   set_namelist namelist_cfg nn_it000 1
381        set_namelist namelist_cfg nn_itend ${ITEND}
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_EMPTY.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID}
389        cd ${SETTE_DIR}
390        . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
391        ##
392        echo ''
393   done
394fi
395
396# ---------
397# VORTEX
398# ---------
399if [ ${config} == "VORTEX" ] && [ ${DO_RESTART} == "1" ] ;  then
400## Restartability tests for VORTEX
401    if [ $( echo ${CMP_NAM} | grep -ic debug ) -eq 1 ]
402    then
403   ITEND=12
404    else
405   ITEND=240
406    fi
407    ITRST=$(   printf "%08d" $(( ${ITEND} / 2 )) )
408    ITRST_1=$( printf "%08d" $(( ${ITEND} * 3 / 2 )) )
409    export TEST_NAME="LONG"
410    cd ${MAIN_DIR}
411    #
412    # syncronisation if target directory/file exist (not done by makenemo)
413    . ${SETTE_DIR}/all_functions.sh
414    #
415    clean_config VORTEX VORTEX_ST 'tests'
416    #
417    sync_config  VORTEX VORTEX_ST 'tests'
418    #
419    . ./makenemo -m ${CMP_NAM} -n VORTEX_ST -a VORTEX -j 8  add_key "${ADD_KEYS}" del_key "${DEL_KEYS}"
420    cd ${SETTE_DIR}
421    . ./param.cfg
422    . ./all_functions.sh
423    . ./prepare_exe_dir.sh
424    set_valid_dir
425    clean_valid_dir
426    JOB_FILE=${EXE_DIR}/run_job.sh
427    NPROC=6
428    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
429    cd ${EXE_DIR}
430    set_namelist namelist_cfg cn_exp \"VORTEX_LONG\"
431    set_namelist namelist_cfg nn_it000 1
432    set_namelist namelist_cfg nn_itend ${ITEND}
433    set_namelist namelist_cfg nn_stock $(( ${ITEND} / 2 ))
434    set_namelist namelist_cfg sn_cfctl%l_runstat .true. 
435
436    set_namelist 1_namelist_cfg cn_exp \"VORTEX_LONG\"
437    set_namelist 1_namelist_cfg nn_it000 1
438    set_namelist 1_namelist_cfg nn_itend $(( ${ITEND} * 3 ))
439    set_namelist 1_namelist_cfg nn_stock $(( ${ITEND} * 3 / 2 ))
440    set_namelist 1_namelist_cfg sn_cfctl%l_runstat .true.
441   
442    if [ ${USING_MPMD} == "yes" ] ; then
443        set_xio_using_server iodef.xml true
444    else
445        set_xio_using_server iodef.xml false
446    fi
447    cd ${SETTE_DIR}
448    . ./prepare_job.sh input_EMPTY.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID}
449   
450    cd ${SETTE_DIR}
451    export TEST_NAME="SHORT"
452    . ./prepare_exe_dir.sh
453    set_valid_dir
454    clean_valid_dir
455    cd ${EXE_DIR}
456    set_namelist namelist_cfg cn_exp \"VORTEX_SHORT\"
457    set_namelist namelist_cfg nn_it000 $(( ${ITEND} / 2 + 1 ))
458    set_namelist namelist_cfg nn_itend ${ITEND}
459    set_namelist namelist_cfg nn_stock $(( ${ITEND} / 2 ))
460    set_namelist namelist_cfg sn_cfctl%l_runstat .true.
461    set_namelist namelist_cfg ln_rstart .true.
462    set_namelist namelist_cfg nn_rstctl 2
463    set_namelist namelist_cfg cn_ocerst_in \"VORTEX_LONG_${ITRST}_restart\"
464   
465    set_namelist 1_namelist_cfg cn_exp \"VORTEX_SHORT\"
466    set_namelist 1_namelist_cfg nn_it000 $(( ${ITEND} * 3 / 2 + 1 ))
467    set_namelist 1_namelist_cfg nn_itend $(( ${ITEND} * 3 ))
468    set_namelist 1_namelist_cfg nn_stock $(( ${ITEND} * 3 / 2 ))
469    set_namelist 1_namelist_cfg sn_cfctl%l_runstat .true.
470    set_namelist 1_namelist_cfg ln_rstart .true.
471    set_namelist 1_namelist_cfg nn_rstctl 2
472    set_namelist 1_namelist_cfg cn_ocerst_in \"VORTEX_LONG_${ITRST_1}_restart\"
473     
474    if [ ${USING_MPMD} == "yes" ] ; then
475        set_xio_using_server iodef.xml true
476    else
477        set_xio_using_server iodef.xml false
478    fi
479    if [ $NPROC -eq 1 ] ;  then
480        ln -sf ../LONG/VORTEX_LONG_${ITRST}_restart.nc .
481        ln -sf ../LONG/1_VORTEX_LONG_${ITRST_1}_restart.nc .
482    else
483        for (( i=1; i<=$NPROC; i++)) ; do
484            L_NPROC=$(( $i - 1 ))
485            L_NPROC=`printf "%04d\n" ${L_NPROC}`
486            ln -sf ../LONG/VORTEX_LONG_${ITRST}_restart_${L_NPROC}.nc .
487            ln -sf ../LONG/1_VORTEX_LONG_${ITRST_1}_restart_${L_NPROC}.nc .
488        done
489    fi
490    cd ${SETTE_DIR}
491    . ./prepare_job.sh input_EMPTY.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID}
492    cd ${SETTE_DIR}
493    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
494fi
495
496if [ ${config} == "VORTEX" ] && [ ${DO_REPRO} == "1" ] ;  then
497
498## Reproducibility tests for VORTEX
499    export TEST_NAME="REPRO_2_3"
500    cd ${MAIN_DIR}
501    cd ${SETTE_DIR}
502    . ./param.cfg
503    . ./all_functions.sh
504    . ./prepare_exe_dir.sh
505    set_valid_dir
506    clean_valid_dir
507    JOB_FILE=${EXE_DIR}/run_job.sh
508    NPROC=6
509    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
510    cd ${EXE_DIR}
511    set_namelist namelist_cfg cn_exp \"VORTEX_23\"
512    set_namelist namelist_cfg nn_it000 1
513    set_namelist namelist_cfg nn_itend ${ITEND}
514    set_namelist namelist_cfg nn_stock ${ITEND}
515    set_namelist namelist_cfg jpni 2
516    set_namelist namelist_cfg jpnj 3
517    set_namelist namelist_cfg sn_cfctl%l_runstat .true.
518   
519    set_namelist 1_namelist_cfg cn_exp \"VORTEX_23\"
520    set_namelist 1_namelist_cfg nn_it000 1
521    set_namelist 1_namelist_cfg nn_itend $(( ${ITEND} * 3 ))
522    set_namelist 1_namelist_cfg nn_stock $(( ${ITEND} * 3 ))
523    set_namelist 1_namelist_cfg jpni 2
524    set_namelist 1_namelist_cfg jpnj 3
525    set_namelist 1_namelist_cfg sn_cfctl%l_runstat .true.
526
527    if [ ${USING_MPMD} == "yes" ] ; then
528       set_xio_using_server iodef.xml true
529    else
530       set_xio_using_server iodef.xml false
531    fi
532    cd ${SETTE_DIR}
533    . ./prepare_job.sh input_EMPTY.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID}
534    cd ${SETTE_DIR}
535    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
536
537    cd ${SETTE_DIR}
538    export TEST_NAME="REPRO_3_2"
539    . ./prepare_exe_dir.sh
540    set_valid_dir
541    clean_valid_dir
542    JOB_FILE=${EXE_DIR}/run_job.sh
543    NPROC=6
544    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
545    cd ${EXE_DIR}
546
547    set_namelist namelist_cfg cn_exp \"VORTEX_32\"
548    set_namelist namelist_cfg nn_it000 1
549    set_namelist namelist_cfg nn_itend ${ITEND}
550    set_namelist namelist_cfg nn_stock ${ITEND}
551    set_namelist namelist_cfg jpni 3
552    set_namelist namelist_cfg jpnj 2
553    set_namelist namelist_cfg sn_cfctl%l_runstat .true.
554
555    set_namelist 1_namelist_cfg cn_exp \"VORTEX_32\"
556    set_namelist 1_namelist_cfg nn_it000 1
557    set_namelist 1_namelist_cfg nn_itend $(( ${ITEND} * 3 ))
558    set_namelist 1_namelist_cfg nn_stock $(( ${ITEND} * 3 ))
559    set_namelist 1_namelist_cfg jpni 3
560    set_namelist 1_namelist_cfg jpnj 2
561    set_namelist 1_namelist_cfg sn_cfctl%l_runstat .true.
562
563    if [ ${USING_MPMD} == "yes" ] ; then
564       set_xio_using_server iodef.xml true
565    else
566       set_xio_using_server iodef.xml false
567    fi
568    cd ${SETTE_DIR}
569    . ./prepare_job.sh input_EMPTY.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID}
570    cd ${SETTE_DIR}
571    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
572
573fi
574
575
576# ---------
577# ICE_AGRIF
578# ---------
579if [ ${config} == "ICE_AGRIF" ] && [ ${DO_RESTART} == "1" ] ;  then
580## Restartability tests for ICE_AGRIF
581    if [ $( echo ${CMP_NAM} | grep -ic debug ) -eq 1 ]
582    then
583   ITEND=10
584    else
585   ITEND=200
586    fi
587    ITRST=$(   printf "%08d" $(( ${ITEND} / 2 )) )
588    ITRST_1=$( printf "%08d" $(( ${ITEND} * 3 / 2 )) )
589    export TEST_NAME="LONG"
590    cd ${MAIN_DIR}
591    #
592    # syncronisation if target directory/file exist (not done by makenemo)
593    . ${SETTE_DIR}/all_functions.sh
594    #
595    clean_config ICE_AGRIF ICE_AGRIF_ST 'tests'
596    #
597    sync_config  ICE_AGRIF ICE_AGRIF_ST 'tests'
598    #
599    . ./makenemo -m ${CMP_NAM} -n ICE_AGRIF_ST -a ICE_AGRIF -j 8  add_key "${ADD_KEYS}" del_key "${DEL_KEYS}"
600    cd ${SETTE_DIR}
601    . ./param.cfg
602    . ./all_functions.sh
603    . ./prepare_exe_dir.sh
604    set_valid_dir
605    clean_valid_dir
606    JOB_FILE=${EXE_DIR}/run_job.sh
607    NPROC=6
608    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
609    cd ${EXE_DIR}
610    set_namelist namelist_cfg cn_exp \"ICE_AGRIF_LONG\"
611    set_namelist namelist_cfg nn_it000 1
612    set_namelist namelist_cfg nn_itend ${ITEND}
613    set_namelist namelist_cfg nn_stock $(( ${ITEND} / 2 ))
614    set_namelist namelist_cfg sn_cfctl%l_runstat .true.
615   
616    set_namelist 1_namelist_cfg cn_exp \"ICE_AGRIF_LONG\"
617    set_namelist 1_namelist_cfg nn_it000 1
618    set_namelist 1_namelist_cfg nn_itend $(( ${ITEND} * 3 ))
619    set_namelist 1_namelist_cfg nn_stock $(( ${ITEND} * 3 / 2 ))
620    set_namelist 1_namelist_cfg sn_cfctl%l_runstat .true.
621   
622    if [ ${USING_MPMD} == "yes" ] ; then
623        set_xio_using_server iodef.xml true
624    else
625        set_xio_using_server iodef.xml false
626    fi
627    cd ${SETTE_DIR}
628    . ./prepare_job.sh input_ICE_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID}
629   
630    cd ${SETTE_DIR}
631    export TEST_NAME="SHORT"
632    . ./prepare_exe_dir.sh
633    set_valid_dir
634    clean_valid_dir
635    cd ${EXE_DIR}
636    set_namelist namelist_cfg cn_exp \"ICE_AGRIF_SHORT\"
637    set_namelist namelist_cfg nn_it000 $(( ${ITEND} / 2 + 1 ))
638    set_namelist namelist_cfg nn_itend ${ITEND}
639    set_namelist namelist_cfg nn_stock $(( ${ITEND} / 2 ))
640    set_namelist namelist_cfg sn_cfctl%l_runstat .true.
641    set_namelist namelist_cfg ln_rstart .true.
642    set_namelist namelist_cfg nn_rstctl 2
643    set_namelist namelist_cfg cn_ocerst_in \"ICE_AGRIF_LONG_${ITRST}_restart\"
644    set_namelist namelist_ice_cfg cn_icerst_in \"ICE_AGRIF_LONG_${ITRST}_restart_ice\"
645   
646    set_namelist 1_namelist_cfg cn_exp \"ICE_AGRIF_SHORT\"
647    set_namelist 1_namelist_cfg nn_it000 $(( ${ITEND} * 3 / 2 + 1 ))
648    set_namelist 1_namelist_cfg nn_itend $(( ${ITEND} * 3 ))
649    set_namelist 1_namelist_cfg nn_stock $(( ${ITEND} * 3 / 2 ))
650    set_namelist 1_namelist_cfg sn_cfctl%l_runstat .true.
651    set_namelist 1_namelist_cfg ln_rstart .true.
652    set_namelist 1_namelist_cfg nn_rstctl 2
653    set_namelist 1_namelist_cfg cn_ocerst_in \"ICE_AGRIF_LONG_${ITRST_1}_restart\"
654    set_namelist 1_namelist_ice_cfg cn_icerst_in \"ICE_AGRIF_LONG_${ITRST_1}_restart_ice\"
655   
656   
657    if [ ${USING_MPMD} == "yes" ] ; then
658        set_xio_using_server iodef.xml true
659    else
660        set_xio_using_server iodef.xml false
661    fi
662    if [ $NPROC -eq 1 ] ;  then
663        ln -sf ../LONG/ICE_AGRIF_LONG_${ITRST}_restart.nc .
664        ln -sf ../LONG/ICE_AGRIF_LONG_${ITRST}_restart_ice.nc .
665        ln -sf ../LONG/1_ICE_AGRIF_LONG_${ITRST_1}_restart.nc .
666        ln -sf ../LONG/1_ICE_AGRIF_LONG_${ITRST_1}_restart_ice.nc .
667    else
668        for (( i=1; i<=$NPROC; i++)) ; do
669            L_NPROC=$(( $i - 1 ))
670            L_NPROC=`printf "%04d\n" ${L_NPROC}`
671            ln -sf ../LONG/ICE_AGRIF_LONG_${ITRST}_restart_${L_NPROC}.nc .
672            ln -sf ../LONG/ICE_AGRIF_LONG_${ITRST}_restart_ice_${L_NPROC}.nc .
673            ln -sf ../LONG/1_ICE_AGRIF_LONG_${ITRST_1}_restart_${L_NPROC}.nc .
674            ln -sf ../LONG/1_ICE_AGRIF_LONG_${ITRST_1}_restart_ice_${L_NPROC}.nc .
675        done
676    fi
677
678    cd ${SETTE_DIR}
679    . ./prepare_job.sh input_ICE_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID}
680    cd ${SETTE_DIR}
681    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
682
683fi
684
685if [ ${config} == "ICE_AGRIF" ] && [ ${DO_REPRO} == "1" ] ;  then
686
687## Reproducibility tests for ICE_AGRIF
688    export TEST_NAME="REPRO_2_3"
689    cd ${MAIN_DIR}
690    cd ${SETTE_DIR}
691    . ./param.cfg
692    . ./all_functions.sh
693    . ./prepare_exe_dir.sh
694    set_valid_dir
695    clean_valid_dir
696    JOB_FILE=${EXE_DIR}/run_job.sh
697    NPROC=6
698    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
699    cd ${EXE_DIR}
700    set_namelist namelist_cfg cn_exp \"ICE_AGRIF_23\"
701    set_namelist namelist_cfg nn_it000 1
702    set_namelist namelist_cfg nn_itend ${ITEND}
703    set_namelist namelist_cfg nn_stock $(( ${ITEND} / 2 ))
704    set_namelist namelist_cfg jpni 2
705    set_namelist namelist_cfg jpnj 3
706    set_namelist namelist_cfg sn_cfctl%l_runstat .true.
707   
708    set_namelist 1_namelist_cfg cn_exp \"ICE_AGRIF_23\"
709    set_namelist 1_namelist_cfg nn_it000 1
710    set_namelist 1_namelist_cfg nn_itend $(( ${ITEND} * 3 ))
711    set_namelist 1_namelist_cfg nn_stock $(( ${ITEND} * 3 / 2 ))
712    set_namelist 1_namelist_cfg jpni 2
713    set_namelist 1_namelist_cfg jpnj 3
714    set_namelist 1_namelist_cfg sn_cfctl%l_runstat .true.
715
716    if [ ${USING_MPMD} == "yes" ] ; then
717       set_xio_using_server iodef.xml true
718    else
719       set_xio_using_server iodef.xml false
720    fi
721    cd ${SETTE_DIR}
722    . ./prepare_job.sh input_ICE_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID}
723    cd ${SETTE_DIR}
724    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
725
726    cd ${SETTE_DIR}
727    export TEST_NAME="REPRO_3_2"
728    . ./prepare_exe_dir.sh
729    set_valid_dir
730    clean_valid_dir
731    JOB_FILE=${EXE_DIR}/run_job.sh
732    NPROC=6
733    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
734    cd ${EXE_DIR}
735
736    set_namelist namelist_cfg cn_exp \"ICE_AGRIF_32\"
737    set_namelist namelist_cfg nn_it000 1
738    set_namelist namelist_cfg nn_itend ${ITEND}
739    set_namelist namelist_cfg nn_stock $(( ${ITEND} / 2 ))
740    set_namelist namelist_cfg jpni 3
741    set_namelist namelist_cfg jpnj 2
742    set_namelist namelist_cfg sn_cfctl%l_runstat .true.
743   
744    set_namelist 1_namelist_cfg cn_exp \"ICE_AGRIF_32\"
745    set_namelist 1_namelist_cfg nn_it000 1
746    set_namelist 1_namelist_cfg nn_itend $(( ${ITEND} * 3 ))
747    set_namelist 1_namelist_cfg nn_stock $(( ${ITEND} * 3 / 2 ))
748    set_namelist 1_namelist_cfg jpni 3
749    set_namelist 1_namelist_cfg jpnj 2
750    set_namelist 1_namelist_cfg sn_cfctl%l_runstat .true.
751   
752    if [ ${USING_MPMD} == "yes" ] ; then
753       set_xio_using_server iodef.xml true
754    else
755       set_xio_using_server iodef.xml false
756    fi
757    cd ${SETTE_DIR}
758    . ./prepare_job.sh input_ICE_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID}
759    cd ${SETTE_DIR}
760    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
761
762fi
763
764# ------
765# ISOMIP+
766# ------
767if [ ${config} == "ISOMIP+" ] && [ ${DO_RESTART} == "1" ] ;  then
768## Restartability tests
769    if [ $( echo ${CMP_NAM} | grep -ic debug ) -eq 1 ]
770    then
771   ITEND=12
772    else
773   ITEND=1200
774    fi
775    ITRST=$( printf "%08d" $(( ${ITEND} / 2 )) )
776    export TEST_NAME="LONG"
777    cd ${MAIN_DIR}
778    #
779    # syncronisation if target directory/file exist (not done by makenemo)
780    . ${SETTE_DIR}/all_functions.sh
781    #
782    clean_config ISOMIP+ ISOMIP+_ST 'tests'
783    #
784    sync_config  ISOMIP+ ISOMIP+_ST 'tests'
785    #
786    . ./makenemo -m ${CMP_NAM} -n ISOMIP+_ST -a ISOMIP+ -j 8 add_key "${ADD_KEYS}" del_key "${DEL_KEYS}"
787    cd ${SETTE_DIR}
788    . ./param.cfg
789    . ./all_functions.sh
790    . ./prepare_exe_dir.sh
791    set_valid_dir
792    clean_valid_dir
793    JOB_FILE=${EXE_DIR}/run_job.sh
794    NPROC=27
795    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
796    cd ${EXE_DIR}
797    set_namelist namelist_cfg cn_exp \"ISOMIP+_LONG\"
798    set_namelist namelist_cfg nn_it000 1
799    set_namelist namelist_cfg nn_itend ${ITEND}
800    set_namelist namelist_cfg nn_stock $(( ${ITEND} / 2 ))
801    set_namelist namelist_cfg jpni 9
802    set_namelist namelist_cfg jpnj 3
803    set_namelist namelist_cfg sn_cfctl%l_runstat .true.
804    if [ ${USING_MPMD} == "yes" ] ; then
805       set_xio_using_server iodef.xml true
806    else
807       set_xio_using_server iodef.xml false
808    fi
809    cd ${SETTE_DIR}
810    . ./prepare_job.sh input_ISOMIP+.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID}
811
812    cd ${SETTE_DIR}
813    export TEST_NAME="SHORT"
814    . ./prepare_exe_dir.sh
815    set_valid_dir
816    clean_valid_dir
817    cd ${EXE_DIR}
818    set_namelist namelist_cfg cn_exp \"ISOMIP+_SHORT\"
819    set_namelist namelist_cfg nn_it000 $(( ${ITEND} / 2 + 1 ))
820    set_namelist namelist_cfg nn_itend ${ITEND}
821    set_namelist namelist_cfg nn_stock $(( ${ITEND} / 2 ))
822    set_namelist namelist_cfg ln_rstart .true.
823    set_namelist namelist_cfg nn_rstctl 2
824    set_namelist namelist_cfg jpni 9
825    set_namelist namelist_cfg jpnj 3
826    set_namelist namelist_cfg sn_cfctl%l_runstat .true.
827    set_namelist namelist_cfg cn_ocerst_in \"ISOMIP+_LONG_${ITRST}_restart\"
828    if [ ${USING_MPMD} == "yes" ] ; then
829       set_xio_using_server iodef.xml true
830    else
831       set_xio_using_server iodef.xml false
832    fi
833    for (( i=1; i<=$NPROC; i++)) ; do
834        L_NPROC=$(( $i - 1 ))
835        L_NPROC=`printf "%04d\n" ${L_NPROC}`
836        ln -sf ../LONG/ISOMIP+_LONG_${ITRST}_restart_${L_NPROC}.nc .
837    done
838
839    cd ${SETTE_DIR}
840    . ./prepare_job.sh input_ISOMIP+.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID}
841    cd ${SETTE_DIR}
842    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
843
844fi
845
846if [ ${config} == "ISOMIP+" ] && [ ${DO_REPRO} == "1" ] ;  then
847## Reproducibility tests
848    if [ $( echo ${CMP_NAM} | grep -ic debug ) -eq 1 ]
849    then
850   ITEND=12
851    else
852   ITEND=600
853    fi
854    export TEST_NAME="REPRO_9_3"
855    cd ${MAIN_DIR}
856    cd ${SETTE_DIR}
857    . ./param.cfg
858    . ./all_functions.sh
859    . ./prepare_exe_dir.sh
860    set_valid_dir
861    clean_valid_dir
862    JOB_FILE=${EXE_DIR}/run_job.sh
863    NPROC=27
864    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
865    cd ${EXE_DIR}
866    set_namelist namelist_cfg cn_exp \"ISOMIP+_93\"
867    set_namelist namelist_cfg nn_it000 1
868    set_namelist namelist_cfg nn_itend ${ITEND}
869    set_namelist namelist_cfg jpni 9
870    set_namelist namelist_cfg jpnj 3
871    set_namelist namelist_cfg sn_cfctl%l_runstat .true.
872    if [ ${USING_MPMD} == "yes" ] ; then
873       set_xio_using_server iodef.xml true
874    else
875       set_xio_using_server iodef.xml false
876    fi
877    cd ${SETTE_DIR}
878    . ./prepare_job.sh input_ISOMIP+.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID}
879    cd ${SETTE_DIR}
880    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
881
882    cd ${SETTE_DIR}
883    export TEST_NAME="REPRO_8_4"
884    . ./prepare_exe_dir.sh
885    set_valid_dir
886    clean_valid_dir
887    JOB_FILE=${EXE_DIR}/run_job.sh
888    NPROC=32
889    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
890    cd ${EXE_DIR}
891    set_namelist namelist_cfg cn_exp \"ISOMIP+_84\"
892    set_namelist namelist_cfg nn_it000 1
893    set_namelist namelist_cfg nn_itend ${ITEND}
894    set_namelist namelist_cfg jpni 8
895    set_namelist namelist_cfg jpnj 4
896    set_namelist namelist_cfg sn_cfctl%l_runstat .true.
897    if [ ${USING_MPMD} == "yes" ] ; then
898       set_xio_using_server iodef.xml true
899    else
900       set_xio_using_server iodef.xml false
901    fi
902    cd ${SETTE_DIR}
903    . ./prepare_job.sh input_ISOMIP+.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID}
904    cd ${SETTE_DIR}
905    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
906
907fi
908
909#----
910done
911#
912# Return to SETTE_DIR (last fcm_job.sh will have moved to EXE_DIR)
913cd ${SETTE_DIR}
Note: See TracBrowser for help on using the repository browser.