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 @ 9933

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

small change in sette.sh to enable use of new ln_use_calving option when running tests with icebergs. Details on ticket #2113

  • Property svn:executable set to *
File size: 50.6 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    set_namelist namelist_cfg ln_use_calving .true.
292    #
293    if [ ${USING_ICEBERGS} == "no" ] ; then set_namelist namelist_cfg ln_icebergs .false. ; fi
294    #
295    set_namelist namelist_ice_cfg ln_icediachk .true.
296    set_namelist namelist_top_cfg ln_trcdta .false.
297    # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false
298    # if not you need input files, and for tests is not necessary
299    set_namelist namelist_pisces_cfg ln_presatm .false.
300    set_namelist namelist_pisces_cfg ln_varpar .false.
301    set_namelist namelist_pisces_cfg ln_dust .false.
302    set_namelist namelist_pisces_cfg ln_solub .false.
303    set_namelist namelist_pisces_cfg ln_river .false.
304    set_namelist namelist_pisces_cfg ln_ndepo .false.
305    set_namelist namelist_pisces_cfg ln_ironsed .false.
306    set_namelist namelist_pisces_cfg ln_ironice .false.
307    set_namelist namelist_pisces_cfg ln_hydrofe .false.
308    # put ln_pisdmp to false : no restoring to global mean value
309    set_namelist namelist_pisces_cfg ln_pisdmp .false.
310    if [ ${USING_MPMD} == "yes" ] ; then
311       set_xio_using_server iodef.xml true
312    else
313       set_xio_using_server iodef.xml false
314    fi
315    cd ${SETTE_DIR}
316    . ./prepare_job.sh input_ORCA2_ICE_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
317   
318    cd ${SETTE_DIR}
319    export TEST_NAME="SHORT"
320    . ./prepare_exe_dir.sh
321    cd ${EXE_DIR}
322    set_namelist namelist_cfg cn_exp \"O2L3P_SHORT\"
323    set_namelist namelist_cfg nn_it000 496
324    set_namelist namelist_cfg nn_itend 990
325    set_namelist namelist_cfg nn_stock 495
326    set_namelist namelist_cfg ln_rstart .true.
327    set_namelist namelist_cfg nn_rstctl 2
328    set_namelist namelist_cfg jpni 4
329    set_namelist namelist_cfg jpnj 8
330    set_namelist namelist_cfg jpnij 32
331    set_namelist namelist_cfg nn_test_icebergs -1
332    #
333    if [ ${USING_ICEBERGS} == "no" ] ; then set_namelist namelist_cfg ln_icebergs .false. ; fi
334    #
335    set_namelist namelist_ice_cfg ln_icediachk .true.
336    set_namelist namelist_top_cfg ln_rsttr .true.
337    set_namelist namelist_top_cfg nn_rsttr 2
338    set_namelist namelist_cfg cn_ocerst_in \"O2L3P_LONG_00000495_restart\"
339    set_namelist namelist_top_cfg cn_trcrst_in \"O2L3P_LONG_00000495_restart_trc\"
340    set_namelist namelist_ice_cfg cn_icerst_in \"O2L3P_LONG_00000495_restart_ice\"
341    set_namelist namelist_top_cfg ln_trcdta .false.
342    # put ln_ironsed, ln_river, ln_ndepo, ln_dust
343    # if not you need input files, and for tests is not necessary
344    set_namelist namelist_pisces_cfg ln_presatm .false.
345    set_namelist namelist_pisces_cfg ln_varpar .false.
346    set_namelist namelist_pisces_cfg ln_dust .false.
347    set_namelist namelist_pisces_cfg ln_solub .false.
348    set_namelist namelist_pisces_cfg ln_river .false.
349    set_namelist namelist_pisces_cfg ln_ndepo .false.
350    set_namelist namelist_pisces_cfg ln_ironsed .false.
351    set_namelist namelist_pisces_cfg ln_ironice .false.
352    set_namelist namelist_pisces_cfg ln_hydrofe .false.
353    # put ln_pisdmp to false : no restoring to global mean value
354    set_namelist namelist_pisces_cfg ln_pisdmp .false.
355    for (( i=1; i<=$NPROC; i++)) ; do
356        L_NPROC=$(( $i - 1 ))
357        L_NPROC=`printf "%04d\n" ${L_NPROC}`
358        ln -sf ../LONG/O2L3P_LONG_00000495_restart_${L_NPROC}.nc .
359        ln -sf ../LONG/O2L3P_LONG_00000495_restart_trc_${L_NPROC}.nc .
360        ln -sf ../LONG/O2L3P_LONG_00000495_restart_ice_${L_NPROC}.nc .
361        if [ ${USING_ICEBERGS} == "yes" ]
362            then
363             ln -sf ../LONG/O2L3P_LONG_icebergs_00000495_restart_${L_NPROC}.nc O2L3P_LONG_00000495_restart_icebergs_${L_NPROC}.nc
364        fi
365    done
366    if [ ${USING_MPMD} == "yes" ] ; then
367       set_xio_using_server iodef.xml true
368    else
369       set_xio_using_server iodef.xml false
370    fi
371    cd ${SETTE_DIR}
372    . ./prepare_job.sh input_ORCA2_ICE_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
373    cd ${SETTE_DIR}
374    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
375
376## Reproducibility tests for ORCA2_ICE_PISCES
377    export TEST_NAME="REPRO_4_8"
378    cd ${MAIN_DIR}
379    cd ${SETTE_DIR}
380    . ./param.cfg
381    . ./all_functions.sh
382    . ./prepare_exe_dir.sh
383    JOB_FILE=${EXE_DIR}/run_job.sh
384    NPROC=32
385    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
386    cd ${EXE_DIR}
387    set_namelist namelist_cfg cn_exp \"O2L3P_48\"
388    set_namelist namelist_cfg nn_it000 1
389    set_namelist namelist_cfg nn_itend 990
390    set_namelist namelist_cfg jpni 4
391    set_namelist namelist_cfg jpnj 8
392    set_namelist namelist_cfg jpnij 32
393    if [ ${USING_ICEBERGS} == "no" ] ; then set_namelist namelist_cfg ln_icebergs .false. ; fi
394    set_namelist namelist_top_cfg ln_trcdta .false.
395    # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false
396    # if not you need input files, and for tests is not necessary
397    set_namelist namelist_pisces_cfg ln_presatm .false.
398    set_namelist namelist_pisces_cfg ln_varpar .false.
399    set_namelist namelist_pisces_cfg ln_dust .false.
400    set_namelist namelist_pisces_cfg ln_solub .false.
401    set_namelist namelist_pisces_cfg ln_river .false.
402    set_namelist namelist_pisces_cfg ln_ndepo .false.
403    set_namelist namelist_pisces_cfg ln_ironsed .false.
404    set_namelist namelist_pisces_cfg ln_ironice .false.
405    set_namelist namelist_pisces_cfg ln_hydrofe .false.
406    # put ln_pisdmp to false : no restoring to global mean value
407    set_namelist namelist_pisces_cfg ln_pisdmp .false.
408    if [ ${USING_MPMD} == "yes" ] ; then
409       set_xio_using_server iodef.xml true
410    else
411       set_xio_using_server iodef.xml false
412    fi
413    cd ${SETTE_DIR}
414    . ./prepare_job.sh input_ORCA2_ICE_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
415    cd ${SETTE_DIR}
416    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
417
418    cd ${SETTE_DIR}
419    export TEST_NAME="REPRO_8_4"
420    . ./prepare_exe_dir.sh
421    JOB_FILE=${EXE_DIR}/run_job.sh
422    NPROC=32
423    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
424    cd ${EXE_DIR}
425    set_namelist namelist_cfg cn_exp \"O2L3P_84\"
426    set_namelist namelist_cfg nn_it000 1
427    set_namelist namelist_cfg nn_itend 990
428    set_namelist namelist_cfg jpni 8
429    set_namelist namelist_cfg jpnj 4
430    set_namelist namelist_cfg jpnij 32
431    if [ ${USING_ICEBERGS} == "no" ] ; then set_namelist namelist_cfg ln_icebergs .false. ; fi
432    set_namelist namelist_top_cfg ln_trcdta .false.
433    # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false
434    # if not you need input files, and for tests is not necessary
435    set_namelist namelist_pisces_cfg ln_presatm .false.
436    set_namelist namelist_pisces_cfg ln_varpar .false.
437    set_namelist namelist_pisces_cfg ln_dust .false.
438    set_namelist namelist_pisces_cfg ln_solub .false.
439    set_namelist namelist_pisces_cfg ln_river .false.
440    set_namelist namelist_pisces_cfg ln_ndepo .false.
441    set_namelist namelist_pisces_cfg ln_ironsed .false.
442    set_namelist namelist_pisces_cfg ln_ironice .false.
443    set_namelist namelist_pisces_cfg ln_hydrofe .false.
444    # put ln_pisdmp to false : no restoring to global mean value
445    set_namelist namelist_pisces_cfg ln_pisdmp .false.
446    if [ ${USING_MPMD} == "yes" ] ; then
447       set_xio_using_server iodef.xml true
448    else
449       set_xio_using_server iodef.xml false
450    fi
451    cd ${SETTE_DIR}
452    . ./prepare_job.sh input_ORCA2_ICE_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
453    cd ${SETTE_DIR}
454    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
455fi
456
457# ----------------
458# ORCA2_OFF_PISCES
459# ----------------
460if [ ${config} -eq 3 ] ;  then
461## Restartability tests for ORCA2_OFF_PISCES
462    export TEST_NAME="LONG"
463    cd ${MAIN_DIR}
464    . ./makenemo -m ${CMP_NAM} -n ORCA2_OFF_PISCES_ST -r ORCA2_OFF_PISCES -j 8 del_key ${DEL_KEYS}
465    cd ${SETTE_DIR}
466    . ./param.cfg
467    . ./all_functions.sh
468    . ./prepare_exe_dir.sh
469    JOB_FILE=${EXE_DIR}/run_job.sh
470    NPROC=32
471    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
472    cd ${EXE_DIR}
473    set_namelist namelist_cfg cn_exp \"OFFP_LONG\"
474    set_namelist namelist_cfg nn_it000 1
475    set_namelist namelist_cfg nn_itend 380
476    set_namelist namelist_cfg nn_stock 190
477    set_namelist namelist_cfg jpni 4
478    set_namelist namelist_cfg jpnj 8
479    set_namelist namelist_cfg jpnij 32
480    set_namelist namelist_cfg ln_qsr_rgb .true.
481    set_namelist namelist_top_cfg ln_trcdta .false.
482    # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false
483    # if not you need input files, and for tests is not necessary
484    set_namelist namelist_pisces_cfg ln_presatm .false.
485    set_namelist namelist_pisces_cfg ln_varpar .false.
486    set_namelist namelist_pisces_cfg ln_dust .false.
487    set_namelist namelist_pisces_cfg ln_solub .false.
488    set_namelist namelist_pisces_cfg ln_river .false.
489    set_namelist namelist_pisces_cfg ln_ndepo .false.
490    set_namelist namelist_pisces_cfg ln_ironsed .false.
491    set_namelist namelist_pisces_cfg ln_ironice .false.
492    set_namelist namelist_pisces_cfg ln_hydrofe .false.
493    # put ln_pisdmp to false : no restoring to global mean value
494    set_namelist namelist_pisces_cfg ln_pisdmp .false.
495    if [ ${USING_MPMD} == "yes" ] ; then
496       set_xio_using_server iodef.xml true
497    else
498       set_xio_using_server iodef.xml false
499    fi
500    cd ${SETTE_DIR}
501    . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
502   
503    cd ${SETTE_DIR}
504    export TEST_NAME="SHORT"
505    . ./prepare_exe_dir.sh
506    cd ${EXE_DIR}
507    set_namelist namelist_cfg cn_exp \"OFFP_SHORT\"
508    set_namelist namelist_cfg nn_it000 191
509    set_namelist namelist_cfg nn_itend 380
510    set_namelist namelist_cfg nn_stock 190
511    set_namelist namelist_cfg jpni 4
512    set_namelist namelist_cfg jpnj 8
513    set_namelist namelist_cfg jpnij 32
514    set_namelist namelist_cfg ln_qsr_rgb .true.
515    set_namelist namelist_top_cfg ln_rsttr .true.
516    set_namelist namelist_top_cfg nn_rsttr 2
517    set_namelist namelist_top_cfg cn_trcrst_in \"OFFP_LONG_00000190_restart_trc\"
518    for (( i=1; i<=$NPROC; i++)) ; do
519        L_NPROC=$(( $i - 1 ))
520        L_NPROC=`printf "%04d\n" ${L_NPROC}`
521        ln -sf ../LONG/OFFP_LONG_00000190_restart_trc_${L_NPROC}.nc .
522    done
523    # put ln_ironsed, ln_river, ln_ndepo, ln_dust
524    # if not you need input files, and for tests is not necessary
525    set_namelist namelist_pisces_cfg ln_presatm .false.
526    set_namelist namelist_pisces_cfg ln_varpar .false.
527    set_namelist namelist_pisces_cfg ln_dust .false.
528    set_namelist namelist_pisces_cfg ln_solub .false.
529    set_namelist namelist_pisces_cfg ln_river .false.
530    set_namelist namelist_pisces_cfg ln_ndepo .false.
531    set_namelist namelist_pisces_cfg ln_ironsed .false.
532    set_namelist namelist_pisces_cfg ln_ironice .false.
533    set_namelist namelist_pisces_cfg ln_hydrofe .false.
534    # put ln_pisdmp to false : no restoring to global mean value
535    set_namelist namelist_pisces_cfg ln_pisdmp .false.
536    if [ ${USING_MPMD} == "yes" ] ; then
537       set_xio_using_server iodef.xml true
538    else
539       set_xio_using_server iodef.xml false
540    fi
541    cd ${SETTE_DIR}
542    . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME}  ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
543    cd ${SETTE_DIR}
544    . ./fcm_job.sh $NPROC  ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
545
546## Reproducibility tests for ORCA2_OFF_PISCES
547    export TEST_NAME="REPRO_4_8"
548    cd ${MAIN_DIR}
549    cd ${SETTE_DIR}
550    . ./param.cfg
551    . ./all_functions.sh
552    . ./prepare_exe_dir.sh
553    JOB_FILE=${EXE_DIR}/run_job.sh
554    NPROC=32
555    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
556    cd ${EXE_DIR}
557    set_namelist namelist_cfg cn_exp \"OFFP_48\"
558    set_namelist namelist_cfg nn_it000 1
559    set_namelist namelist_cfg nn_itend 380
560    set_namelist namelist_cfg jpni 4
561    set_namelist namelist_cfg jpnj 8
562    set_namelist namelist_cfg jpnij 32
563    set_namelist namelist_cfg ln_qsr_rgb .true.
564    set_namelist namelist_top_cfg ln_trcdta .false.
565    # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false
566    # if not you need input files, and for tests is not necessary
567    set_namelist namelist_pisces_cfg ln_presatm .false.
568    set_namelist namelist_pisces_cfg ln_varpar .false.
569    set_namelist namelist_pisces_cfg ln_dust .false.
570    set_namelist namelist_pisces_cfg ln_solub .false.
571    set_namelist namelist_pisces_cfg ln_river .false.
572    set_namelist namelist_pisces_cfg ln_ndepo .false.
573    set_namelist namelist_pisces_cfg ln_ironsed .false.
574    set_namelist namelist_pisces_cfg ln_ironice .false.
575    set_namelist namelist_pisces_cfg ln_hydrofe .false.
576    # put ln_pisdmp to false : no restoring to global mean value
577    set_namelist namelist_pisces_cfg ln_pisdmp .false.
578    if [ ${USING_MPMD} == "yes" ] ; then
579       set_xio_using_server iodef.xml true
580    else
581       set_xio_using_server iodef.xml false
582    fi
583    cd ${SETTE_DIR}
584    . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
585    cd ${SETTE_DIR}
586    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
587
588    cd ${SETTE_DIR}
589    export TEST_NAME="REPRO_8_4"
590    . ./prepare_exe_dir.sh
591    JOB_FILE=${EXE_DIR}/run_job.sh
592    NPROC=32
593    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
594    cd ${EXE_DIR}
595    set_namelist namelist_cfg cn_exp \"OFFP_84\"
596    set_namelist namelist_cfg nn_it000 1
597    set_namelist namelist_cfg nn_itend 380
598    set_namelist namelist_cfg jpni 8
599    set_namelist namelist_cfg jpnj 4
600    set_namelist namelist_cfg jpnij 32
601    set_namelist namelist_cfg ln_qsr_rgb .true.
602    set_namelist namelist_top_cfg ln_trcdta .false.
603    # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false
604    # if not you need input files, and for tests is not necessary
605    set_namelist namelist_pisces_cfg ln_presatm .false.
606    set_namelist namelist_pisces_cfg ln_varpar .false.
607    set_namelist namelist_pisces_cfg ln_dust .false.
608    set_namelist namelist_pisces_cfg ln_solub .false.
609    set_namelist namelist_pisces_cfg ln_river .false.
610    set_namelist namelist_pisces_cfg ln_ndepo .false.
611    set_namelist namelist_pisces_cfg ln_ironsed .false.
612    set_namelist namelist_pisces_cfg ln_ironice .false.
613    set_namelist namelist_pisces_cfg ln_hydrofe .false.
614    # put ln_pisdmp to false : no restoring to global mean value
615    set_namelist namelist_pisces_cfg ln_pisdmp .false.
616    if [ ${USING_MPMD} == "yes" ] ; then
617       set_xio_using_server iodef.xml true
618    else
619       set_xio_using_server iodef.xml false
620    fi
621    cd ${SETTE_DIR}
622    . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
623    cd ${SETTE_DIR}
624    . ./fcm_job.sh $NPROC  ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
625fi
626
627# -----
628# AMM12
629# -----
630if [ ${config} -eq 4 ] ;  then
631    ## Restartability tests for AMM12
632    export TEST_NAME="LONG"
633    cd ${MAIN_DIR}
634    . ./makenemo -m ${CMP_NAM} -n AMM12_ST -r AMM12 -j 8 del_key ${DEL_KEYS}
635    cd ${SETTE_DIR}
636    . ./param.cfg
637    . ./all_functions.sh
638    . ./prepare_exe_dir.sh
639    JOB_FILE=${EXE_DIR}/run_job.sh
640    NPROC=32
641    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
642    cd ${EXE_DIR}
643    set_namelist namelist_cfg cn_exp \"AMM12_LONG\"
644    set_namelist namelist_cfg nn_it000 1
645    set_namelist namelist_cfg nn_itend 576
646    set_namelist namelist_cfg nn_stock 288
647    set_namelist namelist_cfg jpni 4
648    set_namelist namelist_cfg jpnj 8
649    set_namelist namelist_cfg jpnij 32
650    if [ ${USING_MPMD} == "yes" ] ; then
651       set_xio_using_server iodef.xml true
652    else
653       set_xio_using_server iodef.xml false
654    fi
655    cd ${SETTE_DIR}
656    . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
657
658    cd ${SETTE_DIR}
659    export TEST_NAME="SHORT"
660    . ./prepare_exe_dir.sh
661    cd ${EXE_DIR}
662    set_namelist namelist_cfg cn_exp \"AMM12_SHORT\"
663    set_namelist namelist_cfg nn_it000 289
664    set_namelist namelist_cfg nn_itend 576
665    set_namelist namelist_cfg jpni 4
666    set_namelist namelist_cfg jpnj 8
667    set_namelist namelist_cfg jpnij 32
668    set_namelist namelist_cfg ln_rstart .true.
669    set_namelist namelist_cfg nn_rstctl 2
670    set_namelist namelist_cfg cn_ocerst_in \"AMM12_LONG_00000288_restart\"
671    set_namelist namelist_cfg nn_date0 20120102
672    for (( i=1; i<=$NPROC; i++)) ; do
673        L_NPROC=$(( $i - 1 ))
674        L_NPROC=`printf "%04d\n" ${L_NPROC}`
675        ln -sf ../LONG/AMM12_LONG_00000288_restart_${L_NPROC}.nc .
676    done
677    if [ ${USING_MPMD} == "yes" ] ; then
678       set_xio_using_server iodef.xml true
679    else
680       set_xio_using_server iodef.xml false
681    fi
682    cd ${SETTE_DIR}
683    . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
684    cd ${SETTE_DIR}
685    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
686
687## Reproducibility tests for AMM12
688    export TEST_NAME="REPRO_8_4"
689    cd ${MAIN_DIR}
690    cd ${SETTE_DIR}
691    . ./param.cfg
692    . ./all_functions.sh
693    . ./prepare_exe_dir.sh
694    JOB_FILE=${EXE_DIR}/run_job.sh
695    NPROC=32
696    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
697    cd ${EXE_DIR}
698    set_namelist namelist_cfg cn_exp \"AMM12_84\"
699    set_namelist namelist_cfg nn_it000 1
700    set_namelist namelist_cfg nn_itend 576
701    set_namelist namelist_cfg jpni 8
702    set_namelist namelist_cfg jpnj 4
703    set_namelist namelist_cfg jpnij 32
704    if [ ${USING_MPMD} == "yes" ] ; then
705       set_xio_using_server iodef.xml true
706    else
707       set_xio_using_server iodef.xml false
708    fi
709    cd ${SETTE_DIR}
710    . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
711    cd ${SETTE_DIR}
712    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
713
714    cd ${SETTE_DIR}
715    export TEST_NAME="REPRO_4_8"
716    . ./prepare_exe_dir.sh
717    JOB_FILE=${EXE_DIR}/run_job.sh
718    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
719    cd ${EXE_DIR}
720    set_namelist namelist_cfg cn_exp \"AMM12_48\"
721    set_namelist namelist_cfg nn_it000 1
722    set_namelist namelist_cfg nn_itend 576
723    set_namelist namelist_cfg jpni 4
724    set_namelist namelist_cfg jpnj 8
725    set_namelist namelist_cfg jpnij 32
726    if [ ${USING_MPMD} == "yes" ] ; then
727       set_xio_using_server iodef.xml true
728    else
729       set_xio_using_server iodef.xml false
730    fi
731    cd ${SETTE_DIR}
732    . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
733    cd ${SETTE_DIR}
734    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
735fi
736
737
738# ---------
739# ORCA2_SAS
740# ---------
741if [ ${config} -eq 5 ] ;  then
742## Restartability tests
743    export TEST_NAME="LONG"
744    cd ${MAIN_DIR}
745    . ./makenemo -m ${CMP_NAM} -n ORCA2_SAS_ICE_ST -r ORCA2_SAS_ICE -j 8 del_key ${DEL_KEYS}
746    cd ${SETTE_DIR}
747    . ./param.cfg
748    . ./all_functions.sh
749    . ./prepare_exe_dir.sh
750    JOB_FILE=${EXE_DIR}/run_job.sh
751    NPROC=32
752    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
753    cd ${EXE_DIR}
754    set_namelist namelist_cfg cn_exp \"SAS\"
755    set_namelist namelist_cfg nn_it000 1
756    set_namelist namelist_cfg nn_itend 240
757    set_namelist namelist_cfg nn_stock 120
758    set_namelist namelist_cfg jpni 4
759    set_namelist namelist_cfg jpnj 8
760    set_namelist namelist_cfg jpnij 32
761    set_namelist namelist_ice_cfg ln_icediachk .true.
762    if [ ${USING_MPMD} == "yes" ] ; then
763       set_xio_using_server iodef.xml true
764    else
765       set_xio_using_server iodef.xml false
766    fi
767    cd ${SETTE_DIR}
768    . ./prepare_job.sh input_SAS.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
769
770    cd ${SETTE_DIR}
771    export TEST_NAME="SHORT"
772    . ./prepare_exe_dir.sh
773    cd ${EXE_DIR}
774    set_namelist namelist_cfg cn_exp \"SAS\"
775    set_namelist namelist_cfg nn_it000 121
776    set_namelist namelist_cfg nn_itend 240
777    set_namelist namelist_cfg jpni 4
778    set_namelist namelist_cfg jpnj 8
779    set_namelist namelist_cfg jpnij 32
780    set_namelist namelist_cfg ln_rstart .true.
781    set_namelist namelist_cfg nn_rstctl 2
782    set_namelist namelist_cfg nn_date0 010109
783    set_namelist namelist_cfg cn_ocerst_in \"SAS_00000120_restart\"
784    set_namelist namelist_ice_cfg cn_icerst_in \"SAS_00000120_restart_ice\"
785    if [ ${USING_MPMD} == "yes" ] ; then
786       set_xio_using_server iodef.xml true
787    else
788       set_xio_using_server iodef.xml false
789    fi
790    for (( i=1; i<=$NPROC; i++)) ; do
791        L_NPROC=$(( $i - 1 ))
792        L_NPROC=`printf "%04d\n" ${L_NPROC}`
793        ln -sf ../LONG/SAS_00000120_restart_${L_NPROC}.nc .
794        ln -sf ../LONG/SAS_00000120_restart_ice_${L_NPROC}.nc .
795    done
796    cd ${SETTE_DIR}
797    . ./prepare_job.sh input_SAS.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
798    cd ${SETTE_DIR}
799    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
800
801## Reproducibility tests
802    export TEST_NAME="REPRO_4_8"
803    cd ${MAIN_DIR}
804    cd ${SETTE_DIR}
805    . ./param.cfg
806    . ./all_functions.sh
807    . ./prepare_exe_dir.sh
808    JOB_FILE=${EXE_DIR}/run_job.sh
809    NPROC=32
810    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
811    cd ${EXE_DIR}
812    set_namelist namelist_cfg cn_exp \"SAS_48\"
813    set_namelist namelist_cfg nn_it000 1
814    set_namelist namelist_cfg nn_itend 75
815    set_namelist namelist_cfg jpni 4
816    set_namelist namelist_cfg jpnj 8
817    set_namelist namelist_cfg jpnij 32
818    if [ ${USING_MPMD} == "yes" ] ; then
819       set_xio_using_server iodef.xml true
820    else
821       set_xio_using_server iodef.xml false
822    fi
823    cd ${SETTE_DIR}
824    . ./prepare_job.sh input_SAS.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
825    cd ${SETTE_DIR}
826    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
827
828    cd ${SETTE_DIR}
829    export TEST_NAME="REPRO_8_4"
830    . ./prepare_exe_dir.sh
831    JOB_FILE=${EXE_DIR}/run_job.sh
832    NPROC=32
833    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
834    cd ${EXE_DIR}
835    set_namelist namelist_cfg cn_exp \"SAS_84\"
836    set_namelist namelist_cfg nn_it000 1
837    set_namelist namelist_cfg nn_itend 75
838    set_namelist namelist_cfg jpni 8
839    set_namelist namelist_cfg jpnj 4
840    set_namelist namelist_cfg jpnij 32
841    if [ ${USING_MPMD} == "yes" ] ; then
842       set_xio_using_server iodef.xml true
843    else
844       set_xio_using_server iodef.xml false
845    fi
846    cd ${SETTE_DIR}
847    . ./prepare_job.sh input_SAS.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
848    cd ${SETTE_DIR}
849    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
850
851fi
852
853
854# --------------
855# ORCA2_ICE_OBS
856# --------------
857## Test assimilation interface code, OBS and ASM for reproducibility
858## Restartability not tested (ASM code not restartable while increments are being applied)
859if [ ${config} -eq 6 ] ; then
860## Reproducibility tests
861    export TEST_NAME="REPRO_4_8"
862    cd ${MAIN_DIR}
863    . ./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"
864    cd ${SETTE_DIR}
865    . ./param.cfg
866    . ./all_functions.sh
867    . ./prepare_exe_dir.sh
868    JOB_FILE=${EXE_DIR}/run_job.sh
869    NPROC=32
870    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
871    cd ${EXE_DIR}
872    set_namelist namelist_cfg cn_exp \"O2L3OBS_48\"
873    set_namelist namelist_cfg nn_it000 1
874    set_namelist namelist_cfg nn_itend 75
875    set_namelist namelist_cfg ln_read_cfg .true.
876    set_namelist namelist_cfg jpni 4
877    set_namelist namelist_cfg jpnj 8
878    set_namelist namelist_cfg jpnij 32
879    set_namelist namelist_cfg ln_diaobs .true.
880    set_namelist namelist_cfg ln_t3d .true.
881    set_namelist namelist_cfg ln_s3d .true.
882    set_namelist namelist_cfg ln_sst .true.
883    set_namelist namelist_cfg ln_sla .true.
884    set_namelist namelist_cfg ln_sic .true.
885    set_namelist namelist_cfg ln_vel3d .true.
886    set_namelist namelist_cfg ln_bkgwri .true.
887    set_namelist namelist_cfg ln_trainc .true.
888    set_namelist namelist_cfg ln_dyninc .true.
889    set_namelist namelist_cfg ln_sshinc .true.
890    set_namelist namelist_cfg ln_asmiau .true.
891    #remove all useless options for pisces (due to ORCA2_ICE_PISCES reference configuration)
892    set_namelist namelist_top_cfg ln_trcdta .false.
893    # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false
894    # if not you need input files, and for tests is not necessary
895    set_namelist namelist_pisces_cfg ln_presatm .false.
896    set_namelist namelist_pisces_cfg ln_varpar .false.
897    set_namelist namelist_pisces_cfg ln_dust .false.
898    set_namelist namelist_pisces_cfg ln_solub .false.
899    set_namelist namelist_pisces_cfg ln_river .false.
900    set_namelist namelist_pisces_cfg ln_ndepo .false.
901    set_namelist namelist_pisces_cfg ln_ironsed .false.
902    set_namelist namelist_pisces_cfg ln_ironice .false.
903    set_namelist namelist_pisces_cfg ln_hydrofe .false.
904    if [ ${USING_MPMD} == "yes" ] ; then
905       set_xio_using_server iodef.xml true
906    else
907       set_xio_using_server iodef.xml false
908    fi
909    cd ${SETTE_DIR}
910    . ./prepare_job.sh input_ORCA2_ICE_OBS.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
911    cd ${SETTE_DIR}
912    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
913
914   cd ${SETTE_DIR}
915    export TEST_NAME="REPRO_8_4"
916    . ./prepare_exe_dir.sh
917    JOB_FILE=${EXE_DIR}/run_job.sh
918    NPROC=32
919    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
920    cd ${EXE_DIR}
921    set_namelist namelist_cfg cn_exp \"O2L3OBS_84\"
922    set_namelist namelist_cfg nn_it000 1
923    set_namelist namelist_cfg nn_itend 75
924    set_namelist namelist_cfg ln_read_cfg .true.
925    set_namelist namelist_cfg jpni 8
926    set_namelist namelist_cfg jpnj 4
927    set_namelist namelist_cfg jpnij 32
928    set_namelist namelist_cfg ln_diaobs .true.
929    set_namelist namelist_cfg ln_t3d .true.
930    set_namelist namelist_cfg ln_s3d .true.
931    set_namelist namelist_cfg ln_sst .true.
932    set_namelist namelist_cfg ln_sla .true.
933    set_namelist namelist_cfg ln_sic .true.
934    set_namelist namelist_cfg ln_vel3d .true.
935    set_namelist namelist_cfg ln_bkgwri .true.
936    set_namelist namelist_cfg ln_trainc .true.
937    set_namelist namelist_cfg ln_dyninc .true.
938    set_namelist namelist_cfg ln_sshinc .true.
939    set_namelist namelist_cfg ln_asmiau .true.
940    #remove all useless options for pisces (due to ORCA2_ICE_PISCES reference configuration)
941    set_namelist namelist_top_cfg ln_trcdta .false.
942    # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false
943    # if not you need input files, and for tests is not necessary
944    set_namelist namelist_pisces_cfg ln_presatm .false.
945    set_namelist namelist_pisces_cfg ln_varpar .false.
946    set_namelist namelist_pisces_cfg ln_dust .false.
947    set_namelist namelist_pisces_cfg ln_solub .false.
948    set_namelist namelist_pisces_cfg ln_river .false.
949    set_namelist namelist_pisces_cfg ln_ndepo .false.
950    set_namelist namelist_pisces_cfg ln_ironsed .false.
951    set_namelist namelist_pisces_cfg ln_ironice .false.
952    set_namelist namelist_pisces_cfg ln_hydrofe .false.
953    if [ ${USING_MPMD} == "yes" ] ; then
954       set_xio_using_server iodef.xml true
955    else
956       set_xio_using_server iodef.xml false
957    fi
958    cd ${SETTE_DIR}
959    . ./prepare_job.sh input_ORCA2_ICE_OBS.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
960    cd ${SETTE_DIR}
961    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
962fi
963
964# ------------
965# AGRIF ICE
966# -----------
967if [ ${config} -eq 7 ] ;  then
968## Restartability tests
969    export TEST_NAME="LONG"
970    cd ${MAIN_DIR}
971    . ./makenemo -m ${CMP_NAM} -n AGRIF_DEMO_ST -r AGRIF_DEMO -j 8 del_key ${DEL_KEYS}
972    cd ${SETTE_DIR}
973    . ./param.cfg
974    . ./all_functions.sh
975    . ./prepare_exe_dir.sh
976    JOB_FILE=${EXE_DIR}/run_job.sh
977    NPROC=16
978    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
979    cd ${EXE_DIR}
980    set_namelist namelist_cfg cn_exp \"AGRIF_LONG\"
981    set_namelist namelist_cfg nn_it000 1
982    set_namelist namelist_cfg nn_itend 20
983    set_namelist namelist_cfg nn_stock 10
984    set_namelist 1_namelist_cfg cn_exp \"AGRIF_LONG\"
985    set_namelist 1_namelist_cfg nn_it000 1
986    set_namelist 1_namelist_cfg nn_itend 20
987    set_namelist 1_namelist_cfg nn_stock 10
988    set_namelist 2_namelist_cfg cn_exp \"AGRIF_LONG\"
989    set_namelist 2_namelist_cfg nn_it000 1
990    set_namelist 2_namelist_cfg nn_itend 80
991    set_namelist 2_namelist_cfg nn_stock 40
992    set_namelist 3_namelist_cfg cn_exp \"AGRIF_LONG\"
993    set_namelist 3_namelist_cfg nn_it000 1
994    set_namelist 3_namelist_cfg nn_itend 240
995    set_namelist 3_namelist_cfg nn_stock 120
996
997    if [ ${USING_MPMD} == "yes" ] ; then
998       set_xio_using_server iodef.xml true
999    else
1000       set_xio_using_server iodef.xml false
1001    fi
1002    cd ${SETTE_DIR}
1003    . ./prepare_job.sh input_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
1004   
1005    cd ${SETTE_DIR}
1006    export TEST_NAME="SHORT"
1007    . ./prepare_exe_dir.sh
1008    cd ${EXE_DIR}
1009    set_namelist namelist_cfg cn_exp \"AGRIF_SHORT\"
1010    set_namelist namelist_cfg nn_it000 11
1011    set_namelist namelist_cfg nn_itend 20
1012    set_namelist namelist_cfg nn_stock 10
1013    set_namelist namelist_cfg ln_rstart .true.
1014    set_namelist namelist_cfg nn_rstctl 2
1015    set_namelist 1_namelist_cfg cn_exp \"AGRIF_SHORT\"
1016    set_namelist 1_namelist_cfg nn_it000 11
1017    set_namelist 1_namelist_cfg nn_itend 20
1018    set_namelist 1_namelist_cfg nn_stock 10
1019    set_namelist 1_namelist_cfg ln_rstart .true.
1020    set_namelist 1_namelist_cfg nn_rstctl 2
1021    set_namelist 2_namelist_cfg cn_exp \"AGRIF_SHORT\"
1022    set_namelist 2_namelist_cfg nn_it000 41
1023    set_namelist 2_namelist_cfg nn_itend 80
1024    set_namelist 2_namelist_cfg nn_stock 40
1025    set_namelist 2_namelist_cfg ln_rstart .true.
1026    set_namelist 2_namelist_cfg nn_rstctl 2
1027    set_namelist 3_namelist_cfg cn_exp \"AGRIF_SHORT\"
1028    set_namelist 3_namelist_cfg nn_it000 121
1029    set_namelist 3_namelist_cfg nn_itend 240
1030    set_namelist 3_namelist_cfg nn_stock 120
1031    set_namelist 3_namelist_cfg ln_rstart .true.
1032    set_namelist 3_namelist_cfg nn_rstctl 2
1033    set_namelist namelist_cfg cn_ocerst_in \"AGRIF_LONG_00000010_restart\"
1034    set_namelist namelist_ice_cfg cn_icerst_in \"AGRIF_LONG_00000010_restart_ice\"
1035    set_namelist 1_namelist_cfg cn_ocerst_in \"AGRIF_LONG_00000010_restart\"
1036    set_namelist 1_namelist_ice_cfg cn_icerst_in \"AGRIF_LONG_00000010_restart_ice\"
1037    set_namelist 2_namelist_cfg cn_ocerst_in \"AGRIF_LONG_00000040_restart\"
1038    set_namelist 2_namelist_ice_cfg cn_icerst_in \"AGRIF_LONG_00000040_restart_ice\"
1039    set_namelist 3_namelist_cfg cn_ocerst_in \"AGRIF_LONG_00000120_restart\"
1040    set_namelist 3_namelist_ice_cfg cn_icerst_in \"AGRIF_LONG_00000120_restart_ice\"
1041
1042    for (( i=1; i<=$NPROC; i++)) ; do
1043        L_NPROC=$(( $i - 1 ))
1044        L_NPROC=`printf "%04d\n" ${L_NPROC}`
1045        ln -sf ../LONG/AGRIF_LONG_00000010_restart_${L_NPROC}.nc .
1046        ln -sf ../LONG/AGRIF_LONG_00000010_restart_ice_${L_NPROC}.nc .
1047        ln -sf ../LONG/1_AGRIF_LONG_00000010_restart_${L_NPROC}.nc .
1048        ln -sf ../LONG/1_AGRIF_LONG_00000010_restart_ice_${L_NPROC}.nc .
1049        ln -sf ../LONG/2_AGRIF_LONG_00000040_restart_${L_NPROC}.nc .
1050        ln -sf ../LONG/2_AGRIF_LONG_00000040_restart_ice_${L_NPROC}.nc .
1051        ln -sf ../LONG/3_AGRIF_LONG_00000120_restart_${L_NPROC}.nc .
1052        ln -sf ../LONG/3_AGRIF_LONG_00000120_restart_ice_${L_NPROC}.nc .
1053    done
1054    if [ ${USING_MPMD} == "yes" ] ; then
1055       set_xio_using_server iodef.xml true
1056    else
1057       set_xio_using_server iodef.xml false
1058    fi
1059    cd ${SETTE_DIR}
1060    . ./prepare_job.sh input_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
1061    cd ${SETTE_DIR}
1062    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
1063
1064## Reproducibility tests
1065    export TEST_NAME="REPRO_4_8"
1066    cd ${MAIN_DIR}
1067    cd ${SETTE_DIR}
1068    . ./param.cfg
1069    . ./all_functions.sh
1070    . ./prepare_exe_dir.sh
1071    JOB_FILE=${EXE_DIR}/run_job.sh
1072    NPROC=32
1073    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
1074    cd ${EXE_DIR}
1075    set_namelist namelist_cfg cn_exp \"AGRIF_48\"
1076    set_namelist namelist_cfg nn_it000 1
1077    set_namelist namelist_cfg nn_itend 20
1078    set_namelist namelist_cfg jpni 4
1079    set_namelist namelist_cfg jpnj 8
1080    set_namelist namelist_cfg jpnij 32
1081    set_namelist 1_namelist_cfg cn_exp \"AGRIF_48\"
1082    set_namelist 1_namelist_cfg nn_it000 1
1083    set_namelist 1_namelist_cfg nn_itend 20
1084    set_namelist 1_namelist_cfg jpni 4
1085    set_namelist 1_namelist_cfg jpnj 8
1086    set_namelist 1_namelist_cfg jpnij 32
1087    set_namelist 2_namelist_cfg cn_exp \"AGRIF_48\"
1088    set_namelist 2_namelist_cfg nn_it000 1
1089    set_namelist 2_namelist_cfg nn_itend 80
1090    set_namelist 2_namelist_cfg jpni 4
1091    set_namelist 2_namelist_cfg jpnj 8
1092    set_namelist 2_namelist_cfg jpnij 32
1093    set_namelist 3_namelist_cfg cn_exp \"AGRIF_48\"
1094    set_namelist 3_namelist_cfg nn_it000 1
1095    set_namelist 3_namelist_cfg nn_itend 240
1096    set_namelist 3_namelist_cfg jpni 4
1097    set_namelist 3_namelist_cfg jpnj 8
1098    set_namelist 3_namelist_cfg jpnij 32
1099
1100    if [ ${USING_MPMD} == "yes" ] ; then
1101       set_xio_using_server iodef.xml true
1102    else
1103       set_xio_using_server iodef.xml false
1104    fi
1105    cd ${SETTE_DIR}
1106    . ./prepare_job.sh input_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
1107    cd ${SETTE_DIR}
1108    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
1109
1110    cd ${SETTE_DIR}
1111    export TEST_NAME="REPRO_8_4"
1112    . ./prepare_exe_dir.sh
1113    JOB_FILE=${EXE_DIR}/run_job.sh
1114    NPROC=32
1115    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
1116    cd ${EXE_DIR}
1117    set_namelist namelist_cfg cn_exp \"AGRIF_84\"
1118    set_namelist namelist_cfg nn_it000 1
1119    set_namelist namelist_cfg nn_itend 20
1120    set_namelist namelist_cfg jpni 8
1121    set_namelist namelist_cfg jpnj 4
1122    set_namelist namelist_cfg jpnij 32
1123    set_namelist 1_namelist_cfg cn_exp \"AGRIF_84\"
1124    set_namelist 1_namelist_cfg nn_it000 1
1125    set_namelist 1_namelist_cfg nn_itend 20
1126    set_namelist 1_namelist_cfg jpni 8
1127    set_namelist 1_namelist_cfg jpnj 4
1128    set_namelist 1_namelist_cfg jpnij 32
1129    set_namelist 2_namelist_cfg cn_exp \"AGRIF_84\"
1130    set_namelist 2_namelist_cfg nn_it000 1
1131    set_namelist 2_namelist_cfg nn_itend 80
1132    set_namelist 2_namelist_cfg jpni 8
1133    set_namelist 2_namelist_cfg jpnj 4
1134    set_namelist 2_namelist_cfg jpnij 32
1135    set_namelist 3_namelist_cfg cn_exp \"AGRIF_84\"
1136    set_namelist 3_namelist_cfg nn_it000 1
1137    set_namelist 3_namelist_cfg nn_itend 240
1138    set_namelist 3_namelist_cfg jpni 8
1139    set_namelist 3_namelist_cfg jpnj 4
1140    set_namelist 3_namelist_cfg jpnij 32
1141
1142    if [ ${USING_MPMD} == "yes" ] ; then
1143       set_xio_using_server iodef.xml true
1144    else
1145       set_xio_using_server iodef.xml false
1146    fi
1147    cd ${SETTE_DIR}
1148    . ./prepare_job.sh input_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
1149    cd ${SETTE_DIR}
1150    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
1151
1152## test code corruption with AGRIF (phase 1) ==> Compile with key_agrif but run with no zoom
1153    export TEST_NAME="ORCA2"
1154    cd ${MAIN_DIR}
1155    cd ${SETTE_DIR}
1156    . ./param.cfg
1157    . ./all_functions.sh
1158    . ./prepare_exe_dir.sh
1159    JOB_FILE=${EXE_DIR}/run_job.sh
1160    NPROC=32
1161    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
1162    cd ${EXE_DIR}
1163    set_namelist namelist_cfg cn_exp \"ORCA2\"
1164    set_namelist namelist_cfg nn_it000 1
1165    set_namelist namelist_cfg nn_itend 150
1166
1167#   Set the number of fine grids to zero:   
1168    sed -i "1s/.*/0/" ${EXE_DIR}/AGRIF_FixedGrids.in
1169
1170    if [ ${USING_MPMD} == "yes" ] ; then
1171       set_xio_using_server iodef.xml true
1172    else
1173       set_xio_using_server iodef.xml false
1174    fi
1175    cd ${SETTE_DIR}
1176    . ./prepare_job.sh input_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
1177    cd ${SETTE_DIR}
1178    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
1179
1180fi
1181
1182
1183## test code corruption with AGRIF (phase 2) ==> Compile without key_agrif (to be compared with AGRIF_DEMO_ST/ORCA2)
1184if [ ${config} -eq 8 ] ;  then
1185    export TEST_NAME="ORCA2"
1186    cd ${MAIN_DIR}
1187    . ./makenemo -m ${CMP_NAM} -n AGRIF_DEMO_NOAGRIF_ST -r AGRIF_DEMO -j 8 del_key "key_agrif"
1188    cd ${SETTE_DIR}
1189    . ./param.cfg
1190    . ./all_functions.sh
1191    . ./prepare_exe_dir.sh
1192    JOB_FILE=${EXE_DIR}/run_job.sh
1193    NPROC=32
1194    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
1195    cd ${EXE_DIR}
1196    set_namelist namelist_cfg cn_exp \"ORCA2\"
1197    set_namelist namelist_cfg nn_it000 1
1198    set_namelist namelist_cfg nn_itend 150
1199#
1200    if [ ${USING_MPMD} == "yes" ] ; then
1201       set_xio_using_server iodef.xml true
1202    else
1203       set_xio_using_server iodef.xml false
1204    fi
1205    cd ${SETTE_DIR}
1206    . ./prepare_job.sh input_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
1207    cd ${SETTE_DIR}
1208    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
1209
1210fi
1211
1212# -------
1213# SPITZ12
1214# -------
1215if [ ${config} -eq 9 ] ;  then
1216## Restartability tests
1217    export TEST_NAME="LONG"
1218    cd ${MAIN_DIR}
1219    . ./makenemo -m ${CMP_NAM} -n SPITZ12_ST -r SPITZ12 -j 8 del_key ${DEL_KEYS}
1220    cd ${SETTE_DIR}
1221    . ./param.cfg
1222    . ./all_functions.sh
1223    . ./prepare_exe_dir.sh
1224    JOB_FILE=${EXE_DIR}/run_job.sh
1225    NPROC=32
1226    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
1227    cd ${EXE_DIR}
1228    set_namelist namelist_cfg cn_exp \"S12_LONG\"
1229    set_namelist namelist_cfg nn_it000 1
1230    set_namelist namelist_cfg nn_itend 240
1231    set_namelist namelist_cfg nn_stock 120
1232    set_namelist namelist_cfg nn_date0 20020101
1233    set_namelist namelist_cfg jpni 4
1234    set_namelist namelist_cfg jpnj 8
1235    set_namelist namelist_cfg jpnij 32
1236    #set_namelist namelist_ice_cfg ln_icediachk .true.
1237    if [ ${USING_MPMD} == "yes" ] ; then
1238       set_xio_using_server iodef.xml true
1239    else
1240       set_xio_using_server iodef.xml false
1241    fi
1242    cd ${SETTE_DIR}
1243    . ./prepare_job.sh input_SPITZ12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
1244   
1245    cd ${SETTE_DIR}
1246    export TEST_NAME="SHORT"
1247    . ./prepare_exe_dir.sh
1248    cd ${EXE_DIR}
1249    set_namelist namelist_cfg cn_exp \"S12_SHORT\"
1250    set_namelist namelist_cfg nn_it000 121
1251    set_namelist namelist_cfg nn_itend 240
1252    set_namelist namelist_cfg nn_stock 120
1253    set_namelist namelist_cfg ln_rstart .true.
1254    set_namelist namelist_cfg nn_rstctl 2
1255    set_namelist namelist_cfg jpni 4
1256    set_namelist namelist_cfg jpnj 8
1257    set_namelist namelist_cfg jpnij 32
1258    set_namelist namelist_cfg cn_ocerst_in \"S12_LONG_00000120_restart\"
1259    set_namelist namelist_ice_cfg cn_icerst_in \"S12_LONG_00000120_restart_ice\"
1260    for (( i=1; i<=$NPROC; i++)) ; do
1261        L_NPROC=$(( $i - 1 ))
1262        L_NPROC=`printf "%04d\n" ${L_NPROC}`
1263        ln -sf ../LONG/S12_LONG_00000120_restart_${L_NPROC}.nc .
1264        ln -sf ../LONG/S12_LONG_00000120_restart_ice_${L_NPROC}.nc .
1265    done
1266    if [ ${USING_MPMD} == "yes" ] ; then
1267       set_xio_using_server iodef.xml true
1268    else
1269       set_xio_using_server iodef.xml false
1270    fi
1271    cd ${SETTE_DIR}
1272    . ./prepare_job.sh input_SPITZ12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
1273    cd ${SETTE_DIR}
1274    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
1275
1276## Reproducibility tests
1277    export TEST_NAME="REPRO_4_8"
1278    cd ${MAIN_DIR}
1279    cd ${SETTE_DIR}
1280    . ./param.cfg
1281    . ./all_functions.sh
1282    . ./prepare_exe_dir.sh
1283    JOB_FILE=${EXE_DIR}/run_job.sh
1284    NPROC=32
1285    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
1286    cd ${EXE_DIR}
1287    set_namelist namelist_cfg cn_exp \"S12_48\"
1288    set_namelist namelist_cfg nn_it000 1
1289    set_namelist namelist_cfg nn_itend 120
1290    set_namelist namelist_cfg nn_date0 20020101
1291    set_namelist namelist_cfg jpni 4
1292    set_namelist namelist_cfg jpnj 8
1293    set_namelist namelist_cfg jpnij 32
1294    if [ ${USING_MPMD} == "yes" ] ; then
1295       set_xio_using_server iodef.xml true
1296    else
1297       set_xio_using_server iodef.xml false
1298    fi
1299    cd ${SETTE_DIR}
1300    . ./prepare_job.sh input_SPITZ12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
1301    cd ${SETTE_DIR}
1302    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
1303
1304    cd ${SETTE_DIR}
1305    export TEST_NAME="REPRO_8_4"
1306    . ./prepare_exe_dir.sh
1307    JOB_FILE=${EXE_DIR}/run_job.sh
1308    NPROC=32
1309    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
1310    cd ${EXE_DIR}
1311    set_namelist namelist_cfg cn_exp \"S12_84\"
1312    set_namelist namelist_cfg nn_it000 1
1313    set_namelist namelist_cfg nn_itend 120
1314    set_namelist namelist_cfg nn_date0 20020101
1315    set_namelist namelist_cfg jpni 8
1316    set_namelist namelist_cfg jpnj 4
1317    set_namelist namelist_cfg jpnij 32
1318    if [ ${USING_MPMD} == "yes" ] ; then
1319       set_xio_using_server iodef.xml true
1320    else
1321       set_xio_using_server iodef.xml false
1322    fi
1323    cd ${SETTE_DIR}
1324    . ./prepare_job.sh input_SPITZ12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
1325    cd ${SETTE_DIR}
1326    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
1327fi
1328
1329
1330done
Note: See TracBrowser for help on using the repository browser.