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

Last change on this file since 10189 was 10189, checked in by lovato, 6 years ago

Add waves coupling in ORCA2_ICE_PISCES test (#2014)

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