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 branches/2013/dev_MERGE_2013/NEMOGCM/SETTE – NEMO

source: branches/2013/dev_MERGE_2013/NEMOGCM/SETTE/sette.sh @ 4316

Last change on this file since 4316 was 4316, checked in by clevy, 10 years ago

[

  • Property svn:executable set to *
File size: 35.4 KB
Line 
1#!/bin/bash
2############################################################
3# Author : Simona Flavoni for NEMO
4# Contact: sflod@locean-ipsl.upmc.fr
5# 2013   : A.C. Coward added options for testing with XIOS in dettached mode
6#
7# sette.sh   : principal script of SET TEsts for NEMO (SETTE)
8# ----------------------------------------------------------------------
9# NEMO/SETTE , NEMO Consortium (2010)
10# Software governed by the CeCILL licence     (NEMOGCM/NEMO_CeCILL.txt)
11# ----------------------------------------------------------------------
12#
13#############################################################
14#set -x
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 opa 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#                      (solver.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=tobedefined
91export BATCH_COMMAND_PAR="llsubmit"
92export BATCH_COMMAND_SEQ=$BATCH_COMMAND_PAR
93export INTERACT_FLAG="yes"
94export MPIRUN_FLAG="yes"
95export USING_XIOS="yes"
96#
97export DEL_KEYS="key_iomput"
98if [ ${USING_XIOS} == "yes" ] 
99 then
100   export DEL_KEYS=""
101fi
102#
103# Settings which control the use of stand alone servers (only relevant if using xios)
104#
105export USING_MPMD="no"
106export NUM_XIOSERVERS=4
107export JOB_PREFIX=batch-mpmd
108#
109if [ ${USING_MPMD} == "no" ] 
110 then
111   export NUM_XIOSERVERS=0
112   export JOB_PREFIX=batch
113fi
114#
115#
116if [ ${USING_MPMD} == "yes" ] && [ ${USING_XIOS} == "no"]
117 then
118   echo "Incompatible choices. MPMD mode requires the XIOS server"
119   exit
120fi
121#
122
123# Directory to run the tests
124SETTE_DIR=$(cd $(dirname "$0"); pwd)
125MAIN_DIR=${SETTE_DIR%/SETTE}
126CONFIG_DIR=${MAIN_DIR}/CONFIG
127TOOLS_DIR=${MAIN_DIR}/TOOLS
128COMPIL_DIR=${TOOLS_DIR}/COMPILE
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            : 1 &  2
136# ORCA2_LIM_PISCES: 3 &  4
137# ORCA2_OFF_PISCES: 5 &  6
138# AMM12           : 7 &  8
139# SAS             : 9 & 10
140# ORCA2_AGRIF_LIM: 11
141for config in 1 2 3 4 5 6 7 8 9 10 11
142
143do
144
145# TESTS FOR GYRE CONFIGURATION
146if [ ${config} -eq 1 ] ;  then
147    ## Restartability tests for GYRE
148    export TEST_NAME="LONG"
149    cd ${CONFIG_DIR}
150    . ./makenemo -m ${CMP_NAM} -n GYRE_LONG -r GYRE -j 8 del_key ${DEL_KEYS}
151    cd ${SETTE_DIR}
152    . ./param.cfg
153    . ./all_functions.sh
154    . ./prepare_exe_dir.sh
155    JOB_FILE=${EXE_DIR}/run_job.sh
156    NPROC=4
157    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
158    cd ${EXE_DIR} 
159    set_namelist namelist_cfg cn_exp \"GYRE_LONG\"
160    set_namelist namelist_cfg nn_it000 1
161    set_namelist namelist_cfg nn_itend 120
162    set_namelist namelist_cfg nn_stock 60
163    set_namelist namelist_cfg ln_clobber .true.
164    set_namelist namelist_cfg nn_solv 2
165    set_namelist namelist_cfg jpni 2
166    set_namelist namelist_cfg jpnj 2
167    set_namelist namelist_cfg jpnij 4
168    if [ ${USING_MPMD} == "yes" ] ; then
169       set_xio_using_server iodef.xml true
170    else
171       set_xio_using_server iodef.xml false
172    fi
173    cd ${SETTE_DIR}
174    . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
175
176    cd ${SETTE_DIR}
177    export TEST_NAME="SHORT"
178    . ./prepare_exe_dir.sh
179    cd ${EXE_DIR}
180    set_namelist namelist_cfg cn_exp \"GYRE_SHORT\"
181    set_namelist namelist_cfg nn_it000 61
182    set_namelist namelist_cfg nn_itend 120
183    set_namelist namelist_cfg nn_stock 60
184    set_namelist namelist_cfg ln_rstart .true.
185    set_namelist namelist_cfg nn_rstctl 2
186    set_namelist namelist_cfg ln_clobber .true.
187    set_namelist namelist_cfg nn_fwb 0
188    set_namelist namelist_cfg nn_solv 2
189    set_namelist namelist_cfg jpni 2
190    set_namelist namelist_cfg jpnj 2
191    set_namelist namelist_cfg jpnij 4
192    set_namelist namelist_cfg cn_ocerst_in \"GYRE_LONG_00000060_restart\"
193    if [ ${USING_MPMD} == "yes" ] ; then
194       set_xio_using_server iodef.xml true
195    else
196       set_xio_using_server iodef.xml false
197    fi
198    for (( i=1; i<=$NPROC; i++)) ; do
199        L_NPROC=$(( $i - 1 ))
200        L_NPROC=`printf "%04d\n" ${L_NPROC}`
201        ln -sf ../LONG/GYRE_LONG_00000060_restart_${L_NPROC}.nc .
202    done
203    if [ ${USING_MPMD} == "yes" ] ; then
204       set_xio_using_server iodef.xml true
205    else
206       set_xio_using_server iodef.xml false
207    fi
208    cd ${SETTE_DIR}
209    . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
210    cd ${SETTE_DIR}
211    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
212fi
213
214if [ ${config} -eq 2 ] ;  then
215    ## Reproducibility tests for GYRE
216    export TEST_NAME="REPRO_1_4"
217    cd ${CONFIG_DIR}
218    . ./makenemo -m ${CMP_NAM} -n GYRE_4 -r GYRE -j 8 add_key "key_mpp_rep" del_key ${DEL_KEYS}
219    cd ${SETTE_DIR}
220    . ./param.cfg
221    . ./all_functions.sh
222    . ./prepare_exe_dir.sh
223    JOB_FILE=${EXE_DIR}/run_job.sh
224    NPROC=4
225    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
226    cd ${EXE_DIR}
227    set_namelist namelist_cfg cn_exp \"GYRE_14\"
228    set_namelist namelist_cfg nn_it000 1
229    set_namelist namelist_cfg nn_itend 60
230    set_namelist namelist_cfg nn_fwb 0
231    set_namelist namelist_cfg nn_bench 0
232    set_namelist namelist_cfg ln_ctl .false.
233    set_namelist namelist_cfg ln_clobber .true.
234    set_namelist namelist_cfg nn_solv 2
235    set_namelist namelist_cfg jpni 1
236    set_namelist namelist_cfg jpnj 4
237    set_namelist namelist_cfg jpnij 4
238    if [ ${USING_MPMD} == "yes" ] ; then
239       set_xio_using_server iodef.xml true
240    else
241       set_xio_using_server iodef.xml false
242    fi
243    cd ${SETTE_DIR}
244    . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
245    cd ${SETTE_DIR}
246    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
247
248    cd ${SETTE_DIR}
249    export TEST_NAME="REPRO_2_2"
250    . ./prepare_exe_dir.sh
251    JOB_FILE=${EXE_DIR}/run_job.sh
252    NPROC=4
253    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
254    cd ${EXE_DIR}
255    set_namelist namelist_cfg cn_exp \"GYRE_22\"
256    set_namelist namelist_cfg nn_it000 1
257    set_namelist namelist_cfg nn_itend 60
258    set_namelist namelist_cfg nn_fwb 0
259    set_namelist namelist_cfg ln_ctl .false.
260    set_namelist namelist_cfg ln_clobber .true.
261    set_namelist namelist_cfg nn_fwb 0
262    set_namelist namelist_cfg nn_solv 2
263    set_namelist namelist_cfg jpni 2
264    set_namelist namelist_cfg jpnj 2
265    set_namelist namelist_cfg jpnij 4
266    if [ ${USING_MPMD} == "yes" ] ; then
267       set_xio_using_server iodef.xml true
268    else
269       set_xio_using_server iodef.xml false
270    fi
271    cd ${SETTE_DIR}
272    . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
273    cd ${SETTE_DIR}
274    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
275
276fi
277
278# TESTS FOR ORCA2_LIM_PISCES CONFIGURATION
279if [ ${config} -eq 3 ] ;  then
280    ## Restartability tests for ORCA2_LIM_PISCES
281    export TEST_NAME="LONG"
282    cd ${CONFIG_DIR}
283    . ./makenemo -m ${CMP_NAM} -n ORCA2LIMPIS_LONG -r ORCA2_LIM_PISCES -j 8 del_key ${DEL_KEYS}
284    cd ${SETTE_DIR}
285    . ./param.cfg
286    . ./all_functions.sh
287    . ./prepare_exe_dir.sh
288    JOB_FILE=${EXE_DIR}/run_job.sh
289    NPROC=4
290    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
291    cd ${EXE_DIR}
292    set_namelist namelist_cfg cn_exp \"O2LP_LONG\"
293    set_namelist namelist_cfg nn_it000 1
294    set_namelist namelist_cfg nn_itend 150
295    set_namelist namelist_cfg nn_stock 75
296    set_namelist namelist_cfg ln_clobber .true.
297    set_namelist namelist_cfg nn_fwb 0
298    set_namelist namelist_cfg jpni 2
299    set_namelist namelist_cfg jpnj 2
300    set_namelist namelist_cfg jpnij 4
301    set_namelist namelist_cfg nn_solv 2
302    set_namelist namelist_top_cfg ln_trcdta .false.
303    set_namelist namelist_top_cfg ln_diatrc .false.
304    # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false
305    # if not you need input files, and for tests is not necessary
306    set_namelist namelist_pisces_cfg ln_presatm .false.
307    set_namelist namelist_pisces_cfg ln_varpar .false.
308    set_namelist namelist_pisces_cfg ln_dust .false.
309    set_namelist namelist_pisces_cfg ln_solub .false.
310    set_namelist namelist_pisces_cfg ln_river .false.
311    set_namelist namelist_pisces_cfg ln_ndepo .false.
312    set_namelist namelist_pisces_cfg ln_ironsed .false.
313    set_namelist namelist_pisces_cfg ln_hydrofe .false.
314    if [ ${USING_MPMD} == "yes" ] ; then
315       set_xio_using_server iodef.xml true
316    else
317       set_xio_using_server iodef.xml false
318    fi
319    cd ${SETTE_DIR}
320    . ./prepare_job.sh input_ORCA2_LIM_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
321   
322    cd ${SETTE_DIR}
323    export TEST_NAME="SHORT"
324    . ./prepare_exe_dir.sh
325    cd ${EXE_DIR}
326    set_namelist namelist_cfg cn_exp \"O2LP_SHORT\"
327    set_namelist namelist_cfg nn_it000 76
328    set_namelist namelist_cfg nn_itend 150
329    set_namelist namelist_cfg nn_stock 75
330    set_namelist namelist_cfg ln_rstart .true.
331    set_namelist namelist_cfg nn_rstctl 2
332    set_namelist namelist_cfg ln_clobber .true.
333    set_namelist namelist_cfg nn_fwb 0
334    set_namelist namelist_cfg jpni 2
335    set_namelist namelist_cfg jpnj 2
336    set_namelist namelist_cfg jpnij 4
337    set_namelist namelist_cfg nn_solv 2
338    set_namelist namelist_top_cfg ln_diatrc .false.
339    set_namelist namelist_top_cfg ln_rsttr .true.
340    set_namelist namelist_top_cfg nn_rsttr 2
341    set_namelist namelist_cfg cn_ocerst_in \"O2LP_LONG_00000075_restart\"
342    set_namelist namelist_ice_cfg cn_icerst_in \"O2LP_LONG_00000075_restart_ice\"
343    set_namelist namelist_top_cfg cn_trcrst_in \"O2LP_LONG_00000075_restart_trc\"
344    # put ln_ironsed, ln_river, ln_ndepo, ln_dust
345    # if not you need input files, and for tests is not necessary
346    set_namelist namelist_pisces_cfg ln_presatm .false.
347    set_namelist namelist_pisces_cfg ln_varpar .false.
348    set_namelist namelist_pisces_cfg ln_dust .false.
349    set_namelist namelist_pisces_cfg ln_solub .false.
350    set_namelist namelist_pisces_cfg ln_river .false.
351    set_namelist namelist_pisces_cfg ln_ndepo .false.
352    set_namelist namelist_pisces_cfg ln_ironsed .false.
353    set_namelist namelist_pisces_cfg ln_hydrofe .false.
354    # put ln_pisdmp to false : no restoring to global mean value
355    set_namelist namelist_pisces_cfg ln_pisdmp .false.
356    for (( i=1; i<=$NPROC; i++)) ; do
357        L_NPROC=$(( $i - 1 ))
358        L_NPROC=`printf "%04d\n" ${L_NPROC}`
359        ln -sf ../LONG/O2LP_LONG_00000075_restart_${L_NPROC}.nc .
360        ln -sf ../LONG/O2LP_LONG_00000075_restart_trc_${L_NPROC}.nc .
361        ln -sf ../LONG/O2LP_LONG_00000075_restart_ice_${L_NPROC}.nc .
362    done
363    if [ ${USING_MPMD} == "yes" ] ; then
364       set_xio_using_server iodef.xml true
365    else
366       set_xio_using_server iodef.xml false
367    fi
368    cd ${SETTE_DIR}
369    . ./prepare_job.sh input_ORCA2_LIM_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
370    cd ${SETTE_DIR}
371    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
372fi
373
374if [ ${config} -eq 4 ] ;  then
375    ## Reproducibility tests for ORCA2_LIM_PISCES
376    export TEST_NAME="REPRO_4_4"
377    cd ${CONFIG_DIR}
378    . ./makenemo -m ${CMP_NAM} -n ORCA2LIMPIS_16 -r ORCA2_LIM_PISCES -j 8 add_key "key_mpp_rep" del_key ${DEL_KEYS}
379    cd ${SETTE_DIR}
380    . ./param.cfg
381    . ./all_functions.sh
382    . ./prepare_exe_dir.sh
383    JOB_FILE=${EXE_DIR}/run_job.sh
384    NPROC=16
385    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
386    cd ${EXE_DIR}
387    set_namelist namelist_cfg nn_it000 1
388    set_namelist namelist_cfg nn_itend 75
389    set_namelist namelist_cfg nn_fwb 0
390    set_namelist namelist_cfg ln_ctl .false.
391    set_namelist namelist_cfg ln_clobber .true.
392    set_namelist namelist_cfg nn_fwb 0
393    set_namelist namelist_cfg jpni 4
394    set_namelist namelist_cfg jpnj 4
395    set_namelist namelist_cfg jpnij 16
396    set_namelist namelist_cfg nn_solv 2
397    set_namelist namelist_top_cfg ln_trcdta .false.
398    set_namelist namelist_top_cfg ln_diatrc .false.
399    # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false
400    # if not you need input files, and for tests is not necessary
401    set_namelist namelist_pisces_cfg ln_presatm .false.
402    set_namelist namelist_pisces_cfg ln_varpar .false.
403    set_namelist namelist_pisces_cfg ln_dust .false.
404    set_namelist namelist_pisces_cfg ln_solub .false.
405    set_namelist namelist_pisces_cfg ln_river .false.
406    set_namelist namelist_pisces_cfg ln_ndepo .false.
407    set_namelist namelist_pisces_cfg ln_ironsed .false.
408    set_namelist namelist_pisces_cfg ln_hydrofe .false.
409    # put ln_pisdmp to false : no restoring to global mean value
410    set_namelist namelist_pisces_cfg ln_pisdmp .false.
411    if [ ${USING_MPMD} == "yes" ] ; then
412       set_xio_using_server iodef.xml true
413    else
414       set_xio_using_server iodef.xml false
415    fi
416    cd ${SETTE_DIR}
417    . ./prepare_job.sh input_ORCA2_LIM_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
418    cd ${SETTE_DIR}
419    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
420
421    cd ${SETTE_DIR}
422    export TEST_NAME="REPRO_2_8"
423    . ./prepare_exe_dir.sh
424    JOB_FILE=${EXE_DIR}/run_job.sh
425    NPROC=16
426    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
427    cd ${EXE_DIR}
428    set_namelist namelist_cfg nn_it000 1
429    set_namelist namelist_cfg nn_itend 75
430    set_namelist namelist_cfg nn_fwb 0
431    set_namelist namelist_cfg ln_clobber .true.
432    set_namelist namelist_cfg nn_fwb 0
433    set_namelist namelist_cfg jpni 2
434    set_namelist namelist_cfg jpnj 8
435    set_namelist namelist_cfg jpnij 16
436    set_namelist namelist_cfg nn_solv 2
437    set_namelist namelist_top_cfg ln_trcdta .false.
438    set_namelist namelist_top_cfg ln_diatrc .false.
439    # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false
440    # if not you need input files, and for tests is not necessary
441    set_namelist namelist_pisces_cfg ln_presatm .false.
442    set_namelist namelist_pisces_cfg ln_varpar .false.
443    set_namelist namelist_pisces_cfg ln_dust .false.
444    set_namelist namelist_pisces_cfg ln_solub .false.
445    set_namelist namelist_pisces_cfg ln_river .false.
446    set_namelist namelist_pisces_cfg ln_ndepo .false.
447    set_namelist namelist_pisces_cfg ln_ironsed .false.
448    set_namelist namelist_pisces_cfg ln_hydrofe .false.
449    # put ln_pisdmp to false : no restoring to global mean value
450    set_namelist namelist_pisces_cfg ln_pisdmp .false.
451    if [ ${USING_MPMD} == "yes" ] ; then
452       set_xio_using_server iodef.xml true
453    else
454       set_xio_using_server iodef.xml false
455    fi
456    cd ${SETTE_DIR}
457    . ./prepare_job.sh input_ORCA2_LIM_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
458    cd ${SETTE_DIR}
459    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
460fi
461
462# TESTS FOR ORCA2_OFF_PISCES CONFIGURATION
463if [ ${config} -eq 5 ] ;  then
464    ## Restartability tests for ORCA2_OFF_PISCES
465    export TEST_NAME="LONG"
466    cd ${CONFIG_DIR}
467    . ./makenemo -m ${CMP_NAM} -n ORCA2OFFPIS_LONG -r ORCA2_OFF_PISCES -j 8 add_key "key_mpp_rep" del_key ${DEL_KEYS}
468    cd ${SETTE_DIR}
469    . ./param.cfg
470    . ./all_functions.sh
471    . ./prepare_exe_dir.sh
472    JOB_FILE=${EXE_DIR}/run_job.sh
473    NPROC=4
474    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
475    cd ${EXE_DIR}
476    set_namelist namelist_cfg cn_exp \"OFFP_LONG\"
477    set_namelist namelist_cfg nn_it000 1
478    set_namelist namelist_cfg nn_itend 40
479    set_namelist namelist_cfg nn_stock 20
480    set_namelist namelist_cfg ln_clobber .true.
481    set_namelist namelist_cfg nn_fwb 0
482    set_namelist namelist_cfg jpni 2
483    set_namelist namelist_cfg jpnj 2
484    set_namelist namelist_cfg jpnij 4
485    set_namelist namelist_top_cfg ln_trcdta .false.
486    set_namelist namelist_top_cfg ln_diatrc .false.
487    # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false
488    # if not you need input files, and for tests is not necessary
489    set_namelist namelist_pisces_cfg ln_presatm .false.
490    set_namelist namelist_pisces_cfg ln_varpar .false.
491    set_namelist namelist_pisces_cfg ln_dust .false.
492    set_namelist namelist_pisces_cfg ln_solub .false.
493    set_namelist namelist_pisces_cfg ln_river .false.
494    set_namelist namelist_pisces_cfg ln_ndepo .false.
495    set_namelist namelist_pisces_cfg ln_ironsed .false.
496    set_namelist namelist_pisces_cfg ln_hydrofe .false.
497    # put ln_pisdmp to false : no restoring to global mean value
498    set_namelist namelist_pisces_cfg ln_pisdmp .false.
499    if [ ${USING_MPMD} == "yes" ] ; then
500       set_xio_using_server iodef.xml true
501    else
502       set_xio_using_server iodef.xml false
503    fi
504    cd ${SETTE_DIR}
505    . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
506   
507    cd ${SETTE_DIR}
508    export TEST_NAME="SHORT"
509    . ./prepare_exe_dir.sh
510    cd ${EXE_DIR}
511    set_namelist namelist_cfg cn_exp \"OFFP_SHORT\"
512    set_namelist namelist_cfg nn_it000 21
513    set_namelist namelist_cfg nn_itend 40
514    set_namelist namelist_cfg nn_stock 20
515    set_namelist namelist_cfg ln_clobber .true.
516    set_namelist namelist_cfg nn_fwb 0
517    set_namelist namelist_cfg jpni 2
518    set_namelist namelist_cfg jpnj 2
519    set_namelist namelist_cfg jpnij 4
520    set_namelist namelist_top_cfg ln_diatrc .false.
521    set_namelist namelist_top_cfg ln_rsttr .true.
522    set_namelist namelist_top_cfg nn_rsttr 2
523    set_namelist namelist_top_cfg cn_trcrst_in \"OFFP_LONG_00000020_restart_trc\"
524    for (( i=1; i<=$NPROC; i++)) ; do
525        L_NPROC=$(( $i - 1 ))
526        L_NPROC=`printf "%04d\n" ${L_NPROC}`
527        ln -sf ../LONG/OFFP_LONG_00000020_restart_trc_${L_NPROC}.nc .
528    done
529    # put ln_ironsed, ln_river, ln_ndepo, ln_dust
530    # if not you need input files, and for tests is not necessary
531    set_namelist namelist_pisces_cfg ln_presatm .false.
532    set_namelist namelist_pisces_cfg ln_varpar .false.
533    set_namelist namelist_pisces_cfg ln_dust .false.
534    set_namelist namelist_pisces_cfg ln_solub .false.
535    set_namelist namelist_pisces_cfg ln_river .false.
536    set_namelist namelist_pisces_cfg ln_ndepo .false.
537    set_namelist namelist_pisces_cfg ln_ironsed .false.
538    set_namelist namelist_pisces_cfg ln_hydrofe .false.
539    # put ln_pisdmp to false : no restoring to global mean value
540    set_namelist namelist_pisces_cfg ln_pisdmp .false.
541    if [ ${USING_MPMD} == "yes" ] ; then
542       set_xio_using_server iodef.xml true
543    else
544       set_xio_using_server iodef.xml false
545    fi
546    cd ${SETTE_DIR}
547    . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME}  ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
548    cd ${SETTE_DIR}
549    . ./fcm_job.sh $NPROC  ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
550fi
551
552if [ ${config} -eq 6 ] ;  then
553    ## Reproducibility tests for ORCA2_OFF_PISCES
554    export TEST_NAME="REPRO_4_4"
555    cd ${CONFIG_DIR}
556    . ./makenemo -m ${CMP_NAM} -n ORCA2OFFPIS_16 -r ORCA2_OFF_PISCES -j 8 add_key "key_mpp_rep" del_key ${DEL_KEYS}
557    cd ${SETTE_DIR}
558    . ./param.cfg
559    . ./all_functions.sh
560    . ./prepare_exe_dir.sh
561    JOB_FILE=${EXE_DIR}/run_job.sh
562    NPROC=16
563    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
564    cd ${EXE_DIR}
565    set_namelist namelist_cfg nn_it000 1
566    set_namelist namelist_cfg nn_itend 40
567    set_namelist namelist_cfg ln_ctl .false.
568    set_namelist namelist_cfg ln_clobber .true.
569    set_namelist namelist_cfg nn_fwb 0
570    set_namelist namelist_cfg jpni 4
571    set_namelist namelist_cfg jpnj 4
572    set_namelist namelist_cfg jpnij 16
573    set_namelist namelist_top_cfg ln_trcdta .false.
574    set_namelist namelist_top_cfg ln_diatrc .false.
575    # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false
576    # if not you need input files, and for tests is not necessary
577    set_namelist namelist_pisces_cfg ln_presatm .false.
578    set_namelist namelist_pisces_cfg ln_varpar .false.
579    set_namelist namelist_pisces_cfg ln_dust .false.
580    set_namelist namelist_pisces_cfg ln_solub .false.
581    set_namelist namelist_pisces_cfg ln_river .false.
582    set_namelist namelist_pisces_cfg ln_ndepo .false.
583    set_namelist namelist_pisces_cfg ln_ironsed .false.
584    set_namelist namelist_pisces_cfg ln_hydrofe .false.
585    # put ln_pisdmp to false : no restoring to global mean value
586    set_namelist namelist_pisces_cfg ln_pisdmp .false.
587    if [ ${USING_MPMD} == "yes" ] ; then
588       set_xio_using_server iodef.xml true
589    else
590       set_xio_using_server iodef.xml false
591    fi
592    cd ${SETTE_DIR}
593    . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
594    cd ${SETTE_DIR}
595    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
596
597    cd ${SETTE_DIR}
598    export TEST_NAME="REPRO_2_8"
599    . ./prepare_exe_dir.sh
600    JOB_FILE=${EXE_DIR}/run_job.sh
601    NPROC=16
602    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
603    cd ${EXE_DIR}
604    set_namelist namelist_cfg nn_it000 1
605    set_namelist namelist_cfg nn_itend 40
606    set_namelist namelist_cfg ln_ctl .false.
607    set_namelist namelist_cfg ln_clobber .true.
608    set_namelist namelist_cfg nn_fwb 0
609    set_namelist namelist_cfg jpni 2
610    set_namelist namelist_cfg jpnj 8
611    set_namelist namelist_cfg jpnij 16
612    set_namelist namelist_top_cfg ln_trcdta .false.
613    set_namelist namelist_top_cfg ln_diatrc .false.
614    # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false
615    # if not you need input files, and for tests is not necessary
616    set_namelist namelist_pisces_cfg ln_presatm .false.
617    set_namelist namelist_pisces_cfg ln_varpar .false.
618    set_namelist namelist_pisces_cfg ln_dust .false.
619    set_namelist namelist_pisces_cfg ln_solub .false.
620    set_namelist namelist_pisces_cfg ln_river .false.
621    set_namelist namelist_pisces_cfg ln_ndepo .false.
622    set_namelist namelist_pisces_cfg ln_ironsed .false.
623    set_namelist namelist_pisces_cfg ln_hydrofe .false.
624    # put ln_pisdmp to false : no restoring to global mean value
625    set_namelist namelist_pisces_cfg ln_pisdmp .false.
626    if [ ${USING_MPMD} == "yes" ] ; then
627       set_xio_using_server iodef.xml true
628    else
629       set_xio_using_server iodef.xml false
630    fi
631    cd ${SETTE_DIR}
632    . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
633    cd ${SETTE_DIR}
634    . ./fcm_job.sh $NPROC  ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
635fi
636
637# TESTS FOR AMM12 CONFIGURATION
638if [ ${config} -eq 7 ] ;  then
639    ## Restartability tests for AMM12
640    export TEST_NAME="LONG"
641    cd ${CONFIG_DIR}
642    . ./makenemo -m ${CMP_NAM} -n AMM12_LONG -r AMM12 -j 8 add_key "key_tide" del_key ${DEL_KEYS}
643    cd ${SETTE_DIR}
644    . ./param.cfg
645    . ./all_functions.sh
646    . ./prepare_exe_dir.sh
647    JOB_FILE=${EXE_DIR}/run_job.sh
648    NPROC=32
649    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
650    cd ${EXE_DIR}
651    set_namelist namelist_cfg nn_it000 1
652    set_namelist namelist_cfg nn_itend 576
653    set_namelist namelist_cfg nn_stock 288
654    set_namelist namelist_cfg nn_fwb 0
655    set_namelist namelist_cfg ln_ctl .false.
656    set_namelist namelist_cfg ln_clobber .true.
657    set_namelist namelist_cfg nn_fwb 0
658    set_namelist namelist_cfg nn_tra_dta 0
659    set_namelist namelist_cfg cn_ocerst_in \"amm12_restart_oce\"
660    ln -s restarts/amm12_restart_oce.nc amm12_restart_oce.nc
661    set_namelist namelist_cfg jpni 8
662    set_namelist namelist_cfg jpnj 4
663    set_namelist namelist_cfg jpnij 32
664    if [ ${USING_MPMD} == "yes" ] ; then
665       set_xio_using_server iodef.xml true
666    else
667       set_xio_using_server iodef.xml false
668    fi
669    cd ${SETTE_DIR}
670    . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
671
672    cd ${SETTE_DIR}
673    export TEST_NAME="SHORT"
674    . prepare_exe_dir.sh
675    cd ${EXE_DIR}
676    set_namelist namelist_cfg nn_it000 289
677    set_namelist namelist_cfg nn_itend 576
678    set_namelist namelist_cfg nn_fwb 0
679    set_namelist namelist_cfg ln_ctl .false.
680    set_namelist namelist_cfg ln_clobber .true.
681    set_namelist namelist_cfg nn_fwb 0
682    set_namelist namelist_cfg nn_tra_dta 0
683    set_namelist namelist_cfg jpni 8
684    set_namelist namelist_cfg jpnj 4
685    set_namelist namelist_cfg jpnij 32
686    set_namelist namelist_cfg ln_rstart .true.
687    set_namelist namelist_cfg nn_rstctl 2
688    set_namelist namelist_cfg cn_ocerst_in \"AMM12_00000288_restart_oce_out\"
689    set_namelist namelist_cfg nn_date0 20120102
690    for (( i=1; i<=$NPROC; i++)) ; do
691        L_NPROC=$(( $i - 1 ))
692        L_NPROC=`printf "%04d\n" ${L_NPROC}`
693        ln -sf ../LONG/AMM12_00000288_restart_oce_out_${L_NPROC}.nc .
694    done
695    if [ ${USING_MPMD} == "yes" ] ; then
696       set_xio_using_server iodef.xml true
697    else
698       set_xio_using_server iodef.xml false
699    fi
700    cd ${SETTE_DIR}
701    . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
702    cd ${SETTE_DIR}
703    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
704fi
705
706if [ ${config} -eq 8 ] ;  then
707## Reproducibility tests for AMM12
708    export TEST_NAME="REPRO_8_4"
709    cd ${CONFIG_DIR}
710    . ./makenemo -m ${CMP_NAM} -n AMM12_32 -r AMM12 -j 8 add_key "key_mpp_rep key_tide" del_key ${DEL_KEYS}
711    cd ${SETTE_DIR}
712    . ./param.cfg
713    . ./all_functions.sh
714    . ./prepare_exe_dir.sh
715    JOB_FILE=${EXE_DIR}/run_job.sh
716    NPROC=32
717    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
718    cd ${EXE_DIR}
719    set_namelist namelist_cfg nn_it000 1
720    set_namelist namelist_cfg nn_itend 576
721    set_namelist namelist_cfg nn_fwb 0
722    set_namelist namelist_cfg ln_ctl .false.
723    set_namelist namelist_cfg ln_clobber .true.
724    set_namelist namelist_cfg nn_fwb 0
725    set_namelist namelist_cfg nn_tra_dta 0
726    set_namelist namelist_cfg cn_ocerst_in \"amm12_restart_oce\"
727    ln -s restarts/amm12_restart_oce.nc amm12_restart_oce.nc
728    set_namelist namelist_cfg jpni 8
729    set_namelist namelist_cfg jpnj 4
730    set_namelist namelist_cfg jpnij 32
731    if [ ${USING_MPMD} == "yes" ] ; then
732       set_xio_using_server iodef.xml true
733    else
734       set_xio_using_server iodef.xml false
735    fi
736    cd ${SETTE_DIR}
737    . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
738    cd ${SETTE_DIR}
739    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
740
741    cd ${SETTE_DIR}
742    export TEST_NAME="REPRO_4_8"
743    . ./prepare_exe_dir.sh
744    cd ${EXE_DIR}
745    set_namelist namelist_cfg nn_it000 1
746    set_namelist namelist_cfg nn_itend 576
747    set_namelist namelist_cfg nn_fwb 0
748    set_namelist namelist_cfg ln_ctl .false.
749    set_namelist namelist_cfg nn_tra_dta 0
750    set_namelist namelist_cfg ln_clobber .true.
751    set_namelist namelist_cfg nn_fwb 0
752    set_namelist namelist_cfg cn_ocerst_in \"amm12_restart_oce\"
753    ln -s restarts/amm12_restart_oce.nc amm12_restart_oce.nc
754    set_namelist namelist_cfg jpni 4
755    set_namelist namelist_cfg jpnj 8
756    set_namelist namelist_cfg jpnij 32
757    if [ ${USING_MPMD} == "yes" ] ; then
758       set_xio_using_server iodef.xml true
759    else
760       set_xio_using_server iodef.xml false
761    fi
762    cd ${SETTE_DIR}
763    . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
764    cd ${SETTE_DIR}
765    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
766fi
767
768
769# TESTS FOR ORCA2_SAS_LIM CONFIGURATION
770if [ ${config} -eq 9 ] ;  then
771    ## Restartability tests for SAS
772    export TEST_NAME="LONG"
773    cd ${CONFIG_DIR}
774    . ./makenemo -m ${CMP_NAM} -n SAS_LONG -r ORCA2_SAS_LIM -j 8 add_key "key_mpp_rep" del_key ${DEL_KEYS}
775    cd ${SETTE_DIR}
776    . ./param.cfg
777    . ./all_functions.sh
778    . ./prepare_exe_dir.sh
779    JOB_FILE=${EXE_DIR}/run_job.sh
780    NPROC=32
781    \rm $JOB_FILE
782    cd ${EXE_DIR}
783    set_namelist namelist_cfg cn_exp \"SAS\"
784    set_namelist namelist_cfg nn_it000 1
785    set_namelist namelist_cfg nn_itend 100
786    set_namelist namelist_cfg nn_stock 50
787    set_namelist namelist_cfg ln_ctl .false.
788    set_namelist namelist_cfg ln_clobber .true.
789    set_namelist namelist_cfg nn_fwb 0
790    set_namelist namelist_cfg jpni 8
791    set_namelist namelist_cfg jpnj 4
792    set_namelist namelist_cfg jpnij 32
793    if [ ${USING_MPMD} == "yes" ] ; then
794       set_xio_using_server iodef.xml true
795    else
796       set_xio_using_server iodef.xml false
797    fi
798    cd ${SETTE_DIR}
799    . ./prepare_job.sh input_SAS.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
800
801    cd ${SETTE_DIR}
802    export TEST_NAME="SHORT"
803    . ./prepare_exe_dir.sh
804    cd ${EXE_DIR}
805    set_namelist namelist_cfg cn_exp \"SAS\"
806    set_namelist namelist_cfg nn_it000 51
807    set_namelist namelist_cfg nn_itend 100
808    set_namelist namelist_cfg ln_ctl .false.
809    set_namelist namelist_cfg ln_clobber .true.
810    set_namelist namelist_cfg nn_fwb 0
811    set_namelist namelist_cfg jpni 8
812    set_namelist namelist_cfg jpnj 4
813    set_namelist namelist_cfg jpnij 32
814    set_namelist namelist_cfg nn_rstctl 2
815    set_namelist namelist_cfg cn_ocerst_in \"SAS_00000050_restart\"
816    for (( i=1; i<=$NPROC; i++)) ; do
817        L_NPROC=$(( $i - 1 ))
818        L_NPROC=`printf "%04d\n" ${L_NPROC}`
819        ln -sf ../LONG/SAS_00000050_restart_${L_NPROC}.nc .
820    done
821    if [ ${USING_MPMD} == "yes" ] ; then
822       set_xio_using_server iodef.xml true
823    else
824       set_xio_using_server iodef.xml false
825    fi
826    cd ${SETTE_DIR}
827    . ./prepare_job.sh input_SAS.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
828    cd ${SETTE_DIR}
829    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
830fi
831
832if [ ${config} -eq 10 ] ;  then
833## Reproducibility tests for ORCA2_SAS_LIM
834    export TEST_NAME="REPRO_8_4"
835    cd ${CONFIG_DIR}
836    . ./makenemo -m ${CMP_NAM} -n SAS_32 -r ORCA2_SAS_LIM -j 8 add_key "key_mpp_rep" del_key ${DEL_KEYS}
837    cd ${SETTE_DIR}
838    . ./param.cfg
839    . ./all_functions.sh
840    . ./prepare_exe_dir.sh
841    JOB_FILE=${EXE_DIR}/run_job.sh
842    NPROC=32
843    \rm ${JOB_FILE}
844    cd ${EXE_DIR}
845    set_namelist namelist_cfg cn_exp \"SAS\"
846    set_namelist namelist_cfg nn_it000 51
847    set_namelist namelist_cfg nn_itend 100
848    set_namelist namelist_cfg ln_ctl .false.
849    set_namelist namelist_cfg ln_clobber .true.
850    set_namelist namelist_cfg nn_fwb 0
851    set_namelist namelist_cfg jpni 8
852    set_namelist namelist_cfg jpnj 4
853    set_namelist namelist_cfg jpnij 32
854    if [ ${USING_MPMD} == "yes" ] ; then
855       set_xio_using_server iodef.xml true
856    else
857       set_xio_using_server iodef.xml false
858    fi
859    cd ${SETTE_DIR}
860    . ./prepare_job.sh input_SAS.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE}  ${NUM_XIOSERVERS}
861    cd ${SETTE_DIR}
862    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
863    cd ${SETTE_DIR}
864    export TEST_NAME="REPRO_4_8"
865    . ./prepare_exe_dir.sh
866    cd ${EXE_DIR}
867    set_namelist namelist_cfg cn_exp \"SAS\"
868    set_namelist namelist_cfg nn_it000 51
869    set_namelist namelist_cfg nn_itend 100
870    set_namelist namelist_cfg ln_ctl .false.
871    set_namelist namelist_cfg ln_clobber .true.
872    set_namelist namelist_cfg nn_fwb 0
873    set_namelist namelist_cfg jpni 4
874    set_namelist namelist_cfg jpnj 8
875    set_namelist namelist_cfg jpnij 32
876    if [ ${USING_MPMD} == "yes" ] ; then
877       set_xio_using_server iodef.xml true
878    else
879       set_xio_using_server iodef.xml false
880    fi
881    cd ${SETTE_DIR}
882    . ./prepare_job.sh input_SAS.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
883    cd ${SETTE_DIR}
884    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
885fi
886
887# TEST FOR ORCA2_LIM_AGRIF : simple test of running AGRIF (no restartability neither reproducibility tests)
888if [ ${config} -eq 11 ] ;  then
889    ## ORCA2_LIM with Agulhas AGRIF zoom in MPI
890    export TEST_NAME="SHORT"
891    cd ${CONFIG_DIR}
892    . ./makenemo -m ${CMP_NAM} -n ORCA2AGUL_1_2 -r ORCA2_LIM -j 8 add_key "key_mpp_rep key_agrif" del_key "key_zdftmx" del_key ${DEL_KEYS}
893    cd ${SETTE_DIR}
894    . ./param.cfg
895    . ./all_functions.sh
896    . ./prepare_exe_dir.sh
897    JOB_FILE=${EXE_DIR}/run_job.sh
898    NPROC=2
899    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
900    cd ${EXE_DIR}
901    set_namelist namelist_cfg nn_it000 1
902    set_namelist namelist_cfg nn_itend 75
903    set_namelist namelist_cfg ln_ctl .false.
904    set_namelist namelist_cfg ln_clobber .true.
905    set_namelist namelist_cfg nn_fwb 0
906    set_namelist namelist_cfg jpni 1
907    set_namelist namelist_cfg jpnj 2
908    set_namelist namelist_cfg jpnij 2
909    set_namelist 1_namelist_cfg nn_it000 1
910    set_namelist 1_namelist_cfg nn_itend 150
911    set_namelist 1_namelist_cfg ln_ctl .false.
912    set_namelist 1_namelist_cfg ln_clobber .true.
913    if [ ${USING_MPMD} == "yes" ] ; then
914       set_xio_using_server iodef.xml true
915    else
916       set_xio_using_server iodef.xml false
917    fi
918    cd ${SETTE_DIR}
919    . ./prepare_job.sh input_ORCA2_LIM_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
920    cd ${SETTE_DIR}
921    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
922fi
923
924done
Note: See TracBrowser for help on using the repository browser.