[9268] | 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 | #set -vx |
---|
| 17 | set -o posix |
---|
| 18 | #set -u |
---|
| 19 | #set -e |
---|
| 20 | # =========== |
---|
| 21 | # DESCRIPTION |
---|
| 22 | # =========== |
---|
| 23 | # |
---|
| 24 | # Variables to be checked by user: |
---|
| 25 | # |
---|
| 26 | # COMPILER : name of compiler as defined in NEMOGCM/ARCH directory |
---|
| 27 | # BATCH_COMMAND_PAR : name of the command for submitting parallel batch jobs |
---|
| 28 | # BATCH_COMMAND_SEQ : name of the command for submitting sequential batch jobs |
---|
| 29 | # INTERACT_FLAG : flag to run in interactive mode "yes" |
---|
| 30 | # to run in batch mode "no" |
---|
| 31 | # MPIRUN_FLAG : flag to run in parallel (MPI) "yes" |
---|
| 32 | # to run in sequential mode (NB_PROC = 1) "no" |
---|
| 33 | # USING_XIOS : flag to control the activation of key_iomput |
---|
| 34 | # "yes" to compile using key_iomput and link to the external XIOS library |
---|
| 35 | # "no" to compile without key_iomput and link to the old IOIPSL library |
---|
| 36 | # USING_MPMD : flag to control the use of stand-alone IO servers |
---|
| 37 | # requires USING_XIOS="yes" |
---|
| 38 | # "yes" to run in MPMD (detached) mode with stand-alone IO servers |
---|
| 39 | # "no" to run in SPMD (attached) mode without separate IO servers |
---|
| 40 | # NUM_XIOSERVERS : number of stand-alone IO servers to employ |
---|
| 41 | # set to zero if USING_MPMD="no" |
---|
| 42 | # |
---|
| 43 | # Principal script is sette_test-cases.sh, that calls |
---|
| 44 | # |
---|
| 45 | # makenemo : to create successive exectuables in ${CONFIG_NAME}/BLD/bin/nemo.exe |
---|
[9576] | 46 | # and links to nemo in ${CONFIG_NAME}/EXP00) |
---|
[9268] | 47 | # |
---|
| 48 | # param.cfg : sets and loads following directories: |
---|
| 49 | # |
---|
| 50 | # FORCING_DIR : is the directory for forcing files (tarfile) |
---|
| 51 | # INPUT_DIR : is the directory for input files storing |
---|
| 52 | # TMPDIR : is the temporary directory (if needed) |
---|
| 53 | # NEMO_VALIDATION_DIR : is the validation directory |
---|
| 54 | # |
---|
| 55 | # (NOTE: this file is the same for all configrations to be tested with sette_test-cases.sh) |
---|
| 56 | # |
---|
| 57 | # all_functions.sh : loads functions used by sette (note: new functions can be added here) |
---|
| 58 | # set_namelist : function declared in all_functions that sets namelist parameters |
---|
| 59 | # post_test_tidyup : creates validation storage directory and copies required output files |
---|
| 60 | # (run.stat and ocean.output) in it after execution of test. |
---|
| 61 | # |
---|
| 62 | # VALIDATION tree is: |
---|
| 63 | # |
---|
| 64 | # NEMO_VALIDATION_DIR/WCONFIG_NAME/WCOMPILER_NAME/TEST_NAME/REVISION_NUMBER(or DATE) |
---|
| 65 | # |
---|
| 66 | # prepare_exe_dir.sh : defines and creates directory where the test is executed |
---|
| 67 | # execution directory takes name of TEST_NAME defined for every test |
---|
| 68 | # in sette_test-cases.sh. (each test in executed in its own directory) |
---|
| 69 | # |
---|
[11161] | 70 | # set_valid_dir : rename ocean.output/run.stat and tracer.stat to avoid checking them in the report |
---|
| 71 | # |
---|
| 72 | # clean_valid_dir : rename ocean.output/run.stat and tracer.stat to avoid checking them in the report |
---|
| 73 | # ( not doing it could lead to false positive ) |
---|
| 74 | # |
---|
[9268] | 75 | # prepare_job.sh : to generate the script run_job.sh |
---|
| 76 | # |
---|
| 77 | # fcm_job.sh : run in batch (INTERACT_FLAG="no") or interactive (INTERACT_FLAG="yes") |
---|
| 78 | # see sette_test-cases.sh and BATCH_TEMPLATE directory |
---|
| 79 | # |
---|
| 80 | # NOTE: jobs requiring initial or forcing data need to have an input_CONFIG.cfg in which |
---|
| 81 | # can be found paths to the input tar file) |
---|
| 82 | # NOTE: if job is not launched for any reason you have the executable ready in ${EXE_DIR} |
---|
| 83 | # directory |
---|
| 84 | # NOTE: the changed namelists are left in ${EXE_DIR} directory whereas original namelists |
---|
| 85 | # remain in ${NEW_CONF}/EXP00 |
---|
| 86 | # |
---|
| 87 | # NOTE: a log file, output.sette, is created in ${SETTE_DIR} with the echoes of |
---|
| 88 | # executed commands |
---|
| 89 | # |
---|
| 90 | # NOTE: if sette_test-cases.sh is stopped in output.sette there is written the last command |
---|
| 91 | # executed by sette_test-cases.sh |
---|
| 92 | # |
---|
| 93 | # example use: ./sette_test-cases.sh |
---|
| 94 | ######################################################################################### |
---|
| 95 | # |
---|
[11161] | 96 | # LOAD param value |
---|
| 97 | SETTE_DIR=$(cd $(dirname "$0"); pwd) |
---|
| 98 | MAIN_DIR=$(dirname $SETTE_DIR) |
---|
| 99 | . ./param.cfg |
---|
[9268] | 100 | |
---|
[11161] | 101 | export BATCH_COMMAND_PAR=${BATCH_CMD} |
---|
| 102 | export BATCH_COMMAND_SEQ=${BATCH_CMD} |
---|
[9268] | 103 | export INTERACT_FLAG="no" |
---|
| 104 | export MPIRUN_FLAG="yes" |
---|
| 105 | # |
---|
| 106 | export DEL_KEYS="key_iomput" |
---|
| 107 | if [ ${USING_XIOS} == "yes" ] |
---|
| 108 | then |
---|
| 109 | export DEL_KEYS="" |
---|
| 110 | fi |
---|
| 111 | # |
---|
[11161] | 112 | export ADD_KEYS="" |
---|
| 113 | if [ ${ADD_NOSIGNEDZERO} == "yes" ] |
---|
| 114 | then |
---|
| 115 | export ADD_KEYS="key_nosignedzero" |
---|
| 116 | fi |
---|
| 117 | # |
---|
[9268] | 118 | # Settings which control the use of stand alone servers (only relevant if using xios) |
---|
| 119 | # |
---|
| 120 | export NUM_XIOSERVERS=4 |
---|
[11161] | 121 | export JOB_PREFIX=${JOB_PREFIX_MPMD} |
---|
[9268] | 122 | # |
---|
| 123 | if [ ${USING_MPMD} == "no" ] |
---|
| 124 | then |
---|
| 125 | export NUM_XIOSERVERS=0 |
---|
[11161] | 126 | export JOB_PREFIX=${JOB_PREFIX_NOMPMD} |
---|
[9268] | 127 | fi |
---|
| 128 | # |
---|
| 129 | # |
---|
[11161] | 130 | if [ ${USING_MPMD} == "yes" ] && [ ${USING_XIOS} == "no" ] |
---|
[9268] | 131 | then |
---|
| 132 | echo "Incompatible choices. MPMD mode requires the XIOS server" |
---|
| 133 | exit |
---|
| 134 | fi |
---|
| 135 | |
---|
| 136 | # Directory to run the tests |
---|
[9602] | 137 | CONFIG_DIR0=${MAIN_DIR}/cfgs |
---|
[9605] | 138 | TOOLS_DIR=${MAIN_DIR}/tools |
---|
[9268] | 139 | |
---|
| 140 | CMP_NAM=${1:-$COMPILER} |
---|
| 141 | # Copy job_batch_COMPILER file for specific compiler into job_batch_template |
---|
| 142 | cd ${SETTE_DIR} |
---|
| 143 | cp BATCH_TEMPLATE/${JOB_PREFIX}-${COMPILER} job_batch_template || exit |
---|
| 144 | # Description of configuration tested: |
---|
[11161] | 145 | # OVERFLOW : TEST s-coordinates : (tracers) Advection schemes: FCT2, FCT4, ubs |
---|
| 146 | # & (dynamics) advection schemes: flux form (ubs, centered), vector form (een) |
---|
| 147 | # zps-coordinates : (tracers) Advection schemes: FCT2, FCT4, ubs |
---|
| 148 | # & (dynamics) advection schemes: flux form (ubs, centered), vector form (een, and een + Hollingsworth correction) |
---|
| 149 | # LOCK_EXCHANGE : |
---|
| 150 | # VORTEX : |
---|
| 151 | # ICE_AGRIF : |
---|
| 152 | # ISOMIP : |
---|
[9744] | 153 | # WAD |
---|
[9268] | 154 | |
---|
| 155 | |
---|
[11161] | 156 | for config in ${TEST_CONFIGS} |
---|
[9268] | 157 | do |
---|
| 158 | |
---|
[9524] | 159 | # --------- |
---|
| 160 | # OVERFLOW |
---|
| 161 | # --------- |
---|
[11161] | 162 | if [ ${config} == "OVERFLOW" ] ; then |
---|
[9268] | 163 | ## Restartability tests for OVERFLOW |
---|
| 164 | export TEST_NAME="LONG" |
---|
[9708] | 165 | cd ${MAIN_DIR} |
---|
[12569] | 166 | # |
---|
| 167 | . ${SETTE_DIR}/all_functions.sh |
---|
| 168 | # |
---|
| 169 | clean_config OVERFLOW OVERFLOW_ST 'tests' |
---|
| 170 | # |
---|
| 171 | sync_config OVERFLOW OVERFLOW_ST 'tests' |
---|
| 172 | # |
---|
[11497] | 173 | . ./makenemo -m ${CMP_NAM} -n OVERFLOW_ST -a OVERFLOW -j 8 add_key "${ADD_KEYS}" del_key "${DEL_KEYS}" |
---|
[9268] | 174 | cd ${SETTE_DIR} |
---|
| 175 | . ./param.cfg |
---|
| 176 | . ./all_functions.sh |
---|
| 177 | . ./prepare_exe_dir.sh |
---|
[11161] | 178 | set_valid_dir |
---|
| 179 | clean_valid_dir |
---|
[9268] | 180 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 181 | NPROC=1 |
---|
| 182 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
| 183 | cd ${EXE_DIR} |
---|
| 184 | set_namelist namelist_cfg cn_exp \"OVF_LONG\" |
---|
| 185 | set_namelist namelist_cfg nn_it000 1 |
---|
| 186 | set_namelist namelist_cfg nn_itend 120 |
---|
| 187 | set_namelist namelist_cfg nn_stock 60 |
---|
[10575] | 188 | set_namelist namelist_cfg sn_cfctl%l_runstat .true. |
---|
[9268] | 189 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 190 | set_xio_using_server iodef.xml true |
---|
| 191 | else |
---|
| 192 | set_xio_using_server iodef.xml false |
---|
| 193 | fi |
---|
| 194 | cd ${SETTE_DIR} |
---|
[11161] | 195 | . ./prepare_job.sh input_EMPTY.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} |
---|
[9268] | 196 | |
---|
| 197 | cd ${SETTE_DIR} |
---|
| 198 | export TEST_NAME="SHORT" |
---|
| 199 | . ./prepare_exe_dir.sh |
---|
[11161] | 200 | set_valid_dir |
---|
| 201 | clean_valid_dir |
---|
[9268] | 202 | cd ${EXE_DIR} |
---|
| 203 | set_namelist namelist_cfg cn_exp \"OVF_SHORT\" |
---|
| 204 | set_namelist namelist_cfg nn_it000 61 |
---|
| 205 | set_namelist namelist_cfg nn_itend 120 |
---|
| 206 | set_namelist namelist_cfg nn_stock 60 |
---|
[10575] | 207 | set_namelist namelist_cfg sn_cfctl%l_runstat .true. |
---|
[9268] | 208 | set_namelist namelist_cfg ln_rstart .true. |
---|
| 209 | set_namelist namelist_cfg nn_rstctl 2 |
---|
| 210 | set_namelist namelist_cfg cn_ocerst_in \"OVF_LONG_00000060_restart\" |
---|
| 211 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 212 | set_xio_using_server iodef.xml true |
---|
| 213 | else |
---|
| 214 | set_xio_using_server iodef.xml false |
---|
| 215 | fi |
---|
| 216 | ln -sf ../LONG/OVF_LONG_00000060_restart.nc . |
---|
[9756] | 217 | |
---|
[9268] | 218 | cd ${SETTE_DIR} |
---|
[11161] | 219 | . ./prepare_job.sh input_EMPTY.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} |
---|
[9268] | 220 | cd ${SETTE_DIR} |
---|
| 221 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 222 | |
---|
| 223 | |
---|
| 224 | ## Test for all advection, vert. coordinates, vector form, flux form: test runability and complete all time steps |
---|
| 225 | ## Needed namelist-xxxx for every type of run tested |
---|
| 226 | cd ${CONFIG_DIR}/${NEW_CONF}/EXP00 |
---|
| 227 | |
---|
| 228 | for file in $(echo `ls namelist_*_cfg `) ; do |
---|
[9963] | 229 | TEST_NAME=`echo $file | sed -e "s/namelist_//" | sed -e "s/_cfg//"` |
---|
[9268] | 230 | TEST_NAME="EXP-${TEST_NAME}" |
---|
[9963] | 231 | if [ ! -d ${CONFIG_DIR}/${NEW_CONF}/${TEST_NAME} ] ; then mkdir ${CONFIG_DIR}/${NEW_CONF}/${TEST_NAME} ; fi |
---|
[9268] | 232 | export TEST_NAME="${TEST_NAME}" |
---|
| 233 | ## |
---|
| 234 | cd ${SETTE_DIR} |
---|
| 235 | . ./param.cfg |
---|
| 236 | . ./all_functions.sh |
---|
| 237 | . ./prepare_exe_dir.sh |
---|
[11161] | 238 | set_valid_dir |
---|
| 239 | clean_valid_dir |
---|
[9268] | 240 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 241 | NPROC=1 |
---|
| 242 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
| 243 | cd ${EXE_DIR} |
---|
[9963] | 244 | rm namelist_*_*_*_* |
---|
| 245 | cp -pL ${CONFIG_DIR}/${NEW_CONF}/EXP00/$file namelist_cfg |
---|
[9268] | 246 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 247 | set_xio_using_server iodef.xml true |
---|
| 248 | else |
---|
| 249 | set_xio_using_server iodef.xml false |
---|
| 250 | fi |
---|
| 251 | cd ${SETTE_DIR} |
---|
[11161] | 252 | . ./prepare_job.sh input_EMPTY.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} |
---|
[9268] | 253 | cd ${SETTE_DIR} |
---|
| 254 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 255 | ## |
---|
| 256 | done |
---|
| 257 | fi |
---|
| 258 | |
---|
[9524] | 259 | # -------------- |
---|
| 260 | # LOCK_EXCHANGE |
---|
| 261 | # -------------- |
---|
[11161] | 262 | if [ ${config} == "LOCK_EXCHANGE" ] ; then |
---|
[9268] | 263 | ## Restartability tests for LOCK_EXCHANGE |
---|
| 264 | export TEST_NAME="LONG" |
---|
[9708] | 265 | cd ${MAIN_DIR} |
---|
[12569] | 266 | # |
---|
| 267 | # syncronisation if target directory/file exist (not done by makenemo) |
---|
| 268 | . ${SETTE_DIR}/all_functions.sh |
---|
| 269 | # |
---|
| 270 | clean_config LOCK_EXCHANGE LOCK_EXCHANGE_ST 'tests' |
---|
| 271 | # |
---|
| 272 | sync_config LOCK_EXCHANGE LOCK_EXCHANGE_ST 'tests' |
---|
| 273 | # |
---|
[11497] | 274 | . ./makenemo -m ${CMP_NAM} -n LOCK_EXCHANGE_ST -a LOCK_EXCHANGE -j 8 add_key "${ADD_KEYS}" del_key "${DEL_KEYS}" |
---|
[9268] | 275 | cd ${SETTE_DIR} |
---|
| 276 | . ./param.cfg |
---|
| 277 | . ./all_functions.sh |
---|
| 278 | . ./prepare_exe_dir.sh |
---|
[11161] | 279 | set_valid_dir |
---|
| 280 | clean_valid_dir |
---|
[9268] | 281 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 282 | NPROC=1 |
---|
| 283 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
| 284 | cd ${EXE_DIR} |
---|
| 285 | set_namelist namelist_cfg cn_exp \"LOCK_LONG\" |
---|
| 286 | set_namelist namelist_cfg nn_it000 1 |
---|
| 287 | set_namelist namelist_cfg nn_stock 60 |
---|
[10575] | 288 | set_namelist namelist_cfg sn_cfctl%l_runstat .true. |
---|
[9268] | 289 | set_namelist namelist_cfg nn_itend 120 |
---|
| 290 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 291 | set_xio_using_server iodef.xml true |
---|
| 292 | else |
---|
| 293 | set_xio_using_server iodef.xml false |
---|
| 294 | fi |
---|
| 295 | cd ${SETTE_DIR} |
---|
[11161] | 296 | . ./prepare_job.sh input_EMPTY.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} |
---|
[9268] | 297 | |
---|
| 298 | cd ${SETTE_DIR} |
---|
| 299 | export TEST_NAME="SHORT" |
---|
| 300 | . ./prepare_exe_dir.sh |
---|
[11161] | 301 | set_valid_dir |
---|
| 302 | clean_valid_dir |
---|
[9268] | 303 | cd ${EXE_DIR} |
---|
| 304 | set_namelist namelist_cfg cn_exp \"LOCK_SHORT\" |
---|
| 305 | set_namelist namelist_cfg nn_it000 61 |
---|
| 306 | set_namelist namelist_cfg nn_itend 120 |
---|
| 307 | set_namelist namelist_cfg nn_stock 60 |
---|
[10575] | 308 | set_namelist namelist_cfg sn_cfctl%l_runstat .true. |
---|
[9268] | 309 | set_namelist namelist_cfg ln_rstart .true. |
---|
| 310 | set_namelist namelist_cfg nn_rstctl 2 |
---|
| 311 | set_namelist namelist_cfg cn_ocerst_in \"LOCK_LONG_00000060_restart\" |
---|
| 312 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 313 | set_xio_using_server iodef.xml true |
---|
| 314 | else |
---|
| 315 | set_xio_using_server iodef.xml false |
---|
| 316 | fi |
---|
| 317 | ln -sf ../LONG/LOCK_LONG_00000060_restart.nc . |
---|
[9756] | 318 | |
---|
[9268] | 319 | cd ${SETTE_DIR} |
---|
[11161] | 320 | . ./prepare_job.sh input_EMPTY.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} |
---|
[9268] | 321 | cd ${SETTE_DIR} |
---|
| 322 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 323 | |
---|
| 324 | ## Test for all advection, vector form, flux form: test runability and complete all time steps |
---|
| 325 | ## Needed namelist-xxxx for every type of run tested |
---|
| 326 | cd ${CONFIG_DIR}/${NEW_CONF}/EXP00 |
---|
| 327 | |
---|
| 328 | for file in $(echo `ls namelist_*_cfg `) ; do |
---|
[10242] | 329 | echo '' |
---|
| 330 | TEST_NAME=`echo $file | sed -e "s/namelist_//" | sed -e "s/_cfg//"` |
---|
[9268] | 331 | TEST_NAME="EXP-${TEST_NAME}" |
---|
| 332 | `mkdir ${CONFIG_DIR}/${NEW_CONF}/${TEST_NAME}` |
---|
| 333 | export TEST_NAME="${TEST_NAME}" |
---|
[10242] | 334 | ## |
---|
[9268] | 335 | cd ${SETTE_DIR} |
---|
| 336 | . ./param.cfg |
---|
| 337 | . ./all_functions.sh |
---|
| 338 | . ./prepare_exe_dir.sh |
---|
[11161] | 339 | set_valid_dir |
---|
| 340 | clean_valid_dir |
---|
[9268] | 341 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 342 | NPROC=1 |
---|
| 343 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
| 344 | cd ${EXE_DIR} |
---|
[10242] | 345 | rm namelist_*_*_*_* |
---|
| 346 | cp -pL ${CONFIG_DIR}/${NEW_CONF}/EXP00/$file namelist_cfg |
---|
[9268] | 347 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 348 | set_xio_using_server iodef.xml true |
---|
| 349 | else |
---|
| 350 | set_xio_using_server iodef.xml false |
---|
| 351 | fi |
---|
| 352 | cd ${SETTE_DIR} |
---|
[11161] | 353 | . ./prepare_job.sh input_EMPTY.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} |
---|
[9268] | 354 | cd ${SETTE_DIR} |
---|
| 355 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
[10242] | 356 | ## |
---|
| 357 | echo '' |
---|
[9268] | 358 | done |
---|
| 359 | fi |
---|
| 360 | |
---|
[9524] | 361 | # --------- |
---|
| 362 | # VORTEX |
---|
| 363 | # --------- |
---|
[11161] | 364 | if [ ${config} == "VORTEX" ] ; then |
---|
[9756] | 365 | ## Restartability tests for VORTEX |
---|
[9268] | 366 | export TEST_NAME="LONG" |
---|
[9708] | 367 | cd ${MAIN_DIR} |
---|
[12569] | 368 | # |
---|
| 369 | # syncronisation if target directory/file exist (not done by makenemo) |
---|
| 370 | . ${SETTE_DIR}/all_functions.sh |
---|
| 371 | # |
---|
| 372 | clean_config VORTEX VORTEX_ST 'tests' |
---|
| 373 | # |
---|
| 374 | sync_config VORTEX VORTEX_ST 'tests' |
---|
| 375 | # |
---|
[11497] | 376 | . ./makenemo -m ${CMP_NAM} -n VORTEX_ST -a VORTEX -j 8 add_key "${ADD_KEYS}" del_key "${DEL_KEYS}" |
---|
[9268] | 377 | cd ${SETTE_DIR} |
---|
| 378 | . ./param.cfg |
---|
| 379 | . ./all_functions.sh |
---|
| 380 | . ./prepare_exe_dir.sh |
---|
[11161] | 381 | set_valid_dir |
---|
| 382 | clean_valid_dir |
---|
[9268] | 383 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
[9756] | 384 | NPROC=6 |
---|
| 385 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
[9268] | 386 | cd ${EXE_DIR} |
---|
| 387 | set_namelist namelist_cfg cn_exp \"VORTEX_LONG\" |
---|
| 388 | set_namelist namelist_cfg nn_it000 1 |
---|
[9756] | 389 | set_namelist namelist_cfg nn_itend 240 |
---|
| 390 | set_namelist namelist_cfg nn_stock 120 |
---|
[10575] | 391 | set_namelist namelist_cfg sn_cfctl%l_runstat .true. |
---|
[10433] | 392 | |
---|
[9756] | 393 | set_namelist 1_namelist_cfg cn_exp \"VORTEX_LONG\" |
---|
| 394 | set_namelist 1_namelist_cfg nn_it000 1 |
---|
| 395 | set_namelist 1_namelist_cfg nn_itend 720 |
---|
| 396 | set_namelist 1_namelist_cfg nn_stock 360 |
---|
[10575] | 397 | set_namelist 1_namelist_cfg sn_cfctl%l_runstat .true. |
---|
[10433] | 398 | |
---|
[9268] | 399 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
[9756] | 400 | set_xio_using_server iodef.xml true |
---|
[9268] | 401 | else |
---|
[9756] | 402 | set_xio_using_server iodef.xml false |
---|
[9268] | 403 | fi |
---|
| 404 | cd ${SETTE_DIR} |
---|
[11161] | 405 | . ./prepare_job.sh input_EMPTY.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} |
---|
[9756] | 406 | |
---|
[9268] | 407 | cd ${SETTE_DIR} |
---|
| 408 | export TEST_NAME="SHORT" |
---|
| 409 | . ./prepare_exe_dir.sh |
---|
[11161] | 410 | set_valid_dir |
---|
| 411 | clean_valid_dir |
---|
[9268] | 412 | cd ${EXE_DIR} |
---|
| 413 | set_namelist namelist_cfg cn_exp \"VORTEX_SHORT\" |
---|
[9756] | 414 | set_namelist namelist_cfg nn_it000 121 |
---|
| 415 | set_namelist namelist_cfg nn_itend 240 |
---|
| 416 | set_namelist namelist_cfg nn_stock 120 |
---|
[10575] | 417 | set_namelist namelist_cfg sn_cfctl%l_runstat .true. |
---|
[9268] | 418 | set_namelist namelist_cfg ln_rstart .true. |
---|
| 419 | set_namelist namelist_cfg nn_rstctl 2 |
---|
[9756] | 420 | set_namelist namelist_cfg cn_ocerst_in \"VORTEX_LONG_00000120_restart\" |
---|
| 421 | |
---|
| 422 | set_namelist 1_namelist_cfg cn_exp \"VORTEX_SHORT\" |
---|
| 423 | set_namelist 1_namelist_cfg nn_it000 361 |
---|
| 424 | set_namelist 1_namelist_cfg nn_itend 720 |
---|
[10575] | 425 | set_namelist 1_namelist_cfg sn_cfctl%l_runstat .true. |
---|
[9756] | 426 | set_namelist 1_namelist_cfg nn_stock 360 |
---|
| 427 | set_namelist 1_namelist_cfg ln_rstart .true. |
---|
| 428 | set_namelist 1_namelist_cfg nn_rstctl 2 |
---|
| 429 | set_namelist 1_namelist_cfg cn_ocerst_in \"VORTEX_LONG_00000360_restart\" |
---|
| 430 | |
---|
[9268] | 431 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
[9756] | 432 | set_xio_using_server iodef.xml true |
---|
| 433 | else |
---|
| 434 | set_xio_using_server iodef.xml false |
---|
| 435 | fi |
---|
| 436 | if [ $NPROC -eq 1 ] ; then |
---|
| 437 | ln -sf ../LONG/VORTEX_LONG_00000120_restart.nc . |
---|
| 438 | ln -sf ../LONG/1_VORTEX_LONG_00000360_restart.nc . |
---|
| 439 | else |
---|
| 440 | for (( i=1; i<=$NPROC; i++)) ; do |
---|
| 441 | L_NPROC=$(( $i - 1 )) |
---|
| 442 | L_NPROC=`printf "%04d\n" ${L_NPROC}` |
---|
| 443 | ln -sf ../LONG/VORTEX_LONG_00000120_restart_${L_NPROC}.nc . |
---|
| 444 | ln -sf ../LONG/1_VORTEX_LONG_00000360_restart_${L_NPROC}.nc . |
---|
| 445 | done |
---|
| 446 | fi |
---|
| 447 | cd ${SETTE_DIR} |
---|
[11161] | 448 | . ./prepare_job.sh input_EMPTY.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} |
---|
[9756] | 449 | cd ${SETTE_DIR} |
---|
| 450 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 451 | |
---|
| 452 | ## Reproducibility tests for VORTEX |
---|
| 453 | export TEST_NAME="REPRO_2_3" |
---|
| 454 | cd ${MAIN_DIR} |
---|
| 455 | cd ${SETTE_DIR} |
---|
| 456 | . ./param.cfg |
---|
| 457 | . ./all_functions.sh |
---|
| 458 | . ./prepare_exe_dir.sh |
---|
[11161] | 459 | set_valid_dir |
---|
| 460 | clean_valid_dir |
---|
[9756] | 461 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 462 | NPROC=6 |
---|
| 463 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
| 464 | cd ${EXE_DIR} |
---|
| 465 | set_namelist namelist_cfg cn_exp \"VORTEX_23\" |
---|
| 466 | set_namelist namelist_cfg nn_it000 1 |
---|
| 467 | set_namelist namelist_cfg nn_itend 240 |
---|
| 468 | set_namelist namelist_cfg nn_stock 120 |
---|
| 469 | set_namelist namelist_cfg jpni 2 |
---|
| 470 | set_namelist namelist_cfg jpnj 3 |
---|
[10575] | 471 | set_namelist namelist_cfg sn_cfctl%l_runstat .true. |
---|
[10427] | 472 | |
---|
[9756] | 473 | set_namelist 1_namelist_cfg cn_exp \"VORTEX_23\" |
---|
| 474 | set_namelist 1_namelist_cfg nn_it000 1 |
---|
| 475 | set_namelist 1_namelist_cfg nn_itend 720 |
---|
| 476 | set_namelist 1_namelist_cfg nn_stock 360 |
---|
| 477 | set_namelist 1_namelist_cfg jpni 2 |
---|
| 478 | set_namelist 1_namelist_cfg jpnj 3 |
---|
[10575] | 479 | set_namelist 1_namelist_cfg sn_cfctl%l_runstat .true. |
---|
[9756] | 480 | |
---|
| 481 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
[9268] | 482 | set_xio_using_server iodef.xml true |
---|
| 483 | else |
---|
| 484 | set_xio_using_server iodef.xml false |
---|
| 485 | fi |
---|
[9756] | 486 | cd ${SETTE_DIR} |
---|
[11161] | 487 | . ./prepare_job.sh input_EMPTY.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} |
---|
[9756] | 488 | cd ${SETTE_DIR} |
---|
| 489 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 490 | |
---|
| 491 | cd ${SETTE_DIR} |
---|
| 492 | export TEST_NAME="REPRO_3_2" |
---|
| 493 | . ./prepare_exe_dir.sh |
---|
[11161] | 494 | set_valid_dir |
---|
| 495 | clean_valid_dir |
---|
[9756] | 496 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 497 | NPROC=6 |
---|
| 498 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
| 499 | cd ${EXE_DIR} |
---|
| 500 | |
---|
| 501 | set_namelist namelist_cfg cn_exp \"VORTEX_32\" |
---|
| 502 | set_namelist namelist_cfg nn_it000 1 |
---|
| 503 | set_namelist namelist_cfg nn_itend 240 |
---|
| 504 | set_namelist namelist_cfg nn_stock 120 |
---|
| 505 | set_namelist namelist_cfg jpni 3 |
---|
| 506 | set_namelist namelist_cfg jpnj 2 |
---|
[10575] | 507 | set_namelist namelist_cfg sn_cfctl%l_runstat .true. |
---|
[10427] | 508 | |
---|
[9756] | 509 | set_namelist 1_namelist_cfg cn_exp \"VORTEX_32\" |
---|
| 510 | set_namelist 1_namelist_cfg nn_it000 1 |
---|
| 511 | set_namelist 1_namelist_cfg nn_itend 720 |
---|
| 512 | set_namelist 1_namelist_cfg nn_stock 360 |
---|
| 513 | set_namelist 1_namelist_cfg jpni 3 |
---|
| 514 | set_namelist 1_namelist_cfg jpnj 2 |
---|
[10575] | 515 | set_namelist 1_namelist_cfg sn_cfctl%l_runstat .true. |
---|
[10427] | 516 | |
---|
[9268] | 517 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 518 | set_xio_using_server iodef.xml true |
---|
| 519 | else |
---|
| 520 | set_xio_using_server iodef.xml false |
---|
| 521 | fi |
---|
| 522 | cd ${SETTE_DIR} |
---|
[11161] | 523 | . ./prepare_job.sh input_EMPTY.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} |
---|
[9268] | 524 | cd ${SETTE_DIR} |
---|
| 525 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 526 | |
---|
| 527 | fi |
---|
| 528 | |
---|
[9458] | 529 | |
---|
[9524] | 530 | # --------- |
---|
[10517] | 531 | # ICE_AGRIF |
---|
[9524] | 532 | # --------- |
---|
[11161] | 533 | if [ ${config} == "ICE_AGRIF" ] ; then |
---|
[10517] | 534 | ## Restartability tests for ICE_AGRIF |
---|
[9458] | 535 | export TEST_NAME="LONG" |
---|
[9708] | 536 | cd ${MAIN_DIR} |
---|
[12569] | 537 | # |
---|
| 538 | # syncronisation if target directory/file exist (not done by makenemo) |
---|
| 539 | . ${SETTE_DIR}/all_functions.sh |
---|
| 540 | # |
---|
| 541 | clean_config ICE_AGRIF ICE_AGRIF_ST 'tests' |
---|
| 542 | # |
---|
| 543 | sync_config ICE_AGRIF ICE_AGRIF_ST 'tests' |
---|
| 544 | # |
---|
[11497] | 545 | . ./makenemo -m ${CMP_NAM} -n ICE_AGRIF_ST -a ICE_AGRIF -j 8 add_key "${ADD_KEYS}" del_key "${DEL_KEYS}" |
---|
[9458] | 546 | cd ${SETTE_DIR} |
---|
| 547 | . ./param.cfg |
---|
| 548 | . ./all_functions.sh |
---|
| 549 | . ./prepare_exe_dir.sh |
---|
[11161] | 550 | set_valid_dir |
---|
| 551 | clean_valid_dir |
---|
[9458] | 552 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
[9756] | 553 | NPROC=6 |
---|
[9458] | 554 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
| 555 | cd ${EXE_DIR} |
---|
[10517] | 556 | set_namelist namelist_cfg cn_exp \"ICE_AGRIF_LONG\" |
---|
[9458] | 557 | set_namelist namelist_cfg nn_it000 1 |
---|
| 558 | set_namelist namelist_cfg nn_itend 200 |
---|
[10575] | 559 | set_namelist namelist_cfg sn_cfctl%l_runstat .true. |
---|
[9458] | 560 | set_namelist namelist_cfg nn_stock 100 |
---|
| 561 | |
---|
[10517] | 562 | set_namelist 1_namelist_cfg cn_exp \"ICE_AGRIF_LONG\" |
---|
[9458] | 563 | set_namelist 1_namelist_cfg nn_it000 1 |
---|
| 564 | set_namelist 1_namelist_cfg nn_itend 600 |
---|
[10575] | 565 | set_namelist 1_namelist_cfg sn_cfctl%l_runstat .true. |
---|
[9458] | 566 | set_namelist 1_namelist_cfg nn_stock 300 |
---|
| 567 | |
---|
| 568 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 569 | set_xio_using_server iodef.xml true |
---|
| 570 | else |
---|
| 571 | set_xio_using_server iodef.xml false |
---|
| 572 | fi |
---|
| 573 | cd ${SETTE_DIR} |
---|
[11161] | 574 | . ./prepare_job.sh input_ICE_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} |
---|
[9458] | 575 | |
---|
| 576 | cd ${SETTE_DIR} |
---|
| 577 | export TEST_NAME="SHORT" |
---|
| 578 | . ./prepare_exe_dir.sh |
---|
[11161] | 579 | set_valid_dir |
---|
| 580 | clean_valid_dir |
---|
[9458] | 581 | cd ${EXE_DIR} |
---|
[10517] | 582 | set_namelist namelist_cfg cn_exp \"ICE_AGRIF_SHORT\" |
---|
[9458] | 583 | set_namelist namelist_cfg nn_it000 101 |
---|
| 584 | set_namelist namelist_cfg nn_itend 200 |
---|
[10575] | 585 | set_namelist namelist_cfg sn_cfctl%l_runstat .true. |
---|
[9458] | 586 | set_namelist namelist_cfg nn_stock 100 |
---|
| 587 | set_namelist namelist_cfg ln_rstart .true. |
---|
| 588 | set_namelist namelist_cfg nn_rstctl 2 |
---|
[10517] | 589 | set_namelist namelist_cfg cn_ocerst_in \"ICE_AGRIF_LONG_00000100_restart\" |
---|
| 590 | set_namelist namelist_ice_cfg cn_icerst_in \"ICE_AGRIF_LONG_00000100_restart_ice\" |
---|
[9458] | 591 | |
---|
[10517] | 592 | set_namelist 1_namelist_cfg cn_exp \"ICE_AGRIF_SHORT\" |
---|
[9458] | 593 | set_namelist 1_namelist_cfg nn_it000 301 |
---|
| 594 | set_namelist 1_namelist_cfg nn_itend 600 |
---|
[10575] | 595 | set_namelist 1_namelist_cfg sn_cfctl%l_runstat .true. |
---|
[9458] | 596 | set_namelist 1_namelist_cfg nn_stock 300 |
---|
| 597 | set_namelist 1_namelist_cfg ln_rstart .true. |
---|
| 598 | set_namelist 1_namelist_cfg nn_rstctl 2 |
---|
[10517] | 599 | set_namelist 1_namelist_cfg cn_ocerst_in \"ICE_AGRIF_LONG_00000300_restart\" |
---|
| 600 | set_namelist 1_namelist_ice_cfg cn_icerst_in \"ICE_AGRIF_LONG_00000300_restart_ice\" |
---|
[9458] | 601 | |
---|
| 602 | |
---|
| 603 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 604 | set_xio_using_server iodef.xml true |
---|
| 605 | else |
---|
| 606 | set_xio_using_server iodef.xml false |
---|
| 607 | fi |
---|
| 608 | if [ $NPROC -eq 1 ] ; then |
---|
[10517] | 609 | ln -sf ../LONG/ICE_AGRIF_LONG_00000100_restart.nc . |
---|
| 610 | ln -sf ../LONG/ICE_AGRIF_LONG_00000100_restart_ice.nc . |
---|
| 611 | ln -sf ../LONG/1_ICE_AGRIF_LONG_00000300_restart.nc . |
---|
| 612 | ln -sf ../LONG/1_ICE_AGRIF_LONG_00000300_restart_ice.nc . |
---|
[9458] | 613 | else |
---|
| 614 | for (( i=1; i<=$NPROC; i++)) ; do |
---|
| 615 | L_NPROC=$(( $i - 1 )) |
---|
| 616 | L_NPROC=`printf "%04d\n" ${L_NPROC}` |
---|
[10517] | 617 | ln -sf ../LONG/ICE_AGRIF_LONG_00000100_restart_${L_NPROC}.nc . |
---|
| 618 | ln -sf ../LONG/ICE_AGRIF_LONG_00000100_restart_ice_${L_NPROC}.nc . |
---|
| 619 | ln -sf ../LONG/1_ICE_AGRIF_LONG_00000300_restart_${L_NPROC}.nc . |
---|
| 620 | ln -sf ../LONG/1_ICE_AGRIF_LONG_00000300_restart_ice_${L_NPROC}.nc . |
---|
[9458] | 621 | done |
---|
| 622 | fi |
---|
[9756] | 623 | |
---|
| 624 | cd ${SETTE_DIR} |
---|
[11161] | 625 | . ./prepare_job.sh input_ICE_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} |
---|
[9756] | 626 | cd ${SETTE_DIR} |
---|
| 627 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 628 | |
---|
| 629 | |
---|
[10517] | 630 | ## Reproducibility tests for ICE_AGRIF |
---|
[9756] | 631 | export TEST_NAME="REPRO_2_3" |
---|
| 632 | cd ${MAIN_DIR} |
---|
| 633 | cd ${SETTE_DIR} |
---|
| 634 | . ./param.cfg |
---|
| 635 | . ./all_functions.sh |
---|
| 636 | . ./prepare_exe_dir.sh |
---|
[11161] | 637 | set_valid_dir |
---|
| 638 | clean_valid_dir |
---|
[9756] | 639 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 640 | NPROC=6 |
---|
| 641 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
| 642 | cd ${EXE_DIR} |
---|
[10517] | 643 | set_namelist namelist_cfg cn_exp \"ICE_AGRIF_23\" |
---|
[9756] | 644 | set_namelist namelist_cfg nn_it000 1 |
---|
| 645 | set_namelist namelist_cfg nn_itend 200 |
---|
| 646 | set_namelist namelist_cfg nn_stock 100 |
---|
| 647 | set_namelist namelist_cfg jpni 2 |
---|
| 648 | set_namelist namelist_cfg jpnj 3 |
---|
[10575] | 649 | set_namelist namelist_cfg sn_cfctl%l_runstat .true. |
---|
[9756] | 650 | |
---|
[10517] | 651 | set_namelist 1_namelist_cfg cn_exp \"ICE_AGRIF_23\" |
---|
[9756] | 652 | set_namelist 1_namelist_cfg nn_it000 1 |
---|
| 653 | set_namelist 1_namelist_cfg nn_itend 600 |
---|
| 654 | set_namelist 1_namelist_cfg nn_stock 300 |
---|
| 655 | set_namelist 1_namelist_cfg jpni 2 |
---|
| 656 | set_namelist 1_namelist_cfg jpnj 3 |
---|
[10575] | 657 | set_namelist 1_namelist_cfg sn_cfctl%l_runstat .true. |
---|
[9756] | 658 | |
---|
[9458] | 659 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
[9756] | 660 | set_xio_using_server iodef.xml true |
---|
[9458] | 661 | else |
---|
[9756] | 662 | set_xio_using_server iodef.xml false |
---|
[9458] | 663 | fi |
---|
[9756] | 664 | cd ${SETTE_DIR} |
---|
[11161] | 665 | . ./prepare_job.sh input_ICE_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} |
---|
[9756] | 666 | cd ${SETTE_DIR} |
---|
| 667 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 668 | |
---|
| 669 | cd ${SETTE_DIR} |
---|
| 670 | export TEST_NAME="REPRO_3_2" |
---|
| 671 | . ./prepare_exe_dir.sh |
---|
[11161] | 672 | set_valid_dir |
---|
| 673 | clean_valid_dir |
---|
[9756] | 674 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 675 | NPROC=6 |
---|
| 676 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
| 677 | cd ${EXE_DIR} |
---|
| 678 | |
---|
[10517] | 679 | set_namelist namelist_cfg cn_exp \"ICE_AGRIF_32\" |
---|
[9756] | 680 | set_namelist namelist_cfg nn_it000 1 |
---|
| 681 | set_namelist namelist_cfg nn_itend 200 |
---|
| 682 | set_namelist namelist_cfg nn_stock 100 |
---|
| 683 | set_namelist namelist_cfg jpni 3 |
---|
| 684 | set_namelist namelist_cfg jpnj 2 |
---|
[10575] | 685 | set_namelist namelist_cfg sn_cfctl%l_runstat .true. |
---|
[9756] | 686 | |
---|
[10517] | 687 | set_namelist 1_namelist_cfg cn_exp \"ICE_AGRIF_32\" |
---|
[9756] | 688 | set_namelist 1_namelist_cfg nn_it000 1 |
---|
| 689 | set_namelist 1_namelist_cfg nn_itend 600 |
---|
| 690 | set_namelist 1_namelist_cfg nn_stock 300 |
---|
| 691 | set_namelist 1_namelist_cfg jpni 3 |
---|
| 692 | set_namelist 1_namelist_cfg jpnj 2 |
---|
[10575] | 693 | set_namelist 1_namelist_cfg sn_cfctl%l_runstat .true. |
---|
[9756] | 694 | |
---|
[9458] | 695 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
[9756] | 696 | set_xio_using_server iodef.xml true |
---|
[9458] | 697 | else |
---|
[9756] | 698 | set_xio_using_server iodef.xml false |
---|
[9458] | 699 | fi |
---|
| 700 | cd ${SETTE_DIR} |
---|
[11161] | 701 | . ./prepare_job.sh input_ICE_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} |
---|
[9458] | 702 | cd ${SETTE_DIR} |
---|
| 703 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
[9756] | 704 | |
---|
[9458] | 705 | fi |
---|
| 706 | |
---|
[9518] | 707 | # ------ |
---|
| 708 | # ISOMIP |
---|
| 709 | # ------ |
---|
[11161] | 710 | if [ ${config} == "ISOMIP" ] ; then |
---|
[9518] | 711 | ## Restartability tests |
---|
| 712 | export TEST_NAME="LONG" |
---|
[9708] | 713 | cd ${MAIN_DIR} |
---|
[12569] | 714 | # |
---|
| 715 | # syncronisation if target directory/file exist (not done by makenemo) |
---|
| 716 | . ${SETTE_DIR}/all_functions.sh |
---|
| 717 | # |
---|
| 718 | clean_config ISOMIP ISOMIP_ST 'tests' |
---|
| 719 | # |
---|
| 720 | sync_config ISOMIP ISOMIP_ST 'tests' |
---|
| 721 | # |
---|
[11497] | 722 | . ./makenemo -m ${CMP_NAM} -n ISOMIP_ST -a ISOMIP -j 8 add_key "${ADD_KEYS}" del_key "${DEL_KEYS}" |
---|
[9518] | 723 | cd ${SETTE_DIR} |
---|
| 724 | . ./param.cfg |
---|
| 725 | . ./all_functions.sh |
---|
| 726 | . ./prepare_exe_dir.sh |
---|
[11161] | 727 | set_valid_dir |
---|
| 728 | clean_valid_dir |
---|
[9518] | 729 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 730 | NPROC=15 |
---|
| 731 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
| 732 | cd ${EXE_DIR} |
---|
| 733 | set_namelist namelist_cfg cn_exp \"ISOMIP_LONG\" |
---|
| 734 | set_namelist namelist_cfg nn_it000 1 |
---|
| 735 | set_namelist namelist_cfg nn_itend 96 |
---|
| 736 | set_namelist namelist_cfg nn_stock 48 |
---|
| 737 | set_namelist namelist_cfg jpni 5 |
---|
| 738 | set_namelist namelist_cfg jpnj 3 |
---|
[10575] | 739 | set_namelist namelist_cfg sn_cfctl%l_runstat .true. |
---|
[9518] | 740 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 741 | set_xio_using_server iodef.xml true |
---|
| 742 | else |
---|
| 743 | set_xio_using_server iodef.xml false |
---|
| 744 | fi |
---|
| 745 | cd ${SETTE_DIR} |
---|
[11161] | 746 | . ./prepare_job.sh input_ISOMIP.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} |
---|
[9518] | 747 | |
---|
| 748 | cd ${SETTE_DIR} |
---|
| 749 | export TEST_NAME="SHORT" |
---|
| 750 | . ./prepare_exe_dir.sh |
---|
[11161] | 751 | set_valid_dir |
---|
| 752 | clean_valid_dir |
---|
[9518] | 753 | cd ${EXE_DIR} |
---|
| 754 | set_namelist namelist_cfg cn_exp \"ISOMIP_SHORT\" |
---|
| 755 | set_namelist namelist_cfg nn_it000 49 |
---|
| 756 | set_namelist namelist_cfg nn_itend 96 |
---|
| 757 | set_namelist namelist_cfg nn_stock 48 |
---|
| 758 | set_namelist namelist_cfg ln_rstart .true. |
---|
| 759 | set_namelist namelist_cfg nn_rstctl 2 |
---|
| 760 | set_namelist namelist_cfg jpni 5 |
---|
| 761 | set_namelist namelist_cfg jpnj 3 |
---|
[10575] | 762 | set_namelist namelist_cfg sn_cfctl%l_runstat .true. |
---|
[9518] | 763 | set_namelist namelist_cfg cn_ocerst_in \"ISOMIP_LONG_00000048_restart\" |
---|
| 764 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 765 | set_xio_using_server iodef.xml true |
---|
| 766 | else |
---|
| 767 | set_xio_using_server iodef.xml false |
---|
| 768 | fi |
---|
| 769 | for (( i=1; i<=$NPROC; i++)) ; do |
---|
| 770 | L_NPROC=$(( $i - 1 )) |
---|
| 771 | L_NPROC=`printf "%04d\n" ${L_NPROC}` |
---|
| 772 | ln -sf ../LONG/ISOMIP_LONG_00000048_restart_${L_NPROC}.nc . |
---|
| 773 | done |
---|
[9756] | 774 | |
---|
[9518] | 775 | cd ${SETTE_DIR} |
---|
[11161] | 776 | . ./prepare_job.sh input_ISOMIP.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} |
---|
[9518] | 777 | cd ${SETTE_DIR} |
---|
| 778 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 779 | |
---|
| 780 | ## Reproducibility tests |
---|
| 781 | export TEST_NAME="REPRO_7_3" |
---|
[9708] | 782 | cd ${MAIN_DIR} |
---|
[9518] | 783 | cd ${SETTE_DIR} |
---|
| 784 | . ./param.cfg |
---|
| 785 | . ./all_functions.sh |
---|
| 786 | . ./prepare_exe_dir.sh |
---|
[11161] | 787 | set_valid_dir |
---|
| 788 | clean_valid_dir |
---|
[9518] | 789 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 790 | NPROC=21 |
---|
| 791 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
| 792 | cd ${EXE_DIR} |
---|
| 793 | set_namelist namelist_cfg cn_exp \"ISOMIP_73\" |
---|
| 794 | set_namelist namelist_cfg nn_it000 1 |
---|
| 795 | set_namelist namelist_cfg nn_itend 48 |
---|
| 796 | set_namelist namelist_cfg jpni 7 |
---|
| 797 | set_namelist namelist_cfg jpnj 3 |
---|
[10575] | 798 | set_namelist namelist_cfg sn_cfctl%l_runstat .true. |
---|
[9518] | 799 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 800 | set_xio_using_server iodef.xml true |
---|
| 801 | else |
---|
| 802 | set_xio_using_server iodef.xml false |
---|
| 803 | fi |
---|
| 804 | cd ${SETTE_DIR} |
---|
[11161] | 805 | . ./prepare_job.sh input_ISOMIP.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} |
---|
[9518] | 806 | cd ${SETTE_DIR} |
---|
| 807 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 808 | |
---|
| 809 | cd ${SETTE_DIR} |
---|
| 810 | export TEST_NAME="REPRO_8_4" |
---|
| 811 | . ./prepare_exe_dir.sh |
---|
[11161] | 812 | set_valid_dir |
---|
| 813 | clean_valid_dir |
---|
[9518] | 814 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 815 | NPROC=32 |
---|
| 816 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
| 817 | cd ${EXE_DIR} |
---|
| 818 | set_namelist namelist_cfg cn_exp \"ISOMIP_84\" |
---|
| 819 | set_namelist namelist_cfg nn_it000 1 |
---|
| 820 | set_namelist namelist_cfg nn_itend 48 |
---|
| 821 | set_namelist namelist_cfg jpni 8 |
---|
| 822 | set_namelist namelist_cfg jpnj 4 |
---|
[10575] | 823 | set_namelist namelist_cfg sn_cfctl%l_runstat .true. |
---|
[9518] | 824 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 825 | set_xio_using_server iodef.xml true |
---|
| 826 | else |
---|
| 827 | set_xio_using_server iodef.xml false |
---|
| 828 | fi |
---|
| 829 | cd ${SETTE_DIR} |
---|
[11161] | 830 | . ./prepare_job.sh input_ISOMIP.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} |
---|
[9518] | 831 | cd ${SETTE_DIR} |
---|
| 832 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 833 | |
---|
| 834 | fi |
---|
| 835 | |
---|
[9458] | 836 | #---- |
---|
[9268] | 837 | done |
---|