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

Last change on this file since 10426 was 10426, checked in by smasson, 6 years ago

sette: add ln_ctl = .true.

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