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.sh in utils/CI/sette – NEMO

source: utils/CI/sette/sette.sh @ 9904

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

Minor corrections to sette.sh to recover valid sette tests. Also added toggle for icebergs (USE_ICEBERGS) which is currently set to no

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