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

Last change on this file since 10433 was 10433, checked in by smasson, 20 months ago

sette: add missing ln_ctl = .true.

  • Property svn:executable set to *
File size: 52.3 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 ln_ctl .true.
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 ln_ctl .true.
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 ln_ctl .true.
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 ln_ctl .true.
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 ln_ctl .true.
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 ln_ctl .true.
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 ln_ctl .true.
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 ln_ctl .true.
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 ln_ctl .true.
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 ln_ctl .true.
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 ln_ctl .true.
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 ln_ctl .true.
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 ln_ctl .true.
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 ln_ctl .true.
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 ln_ctl .true.
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 ln_ctl .true.
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 ln_ctl .true.
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 ln_ctl .true.
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 ln_ctl .true.
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 ln_ctl .true.
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 ln_ctl .true.
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 ln_ctl .true.
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 namelist_cfg ln_ctl .true.
1010    set_namelist 1_namelist_cfg cn_exp \"AGRIF_LONG\"
1011    set_namelist 1_namelist_cfg nn_it000 1
1012    set_namelist 1_namelist_cfg nn_itend 20
1013    set_namelist 1_namelist_cfg nn_stock 10
1014    set_namelist 1_namelist_cfg ln_ctl .true.
1015    set_namelist 2_namelist_cfg cn_exp \"AGRIF_LONG\"
1016    set_namelist 2_namelist_cfg nn_it000 1
1017    set_namelist 2_namelist_cfg nn_itend 80
1018    set_namelist 2_namelist_cfg nn_stock 40
1019    set_namelist 2_namelist_cfg ln_ctl .true.
1020    set_namelist 3_namelist_cfg cn_exp \"AGRIF_LONG\"
1021    set_namelist 3_namelist_cfg nn_it000 1
1022    set_namelist 3_namelist_cfg nn_itend 240
1023    set_namelist 3_namelist_cfg nn_stock 120
1024    set_namelist 3_namelist_cfg ln_ctl .true.
1025
1026    if [ ${USING_MPMD} == "yes" ] ; then
1027       set_xio_using_server iodef.xml true
1028    else
1029       set_xio_using_server iodef.xml false
1030    fi
1031    cd ${SETTE_DIR}
1032    . ./prepare_job.sh input_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
1033   
1034    cd ${SETTE_DIR}
1035    export TEST_NAME="SHORT"
1036    . ./prepare_exe_dir.sh
1037    cd ${EXE_DIR}
1038    set_namelist namelist_cfg cn_exp \"AGRIF_SHORT\"
1039    set_namelist namelist_cfg nn_it000 11
1040    set_namelist namelist_cfg nn_itend 20
1041    set_namelist namelist_cfg nn_stock 10
1042    set_namelist namelist_cfg ln_ctl .true.
1043    set_namelist namelist_cfg ln_rstart .true.
1044    set_namelist namelist_cfg nn_rstctl 2
1045    set_namelist 1_namelist_cfg cn_exp \"AGRIF_SHORT\"
1046    set_namelist 1_namelist_cfg nn_it000 11
1047    set_namelist 1_namelist_cfg nn_itend 20
1048    set_namelist 1_namelist_cfg nn_stock 10
1049    set_namelist 1_namelist_cfg ln_ctl .true.
1050    set_namelist 1_namelist_cfg ln_rstart .true.
1051    set_namelist 1_namelist_cfg nn_rstctl 2
1052    set_namelist 2_namelist_cfg cn_exp \"AGRIF_SHORT\"
1053    set_namelist 2_namelist_cfg nn_it000 41
1054    set_namelist 2_namelist_cfg nn_itend 80
1055    set_namelist 2_namelist_cfg nn_stock 40
1056    set_namelist 2_namelist_cfg ln_ctl .true.
1057    set_namelist 2_namelist_cfg ln_rstart .true.
1058    set_namelist 2_namelist_cfg nn_rstctl 2
1059    set_namelist 3_namelist_cfg cn_exp \"AGRIF_SHORT\"
1060    set_namelist 3_namelist_cfg nn_it000 121
1061    set_namelist 3_namelist_cfg nn_itend 240
1062    set_namelist 3_namelist_cfg nn_stock 120
1063    set_namelist 3_namelist_cfg ln_ctl .true.
1064    set_namelist 3_namelist_cfg ln_rstart .true.
1065    set_namelist 3_namelist_cfg nn_rstctl 2
1066    set_namelist namelist_cfg cn_ocerst_in \"AGRIF_LONG_00000010_restart\"
1067    set_namelist namelist_ice_cfg cn_icerst_in \"AGRIF_LONG_00000010_restart_ice\"
1068    set_namelist 1_namelist_cfg cn_ocerst_in \"AGRIF_LONG_00000010_restart\"
1069    set_namelist 1_namelist_ice_cfg cn_icerst_in \"AGRIF_LONG_00000010_restart_ice\"
1070    set_namelist 2_namelist_cfg cn_ocerst_in \"AGRIF_LONG_00000040_restart\"
1071    set_namelist 2_namelist_ice_cfg cn_icerst_in \"AGRIF_LONG_00000040_restart_ice\"
1072    set_namelist 3_namelist_cfg cn_ocerst_in \"AGRIF_LONG_00000120_restart\"
1073    set_namelist 3_namelist_ice_cfg cn_icerst_in \"AGRIF_LONG_00000120_restart_ice\"
1074
1075    for (( i=1; i<=$NPROC; i++)) ; do
1076        L_NPROC=$(( $i - 1 ))
1077        L_NPROC=`printf "%04d\n" ${L_NPROC}`
1078        ln -sf ../LONG/AGRIF_LONG_00000010_restart_${L_NPROC}.nc .
1079        ln -sf ../LONG/AGRIF_LONG_00000010_restart_ice_${L_NPROC}.nc .
1080        ln -sf ../LONG/1_AGRIF_LONG_00000010_restart_${L_NPROC}.nc .
1081        ln -sf ../LONG/1_AGRIF_LONG_00000010_restart_ice_${L_NPROC}.nc .
1082        ln -sf ../LONG/2_AGRIF_LONG_00000040_restart_${L_NPROC}.nc .
1083        ln -sf ../LONG/2_AGRIF_LONG_00000040_restart_ice_${L_NPROC}.nc .
1084        ln -sf ../LONG/3_AGRIF_LONG_00000120_restart_${L_NPROC}.nc .
1085        ln -sf ../LONG/3_AGRIF_LONG_00000120_restart_ice_${L_NPROC}.nc .
1086    done
1087    if [ ${USING_MPMD} == "yes" ] ; then
1088       set_xio_using_server iodef.xml true
1089    else
1090       set_xio_using_server iodef.xml false
1091    fi
1092    cd ${SETTE_DIR}
1093    . ./prepare_job.sh input_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
1094    cd ${SETTE_DIR}
1095    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
1096
1097## Reproducibility tests
1098    export TEST_NAME="REPRO_4_8"
1099    cd ${MAIN_DIR}
1100    cd ${SETTE_DIR}
1101    . ./param.cfg
1102    . ./all_functions.sh
1103    . ./prepare_exe_dir.sh
1104    JOB_FILE=${EXE_DIR}/run_job.sh
1105    NPROC=32
1106    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
1107    cd ${EXE_DIR}
1108    set_namelist namelist_cfg cn_exp \"AGRIF_48\"
1109    set_namelist namelist_cfg nn_it000 1
1110    set_namelist namelist_cfg nn_itend 20
1111    set_namelist namelist_cfg jpni 4
1112    set_namelist namelist_cfg jpnj 8
1113    set_namelist namelist_cfg ln_ctl .true.
1114    set_namelist 1_namelist_cfg cn_exp \"AGRIF_48\"
1115    set_namelist 1_namelist_cfg nn_it000 1
1116    set_namelist 1_namelist_cfg nn_itend 20
1117    set_namelist 1_namelist_cfg jpni 4
1118    set_namelist 1_namelist_cfg jpnj 8
1119    set_namelist 1_namelist_cfg ln_ctl .true.
1120    set_namelist 2_namelist_cfg cn_exp \"AGRIF_48\"
1121    set_namelist 2_namelist_cfg nn_it000 1
1122    set_namelist 2_namelist_cfg nn_itend 80
1123    set_namelist 2_namelist_cfg jpni 4
1124    set_namelist 2_namelist_cfg jpnj 8
1125    set_namelist 2_namelist_cfg ln_ctl .true.
1126    set_namelist 3_namelist_cfg cn_exp \"AGRIF_48\"
1127    set_namelist 3_namelist_cfg nn_it000 1
1128    set_namelist 3_namelist_cfg nn_itend 240
1129    set_namelist 3_namelist_cfg jpni 4
1130    set_namelist 3_namelist_cfg jpnj 8
1131    set_namelist 3_namelist_cfg ln_ctl .true.
1132
1133    if [ ${USING_MPMD} == "yes" ] ; then
1134       set_xio_using_server iodef.xml true
1135    else
1136       set_xio_using_server iodef.xml false
1137    fi
1138    cd ${SETTE_DIR}
1139    . ./prepare_job.sh input_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
1140    cd ${SETTE_DIR}
1141    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
1142
1143    cd ${SETTE_DIR}
1144    export TEST_NAME="REPRO_8_4"
1145    . ./prepare_exe_dir.sh
1146    JOB_FILE=${EXE_DIR}/run_job.sh
1147    NPROC=32
1148    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
1149    cd ${EXE_DIR}
1150    set_namelist namelist_cfg cn_exp \"AGRIF_84\"
1151    set_namelist namelist_cfg nn_it000 1
1152    set_namelist namelist_cfg nn_itend 20
1153    set_namelist namelist_cfg jpni 8
1154    set_namelist namelist_cfg jpnj 4
1155    set_namelist namelist_cfg ln_ctl .true.
1156    set_namelist 1_namelist_cfg cn_exp \"AGRIF_84\"
1157    set_namelist 1_namelist_cfg nn_it000 1
1158    set_namelist 1_namelist_cfg nn_itend 20
1159    set_namelist 1_namelist_cfg jpni 8
1160    set_namelist 1_namelist_cfg jpnj 4
1161    set_namelist 1_namelist_cfg ln_ctl .true.
1162    set_namelist 2_namelist_cfg cn_exp \"AGRIF_84\"
1163    set_namelist 2_namelist_cfg nn_it000 1
1164    set_namelist 2_namelist_cfg nn_itend 80
1165    set_namelist 2_namelist_cfg jpni 8
1166    set_namelist 2_namelist_cfg jpnj 4
1167    set_namelist 2_namelist_cfg ln_ctl .true.
1168    set_namelist 3_namelist_cfg cn_exp \"AGRIF_84\"
1169    set_namelist 3_namelist_cfg nn_it000 1
1170    set_namelist 3_namelist_cfg nn_itend 240
1171    set_namelist 3_namelist_cfg jpni 8
1172    set_namelist 3_namelist_cfg jpnj 4
1173    set_namelist 3_namelist_cfg ln_ctl .true.
1174
1175    if [ ${USING_MPMD} == "yes" ] ; then
1176       set_xio_using_server iodef.xml true
1177    else
1178       set_xio_using_server iodef.xml false
1179    fi
1180    cd ${SETTE_DIR}
1181    . ./prepare_job.sh input_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
1182    cd ${SETTE_DIR}
1183    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
1184
1185## test code corruption with AGRIF (phase 1) ==> Compile with key_agrif but run with no zoom
1186    export TEST_NAME="ORCA2"
1187    cd ${MAIN_DIR}
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    set_namelist namelist_cfg ln_ctl .true.
1200
1201#   Set the number of fine grids to zero:   
1202    sed -i "1s/.*/0/" ${EXE_DIR}/AGRIF_FixedGrids.in
1203
1204    if [ ${USING_MPMD} == "yes" ] ; then
1205       set_xio_using_server iodef.xml true
1206    else
1207       set_xio_using_server iodef.xml false
1208    fi
1209    cd ${SETTE_DIR}
1210    . ./prepare_job.sh input_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
1211    cd ${SETTE_DIR}
1212    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
1213
1214fi
1215
1216
1217## test code corruption with AGRIF (phase 2) ==> Compile without key_agrif (to be compared with AGRIF_DEMO_ST/ORCA2)
1218if [ ${config} -eq 8 ] ;  then
1219    export TEST_NAME="ORCA2"
1220    cd ${MAIN_DIR}
1221    . ./makenemo -m ${CMP_NAM} -n AGRIF_DEMO_NOAGRIF_ST -r AGRIF_DEMO -j 8 del_key "key_agrif"
1222    cd ${SETTE_DIR}
1223    . ./param.cfg
1224    . ./all_functions.sh
1225    . ./prepare_exe_dir.sh
1226    JOB_FILE=${EXE_DIR}/run_job.sh
1227    NPROC=32
1228    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
1229    cd ${EXE_DIR}
1230    set_namelist namelist_cfg cn_exp \"ORCA2\"
1231    set_namelist namelist_cfg nn_it000 1
1232    set_namelist namelist_cfg nn_itend 150
1233    set_namelist namelist_cfg ln_ctl .true.
1234#
1235    if [ ${USING_MPMD} == "yes" ] ; then
1236       set_xio_using_server iodef.xml true
1237    else
1238       set_xio_using_server iodef.xml false
1239    fi
1240    cd ${SETTE_DIR}
1241    . ./prepare_job.sh input_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
1242    cd ${SETTE_DIR}
1243    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
1244
1245fi
1246
1247# -------
1248# SPITZ12
1249# -------
1250if [ ${config} -eq 9 ] ;  then
1251## Restartability tests
1252    export TEST_NAME="LONG"
1253    cd ${MAIN_DIR}
1254    . ./makenemo -m ${CMP_NAM} -n SPITZ12_ST -r SPITZ12 -j 8 del_key ${DEL_KEYS}
1255    cd ${SETTE_DIR}
1256    . ./param.cfg
1257    . ./all_functions.sh
1258    . ./prepare_exe_dir.sh
1259    JOB_FILE=${EXE_DIR}/run_job.sh
1260    NPROC=32
1261    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
1262    cd ${EXE_DIR}
1263    set_namelist namelist_cfg cn_exp \"S12_LONG\"
1264    set_namelist namelist_cfg nn_it000 1
1265    set_namelist namelist_cfg nn_itend 240
1266    set_namelist namelist_cfg nn_stock 120
1267    set_namelist namelist_cfg nn_date0 20020101
1268    set_namelist namelist_cfg jpni 4
1269    set_namelist namelist_cfg jpnj 8
1270    set_namelist namelist_cfg ln_ctl .true.
1271    #set_namelist namelist_ice_cfg ln_icediachk .true.
1272    if [ ${USING_MPMD} == "yes" ] ; then
1273       set_xio_using_server iodef.xml true
1274    else
1275       set_xio_using_server iodef.xml false
1276    fi
1277    cd ${SETTE_DIR}
1278    . ./prepare_job.sh input_SPITZ12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
1279   
1280    cd ${SETTE_DIR}
1281    export TEST_NAME="SHORT"
1282    . ./prepare_exe_dir.sh
1283    cd ${EXE_DIR}
1284    set_namelist namelist_cfg cn_exp \"S12_SHORT\"
1285    set_namelist namelist_cfg nn_it000 121
1286    set_namelist namelist_cfg nn_itend 240
1287    set_namelist namelist_cfg nn_stock 120
1288    set_namelist namelist_cfg ln_rstart .true.
1289    set_namelist namelist_cfg nn_rstctl 2
1290    set_namelist namelist_cfg jpni 4
1291    set_namelist namelist_cfg jpnj 8
1292    set_namelist namelist_cfg ln_ctl .true.
1293    set_namelist namelist_cfg cn_ocerst_in \"S12_LONG_00000120_restart\"
1294    set_namelist namelist_ice_cfg cn_icerst_in \"S12_LONG_00000120_restart_ice\"
1295    for (( i=1; i<=$NPROC; i++)) ; do
1296        L_NPROC=$(( $i - 1 ))
1297        L_NPROC=`printf "%04d\n" ${L_NPROC}`
1298        ln -sf ../LONG/S12_LONG_00000120_restart_${L_NPROC}.nc .
1299        ln -sf ../LONG/S12_LONG_00000120_restart_ice_${L_NPROC}.nc .
1300    done
1301    if [ ${USING_MPMD} == "yes" ] ; then
1302       set_xio_using_server iodef.xml true
1303    else
1304       set_xio_using_server iodef.xml false
1305    fi
1306    cd ${SETTE_DIR}
1307    . ./prepare_job.sh input_SPITZ12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
1308    cd ${SETTE_DIR}
1309    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
1310
1311## Reproducibility tests
1312    export TEST_NAME="REPRO_4_8"
1313    cd ${MAIN_DIR}
1314    cd ${SETTE_DIR}
1315    . ./param.cfg
1316    . ./all_functions.sh
1317    . ./prepare_exe_dir.sh
1318    JOB_FILE=${EXE_DIR}/run_job.sh
1319    NPROC=32
1320    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
1321    cd ${EXE_DIR}
1322    set_namelist namelist_cfg cn_exp \"S12_48\"
1323    set_namelist namelist_cfg nn_it000 1
1324    set_namelist namelist_cfg nn_itend 120
1325    set_namelist namelist_cfg nn_date0 20020101
1326    set_namelist namelist_cfg jpni 4
1327    set_namelist namelist_cfg jpnj 8
1328    set_namelist namelist_cfg ln_ctl .true.
1329    if [ ${USING_MPMD} == "yes" ] ; then
1330       set_xio_using_server iodef.xml true
1331    else
1332       set_xio_using_server iodef.xml false
1333    fi
1334    cd ${SETTE_DIR}
1335    . ./prepare_job.sh input_SPITZ12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
1336    cd ${SETTE_DIR}
1337    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
1338
1339    cd ${SETTE_DIR}
1340    export TEST_NAME="REPRO_8_4"
1341    . ./prepare_exe_dir.sh
1342    JOB_FILE=${EXE_DIR}/run_job.sh
1343    NPROC=32
1344    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
1345    cd ${EXE_DIR}
1346    set_namelist namelist_cfg cn_exp \"S12_84\"
1347    set_namelist namelist_cfg nn_it000 1
1348    set_namelist namelist_cfg nn_itend 120
1349    set_namelist namelist_cfg nn_date0 20020101
1350    set_namelist namelist_cfg jpni 8
1351    set_namelist namelist_cfg jpnj 4
1352    set_namelist namelist_cfg ln_ctl .true.
1353    if [ ${USING_MPMD} == "yes" ] ; then
1354       set_xio_using_server iodef.xml true
1355    else
1356       set_xio_using_server iodef.xml false
1357    fi
1358    cd ${SETTE_DIR}
1359    . ./prepare_job.sh input_SPITZ12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
1360    cd ${SETTE_DIR}
1361    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
1362fi
1363
1364
1365done
Note: See TracBrowser for help on using the repository browser.