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_test-cases.sh in branches/2017/dev_merge_2017/NEMOGCM/SETTE – NEMO

source: branches/2017/dev_merge_2017/NEMOGCM/SETTE/sette_test-cases.sh @ 9458

Last change on this file since 9458 was 9458, checked in by clem, 6 years ago

debug sas biper test case after the last commits

  • Property svn:executable set to *
File size: 22.2 KB
Line 
1#!/bin/bash
2############################################################
3# Author : Simona Flavoni for NEMO
4# Contact: sflod@locean-ipsl.upmc.fr
5#
6# sette_test-cases.sh   : principal script of SET TEsts for NEMO (SETTE)
7#                       : this script : compiles, run and tests TEST_CASES
8#
9#                       : TO DO: test if nitend is equal to end of run.stat
10# ----------------------------------------------------------------------
11# NEMO/SETTE , NEMO Consortium (2018)
12# Software governed by the CeCILL licence     (NEMOGCM/NEMO_CeCILL.txt)
13# ----------------------------------------------------------------------
14#
15#
16#############################################################
17#set -vx
18set -o posix
19#set -u
20#set -e
21# ===========
22# DESCRIPTION
23# ===========
24#
25# Variables to be checked by user:
26#
27# COMPILER          : name of compiler as defined in NEMOGCM/ARCH directory
28# BATCH_COMMAND_PAR :  name of the command for submitting parallel batch jobs
29# BATCH_COMMAND_SEQ :  name of the command for submitting sequential batch jobs 
30# INTERACT_FLAG     : flag to run in interactive mode "yes"
31#                           to run in batch mode "no"
32# MPIRUN_FLAG       : flag to run in parallel (MPI) "yes"
33#                           to run in sequential mode (NB_PROC = 1) "no"
34# USING_XIOS        : flag to control the activation of key_iomput
35#                      "yes" to compile using key_iomput and link to the external XIOS library
36#                      "no"  to compile without key_iomput and link to the old IOIPSL library
37# USING_MPMD        : flag to control the use of stand-alone IO servers
38#                     requires USING_XIOS="yes"
39#                      "yes" to run in MPMD (detached) mode with stand-alone IO servers
40#                      "no"  to run in SPMD (attached) mode without separate IO servers
41# NUM_XIOSERVERS    : number of stand-alone IO servers to employ
42#                     set to zero if USING_MPMD="no"
43#
44# Principal script is sette_test-cases.sh, that calls
45#
46#  makenemo  : to create successive exectuables in ${CONFIG_NAME}/BLD/bin/nemo.exe
47#              and links to opa in ${CONFIG_NAME}/EXP00)
48#
49#  param.cfg : sets and loads following directories:
50#
51#   FORCING_DIR         : is the directory for forcing files (tarfile)
52#   INPUT_DIR           : is the directory for input files storing
53#   TMPDIR              : is the temporary directory (if needed)
54#   NEMO_VALIDATION_DIR : is the validation directory
55#
56#   (NOTE: this file is the same for all configrations to be tested with sette_test-cases.sh)
57#
58#   all_functions.sh : loads functions used by sette (note: new functions can be added here)
59#   set_namelist     : function declared in all_functions that sets namelist parameters
60#   post_test_tidyup : creates validation storage directory and copies required output files
61#                      (run.stat and ocean.output) in it after execution of test.
62#
63#  VALIDATION tree is:
64#
65#   NEMO_VALIDATION_DIR/WCONFIG_NAME/WCOMPILER_NAME/TEST_NAME/REVISION_NUMBER(or DATE)
66#
67#  prepare_exe_dir.sh : defines and creates directory where the test is executed
68#                       execution directory takes name of TEST_NAME defined for every test
69#                       in sette_test-cases.sh. (each test in executed in its own directory)
70#
71#  prepare_job.sh     : to generate the script run_job.sh
72#
73#  fcm_job.sh         : run in batch (INTERACT_FLAG="no") or interactive (INTERACT_FLAG="yes")
74#                        see sette_test-cases.sh and BATCH_TEMPLATE directory
75#
76#  NOTE: jobs requiring initial or forcing data need to have an input_CONFIG.cfg in which
77#        can be found paths to the input tar file)
78#  NOTE: if job is not launched for any reason you have the executable ready in ${EXE_DIR}
79#        directory
80#  NOTE: the changed namelists are left in ${EXE_DIR} directory whereas original namelists
81#        remain in ${NEW_CONF}/EXP00
82#
83#  NOTE: a log file, output.sette, is created in ${SETTE_DIR} with the echoes of
84#        executed commands
85#
86#  NOTE: if sette_test-cases.sh is stopped in output.sette there is written the last command
87#        executed by sette_test-cases.sh
88#
89# example use: ./sette_test-cases.sh
90#########################################################################################
91#
92# Compiler among those in NEMOGCM/ARCH
93COMPILER=X64_ADA
94
95export BATCH_COMMAND_PAR="llsubmit"
96export BATCH_COMMAND_SEQ=$BATCH_COMMAND_PAR
97export INTERACT_FLAG="no"
98export MPIRUN_FLAG="yes"
99export USING_XIOS="yes"
100#
101export DEL_KEYS="key_iomput"
102if [ ${USING_XIOS} == "yes" ] 
103 then
104   export DEL_KEYS=""
105fi
106#
107# Settings which control the use of stand alone servers (only relevant if using xios)
108#
109export USING_MPMD="no"
110export NUM_XIOSERVERS=4
111export JOB_PREFIX=batch-mpmd
112#
113if [ ${USING_MPMD} == "no" ] 
114 then
115   export NUM_XIOSERVERS=0
116   export JOB_PREFIX=batch
117fi
118#
119#
120if [ ${USING_MPMD} == "yes" ] && [ ${USING_XIOS} == "no"]
121 then
122   echo "Incompatible choices. MPMD mode requires the XIOS server"
123   exit
124fi
125
126# Directory to run the tests
127SETTE_DIR=$(cd $(dirname "$0"); pwd)
128MAIN_DIR=$(dirname $SETTE_DIR)
129CONFIG_DIR0=${MAIN_DIR}/CONFIG
130TOOLS_DIR=${MAIN_DIR}/TOOLS
131COMPIL_DIR=${TOOLS_DIR}/COMPILE
132
133CMP_NAM=${1:-$COMPILER}
134# Copy job_batch_COMPILER file for specific compiler into job_batch_template
135cd ${SETTE_DIR}
136cp BATCH_TEMPLATE/${JOB_PREFIX}-${COMPILER} job_batch_template || exit
137# Description of configuration tested:
138# OVERFLOW       : 1  TEST s-coordinates : (tracers) Advection schemes: FCT2, FCT4, ubs
139#                                        & (dynamics) advection schemes: flux form (ubs, centered), vector form (een)
140#                          zps-coordinates : (tracers) Advection schemes: FCT2, FCT4, ubs
141#                                        & (dynamics) advection schemes: flux form (ubs, centered), vector form (een, and een + Hollingsworth correction)
142# LOCK_EXCHANGE  : 2
143# VORTEX         : 3
144# WAD            : 4       
145# SAS_BIPER      : 5
146
147
148for config in 5
149do
150
151#######
152#### ALL tests tested with only 1 proc ==> no different domain decomposition!
153#######
154# TESTS FOR OVERFLOW CONFIGURATION
155if [ ${config} -eq 1 ] ;  then
156    ## Restartability tests for OVERFLOW
157    export TEST_NAME="LONG"
158    cd ${CONFIG_DIR0}
159    . ./makenemo -m ${CMP_NAM} -a TEST_CASES -n OVERFLOW_TESTs -r OVERFLOW -j 8 del_key ${DEL_KEYS}
160    cd ${SETTE_DIR}
161    . ./param.cfg
162    . ./all_functions.sh
163    . ./prepare_exe_dir.sh
164    JOB_FILE=${EXE_DIR}/run_job.sh
165    NPROC=1
166    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
167    cd ${EXE_DIR} 
168    set_namelist namelist_cfg cn_exp \"OVF_LONG\"
169    set_namelist namelist_cfg nn_it000 1
170    set_namelist namelist_cfg nn_itend 120
171    set_namelist namelist_cfg nn_stock 60
172    set_namelist namelist_cfg ln_clobber .true.
173    if [ ${USING_MPMD} == "yes" ] ; then
174       set_xio_using_server iodef.xml true
175    else
176       set_xio_using_server iodef.xml false
177    fi
178    cd ${SETTE_DIR}
179    . ./prepare_job.sh input_EMPTY.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
180
181    cd ${SETTE_DIR}
182    export TEST_NAME="SHORT"
183    . ./prepare_exe_dir.sh
184    cd ${EXE_DIR}
185    set_namelist namelist_cfg cn_exp \"OVF_SHORT\"
186    set_namelist namelist_cfg nn_it000 61
187    set_namelist namelist_cfg nn_itend 120
188    set_namelist namelist_cfg nn_stock 60
189    set_namelist namelist_cfg ln_rstart .true.
190    set_namelist namelist_cfg nn_rstctl 2
191    set_namelist namelist_cfg ln_clobber .true.
192    set_namelist namelist_top_cfg ln_rsttr .true.
193    set_namelist namelist_top_cfg nn_rsttr 2
194    set_namelist namelist_cfg cn_ocerst_in \"OVF_LONG_00000060_restart\"
195    if [ ${USING_MPMD} == "yes" ] ; then
196       set_xio_using_server iodef.xml true
197    else
198       set_xio_using_server iodef.xml false
199    fi
200    ln -sf ../LONG/OVF_LONG_00000060_restart.nc .
201    if [ ${USING_MPMD} == "yes" ] ; then
202       set_xio_using_server iodef.xml true
203    else
204       set_xio_using_server iodef.xml false
205    fi
206    cd ${SETTE_DIR}
207    . ./prepare_job.sh input_EMPTY.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
208    cd ${SETTE_DIR}
209    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
210
211
212    ## Test for all advection, vert. coordinates, vector form, flux form: test runability and complete all time steps
213    ## Needed namelist-xxxx for every type of run tested
214    cd ${CONFIG_DIR}/${NEW_CONF}/EXP00
215
216    for file in $(echo `ls namelist_*_cfg `) ; do
217        TEST_NAME=`ls $file | sed -e "s/namelist_//" | sed -e "s/_cfg//"`
218        TEST_NAME="EXP-${TEST_NAME}"
219        `mkdir ${CONFIG_DIR}/${NEW_CONF}/${TEST_NAME}`
220        export TEST_NAME="${TEST_NAME}"
221         ##
222        cd ${SETTE_DIR}
223        . ./param.cfg
224        . ./all_functions.sh
225        . ./prepare_exe_dir.sh
226        JOB_FILE=${EXE_DIR}/run_job.sh
227        NPROC=1
228        if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
229        cd ${EXE_DIR}
230        set_namelist namelist_cfg ln_clobber .true.
231        if [ ${USING_MPMD} == "yes" ] ; then
232           set_xio_using_server iodef.xml true
233        else
234           set_xio_using_server iodef.xml false
235        fi
236        cd ${SETTE_DIR}
237        . ./prepare_job.sh input_EMPTY.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
238        cd ${SETTE_DIR}
239        . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
240       ##
241     done
242fi
243
244# TESTS FOR LOCK_EXCHANGE CONFIGURATION
245if [ ${config} -eq 2 ] ;  then
246    ## Restartability tests for LOCK_EXCHANGE
247    export TEST_NAME="LONG"
248    cd ${CONFIG_DIR0}
249    . ./makenemo -m ${CMP_NAM} -a TEST_CASES -n LOCK_EXCHANGE_TESTs -r OVERFLOW -j 8 del_key ${DEL_KEYS}
250    cd ${SETTE_DIR}
251    . ./param.cfg
252    . ./all_functions.sh
253    . ./prepare_exe_dir.sh
254    JOB_FILE=${EXE_DIR}/run_job.sh
255    NPROC=1
256    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
257    cd ${EXE_DIR}
258    set_namelist namelist_cfg cn_exp \"LOCK_LONG\"
259    set_namelist namelist_cfg nn_it000 1
260    set_namelist namelist_cfg nn_stock 60
261    set_namelist namelist_cfg nn_itend 120
262    set_namelist namelist_cfg ln_clobber .true.
263    if [ ${USING_MPMD} == "yes" ] ; then
264       set_xio_using_server iodef.xml true
265    else
266       set_xio_using_server iodef.xml false
267    fi
268    cd ${SETTE_DIR}
269    . ./prepare_job.sh input_EMPTY.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
270
271    cd ${SETTE_DIR}
272    export TEST_NAME="SHORT"
273    . ./prepare_exe_dir.sh
274    cd ${EXE_DIR}
275    set_namelist namelist_cfg cn_exp \"LOCK_SHORT\"
276    set_namelist namelist_cfg nn_it000 61
277    set_namelist namelist_cfg nn_itend 120
278    set_namelist namelist_cfg nn_stock 60
279    set_namelist namelist_cfg ln_rstart .true.
280    set_namelist namelist_cfg nn_rstctl 2
281    set_namelist namelist_cfg ln_clobber .true.
282    set_namelist namelist_top_cfg ln_rsttr .true.
283    set_namelist namelist_top_cfg nn_rsttr 2
284    set_namelist namelist_cfg cn_ocerst_in \"LOCK_LONG_00000060_restart\"
285    if [ ${USING_MPMD} == "yes" ] ; then
286       set_xio_using_server iodef.xml true
287    else
288       set_xio_using_server iodef.xml false
289    fi
290    ln -sf ../LONG/LOCK_LONG_00000060_restart.nc .
291    if [ ${USING_MPMD} == "yes" ] ; then
292       set_xio_using_server iodef.xml true
293    else
294       set_xio_using_server iodef.xml false
295    fi
296    cd ${SETTE_DIR}
297    . ./prepare_job.sh input_EMPTY.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
298    cd ${SETTE_DIR}
299    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
300
301    ## Test for all advection, vector form, flux form: test runability and complete all time steps
302    ## Needed namelist-xxxx for every type of run tested
303    cd ${CONFIG_DIR}/${NEW_CONF}/EXP00
304
305    for file in $(echo `ls namelist_*_cfg `) ; do
306        TEST_NAME=`ls $file | sed -e "s/namelist_//" | sed -e "s/_cfg//"`
307        TEST_NAME="EXP-${TEST_NAME}"
308        `mkdir ${CONFIG_DIR}/${NEW_CONF}/${TEST_NAME}`
309        export TEST_NAME="${TEST_NAME}"
310         ## 
311        cd ${SETTE_DIR}
312        . ./param.cfg
313        . ./all_functions.sh
314        . ./prepare_exe_dir.sh
315        JOB_FILE=${EXE_DIR}/run_job.sh
316        NPROC=1
317        if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
318        cd ${EXE_DIR}
319        set_namelist namelist_cfg ln_clobber .true.
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_EMPTY.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
327        cd ${SETTE_DIR}
328        . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
329       ##
330   done
331fi
332
333# TESTS FOR VORTEX CONFIGURATION
334if [ ${config} -eq 3 ] ;  then
335    ## Restartability tests for VORTEX
336    export TEST_NAME="LONG"
337    cd ${CONFIG_DIR0}
338    . ./makenemo -m ${CMP_NAM} -a TEST_CASES -n VORTEX_TESTs -r VORTEX -j 8 del_key ${DEL_KEYS}
339    cd ${SETTE_DIR}
340    . ./param.cfg
341    . ./all_functions.sh
342    . ./prepare_exe_dir.sh
343    JOB_FILE=${EXE_DIR}/run_job.sh
344    NPROC=1
345    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
346    cd ${EXE_DIR}
347    set_namelist namelist_cfg cn_exp \"VORTEX_LONG\"
348    set_namelist namelist_cfg nn_it000 1
349    set_namelist namelist_cfg nn_stock 60
350    set_namelist namelist_cfg nn_itend 120
351    set_namelist namelist_cfg ln_clobber .true.
352    if [ ${USING_MPMD} == "yes" ] ; then
353       set_xio_using_server iodef.xml true
354    else
355       set_xio_using_server iodef.xml false
356    fi
357    cd ${SETTE_DIR}
358    . ./prepare_job.sh input_EMPTY.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
359
360    cd ${SETTE_DIR}
361    export TEST_NAME="SHORT"
362    . ./prepare_exe_dir.sh
363    cd ${EXE_DIR}
364    set_namelist namelist_cfg cn_exp \"VORTEX_SHORT\"
365    set_namelist namelist_cfg nn_it000 61
366    set_namelist namelist_cfg nn_itend 120
367    set_namelist namelist_cfg nn_stock 60
368    set_namelist namelist_cfg ln_rstart .true.
369    set_namelist namelist_cfg nn_rstctl 2
370    set_namelist namelist_cfg ln_clobber .true.
371    set_namelist namelist_top_cfg ln_rsttr .true.
372    set_namelist namelist_top_cfg nn_rsttr 2
373    set_namelist namelist_cfg cn_ocerst_in \"VORTEX_LONG_00000060_restart\"
374    if [ ${USING_MPMD} == "yes" ] ; then
375       set_xio_using_server iodef.xml true
376    else
377       set_xio_using_server iodef.xml false
378    fi
379    ln -sf ../LONG/VORTEX_LONG_00000060_restart.nc .
380    if [ ${USING_MPMD} == "yes" ] ; then
381       set_xio_using_server iodef.xml true
382    else
383       set_xio_using_server iodef.xml false
384    fi
385    cd ${SETTE_DIR}
386    . ./prepare_job.sh input_EMPTY.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
387    cd ${SETTE_DIR}
388    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
389
390
391    ## Test for all advection, vert. coordinates, vector form, flux form: test runability and complete all time steps
392    ## Needed namelist-xxxx for every type of run tested
393    cd ${CONFIG_DIR}/${NEW_CONF}/EXP00
394
395    for file in $(echo `ls namelist_*_cfg `) ; do
396        TEST_NAME=`ls $file | sed -e "s/namelist_//" | sed -e "s/_cfg//"`
397        TEST_NAME="EXP-${TEST_NAME}"
398        `mkdir ${CONFIG_DIR}/${NEW_CONF}/${TEST_NAME}`
399        export TEST_NAME="${TEST_NAME}"
400         ## 
401        cd ${SETTE_DIR}
402        . ./param.cfg
403        . ./all_functions.sh
404        . ./prepare_exe_dir.sh
405        JOB_FILE=${EXE_DIR}/run_job.sh
406        NPROC=1
407        if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
408        cd ${EXE_DIR}
409        set_namelist namelist_cfg ln_clobber .true.
410        if [ ${USING_MPMD} == "yes" ] ; then
411           set_xio_using_server iodef.xml true
412        else
413           set_xio_using_server iodef.xml false
414        fi
415        cd ${SETTE_DIR}
416        . ./prepare_job.sh input_EMPTY.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
417        cd ${SETTE_DIR}
418        . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
419       ##
420    done
421fi
422
423
424#--clem:
425# TESTS FOR SAS_BIPER CONFIGURATION
426if [ ${config} -eq 5 ] ;  then 
427    ## Restartability tests for SAS_BIPER
428    export TEST_NAME="LONG"
429    cd ${CONFIG_DIR0}
430    . ./makenemo -m ${CMP_NAM} -n SAS_BIPER_ST -r SAS_BIPER -a TEST_CASES -j 8  del_key ${DEL_KEYS}
431    cd ${SETTE_DIR}
432    . ./param.cfg
433    . ./all_functions.sh
434    . ./prepare_exe_dir.sh
435    JOB_FILE=${EXE_DIR}/run_job.sh
436    NPROC=1
437    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
438    cd ${EXE_DIR}
439    set_namelist namelist_cfg cn_exp \"SAS_BIPER_LONG\"
440    set_namelist namelist_cfg nn_it000 1
441    set_namelist namelist_cfg nn_itend 200
442    set_namelist namelist_cfg nn_stock 100
443    set_namelist namelist_cfg ln_clobber .true.
444#    set_namelist namelist_cfg nn_fsbc 1       
445    set_namelist namelist_cfg jpni 1
446    set_namelist namelist_cfg jpnj 1
447    set_namelist namelist_cfg jpnij 1
448   
449    set_namelist namelist_ice_cfg ln_icethd .true.
450    set_namelist namelist_ice_cfg ln_icedyn .true.
451    set_namelist namelist_ice_cfg ln_dynFULL .true.
452    set_namelist namelist_ice_cfg ln_dynRHGADV .false.
453    set_namelist namelist_ice_cfg ln_dynADV .false.
454    set_namelist namelist_ice_cfg ln_adv_Pra .false.
455    set_namelist namelist_ice_cfg ln_adv_UMx .true.
456    set_namelist namelist_ice_cfg ln_icediachk .true.
457   
458    set_namelist 1_namelist_cfg cn_exp \"SAS_BIPER_LONG\"
459    set_namelist 1_namelist_cfg nn_it000 1
460    set_namelist 1_namelist_cfg nn_itend 600
461    set_namelist 1_namelist_cfg nn_stock 300
462    set_namelist 1_namelist_cfg ln_clobber .true.
463    set_namelist 1_namelist_cfg jpni 1
464    set_namelist 1_namelist_cfg jpnj 1
465    set_namelist 1_namelist_cfg jpnij 1
466   
467    set_namelist 1_namelist_ice_cfg ln_icethd .true.
468    set_namelist 1_namelist_ice_cfg ln_icedyn .true.
469    set_namelist 1_namelist_ice_cfg ln_dynFULL .true.
470    set_namelist 1_namelist_ice_cfg ln_dynRHGADV .false.
471    set_namelist 1_namelist_ice_cfg ln_dynADV .false.
472    set_namelist 1_namelist_ice_cfg ln_adv_Pra .false.
473    set_namelist 1_namelist_ice_cfg ln_adv_UMx .true.
474#    set_namelist 1_namelist_ice_cfg ln_icediachk .true.
475    if [ ${USING_MPMD} == "yes" ] ; then
476        set_xio_using_server iodef.xml true
477    else
478        set_xio_using_server iodef.xml false
479    fi
480    cd ${SETTE_DIR}
481    . ./prepare_job.sh input_SASBIPER.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
482   
483    cd ${SETTE_DIR}
484    export TEST_NAME="SHORT"
485    . ./prepare_exe_dir.sh
486    cd ${EXE_DIR}
487    set_namelist namelist_cfg cn_exp \"SAS_BIPER_SHORT\"
488    set_namelist namelist_cfg nn_it000 101
489    set_namelist namelist_cfg nn_itend 200
490    set_namelist namelist_cfg nn_stock 100
491    set_namelist namelist_cfg ln_rstart .true.
492    set_namelist namelist_cfg nn_rstctl 2
493    set_namelist namelist_cfg ln_clobber .true.
494    set_namelist namelist_cfg jpni 1
495    set_namelist namelist_cfg jpnj 1
496    set_namelist namelist_cfg jpnij 1
497   
498    set_namelist namelist_ice_cfg ln_icethd .true.
499    set_namelist namelist_ice_cfg ln_icedyn .true.
500    set_namelist namelist_ice_cfg ln_dynFULL .true.
501    set_namelist namelist_ice_cfg ln_dynRHGADV .false.
502    set_namelist namelist_ice_cfg ln_dynADV .false.
503    set_namelist namelist_ice_cfg ln_adv_Pra .false.
504    set_namelist namelist_ice_cfg ln_adv_UMx .true.
505    set_namelist namelist_ice_cfg ln_icediachk .true.
506    set_namelist namelist_cfg cn_ocerst_in \"SAS_BIPER_LONG_00000100_restart\"
507    set_namelist namelist_ice_cfg cn_icerst_in \"SAS_BIPER_LONG_00000100_restart_ice\"
508   
509    set_namelist 1_namelist_cfg cn_exp \"SAS_BIPER_SHORT\"
510    set_namelist 1_namelist_cfg nn_it000 301
511    set_namelist 1_namelist_cfg nn_itend 600
512    set_namelist 1_namelist_cfg nn_stock 300
513    set_namelist 1_namelist_cfg ln_rstart .true.
514    set_namelist 1_namelist_cfg nn_rstctl 2
515    set_namelist 1_namelist_cfg ln_clobber .true.
516    set_namelist 1_namelist_cfg jpni 1
517    set_namelist 1_namelist_cfg jpnj 1
518    set_namelist 1_namelist_cfg jpnij 1
519   
520    set_namelist 1_namelist_ice_cfg ln_icethd .true.
521    set_namelist 1_namelist_ice_cfg ln_icedyn .true.
522    set_namelist 1_namelist_ice_cfg ln_dynFULL .true.
523    set_namelist 1_namelist_ice_cfg ln_dynRHGADV .false.
524    set_namelist 1_namelist_ice_cfg ln_dynADV .false.
525    set_namelist 1_namelist_ice_cfg ln_adv_Pra .false.
526    set_namelist 1_namelist_ice_cfg ln_adv_UMx .true.
527#    set_namelist 1_namelist_ice_cfg ln_icediachk .true.
528    set_namelist 1_namelist_cfg cn_ocerst_in \"SAS_BIPER_LONG_00000300_restart\"
529    set_namelist 1_namelist_ice_cfg cn_icerst_in \"SAS_BIPER_LONG_00000300_restart_ice\"
530   
531   
532    if [ ${USING_MPMD} == "yes" ] ; then
533        set_xio_using_server iodef.xml true
534    else
535        set_xio_using_server iodef.xml false
536    fi
537    if [ $NPROC -eq 1 ] ;  then
538        ln -sf ../LONG/SAS_BIPER_LONG_00000100_restart.nc .
539        ln -sf ../LONG/SAS_BIPER_LONG_00000100_restart_ice.nc .
540        ln -sf ../LONG/1_SAS_BIPER_LONG_00000300_restart.nc .
541        ln -sf ../LONG/1_SAS_BIPER_LONG_00000300_restart_ice.nc .
542    else
543        for (( i=1; i<=$NPROC; i++)) ; do
544            L_NPROC=$(( $i - 1 ))
545            L_NPROC=`printf "%04d\n" ${L_NPROC}`
546            ln -sf ../LONG/SAS_BIPER_LONG_00000100_restart_${L_NPROC}.nc .
547            ln -sf ../LONG/SAS_BIPER_LONG_00000100_restart_ice_${L_NPROC}.nc .
548            ln -sf ../LONG/1_SAS_BIPER_LONG_00000300_restart_${L_NPROC}.nc .
549            ln -sf ../LONG/1_SAS_BIPER_LONG_00000300_restart_ice_${L_NPROC}.nc .
550        done
551    fi
552    if [ ${USING_MPMD} == "yes" ] ; then
553        set_xio_using_server iodef.xml true
554    else
555        set_xio_using_server iodef.xml false
556    fi
557    if [ $NPROC -eq 1 ] ;  then
558        ln -sf ../LONG/SAS_BIPER_LONG_00000100_restart.nc .
559        ln -sf ../LONG/SAS_BIPER_LONG_00000100_restart_ice.nc .
560   ln -sf ../LONG/1_SAS_BIPER_LONG_00000300_restart.nc .
561        ln -sf ../LONG/1_SAS_BIPER_LONG_00000300_restart_ice.nc .
562    else
563        for (( i=1; i<=$NPROC; i++)) ; do
564            L_NPROC=$(( $i - 1 ))
565            L_NPROC=`printf "%04d\n" ${L_NPROC}`
566            ln -sf ../LONG/SAS_BIPER_LONG_00000100_restart_${L_NPROC}.nc .
567            ln -sf ../LONG/SAS_BIPER_LONG_00000100_restart_ice_${L_NPROC}.nc .
568            ln -sf ../LONG/1_SAS_BIPER_LONG_00000300_restart_${L_NPROC}.nc .
569            ln -sf ../LONG/1_SAS_BIPER_LONG_00000300_restart_ice_${L_NPROC}.nc .
570        done
571    fi
572    if [ ${USING_MPMD} == "yes" ] ; then
573        set_xio_using_server iodef.xml true
574    else
575        set_xio_using_server iodef.xml false
576    fi
577    cd ${SETTE_DIR}
578    . ./prepare_job.sh input_SASBIPER.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
579    cd ${SETTE_DIR}
580    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
581   
582fi
583
584#----
585done
Note: See TracBrowser for help on using the repository browser.