[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} |
---|
[12289] | 166 | # |
---|
| 167 | . ${SETTE_DIR}/all_functions.sh |
---|
| 168 | # |
---|
[12422] | 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 ln_ctl .false. |
---|
| 189 | set_namelist namelist_cfg sn_cfctl%l_config .true. |
---|
| 190 | set_namelist namelist_cfg sn_cfctl%l_runstat .true. |
---|
[9268] | 191 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 192 | set_xio_using_server iodef.xml true |
---|
| 193 | else |
---|
| 194 | set_xio_using_server iodef.xml false |
---|
| 195 | fi |
---|
| 196 | cd ${SETTE_DIR} |
---|
[11161] | 197 | . ./prepare_job.sh input_EMPTY.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} |
---|
[9268] | 198 | |
---|
| 199 | cd ${SETTE_DIR} |
---|
| 200 | export TEST_NAME="SHORT" |
---|
| 201 | . ./prepare_exe_dir.sh |
---|
[11161] | 202 | set_valid_dir |
---|
| 203 | clean_valid_dir |
---|
[9268] | 204 | cd ${EXE_DIR} |
---|
| 205 | set_namelist namelist_cfg cn_exp \"OVF_SHORT\" |
---|
| 206 | set_namelist namelist_cfg nn_it000 61 |
---|
| 207 | set_namelist namelist_cfg nn_itend 120 |
---|
| 208 | set_namelist namelist_cfg nn_stock 60 |
---|
[10575] | 209 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 210 | set_namelist namelist_cfg sn_cfctl%l_config .true. |
---|
| 211 | set_namelist namelist_cfg sn_cfctl%l_runstat .true. |
---|
[9268] | 212 | set_namelist namelist_cfg ln_rstart .true. |
---|
| 213 | set_namelist namelist_cfg nn_rstctl 2 |
---|
| 214 | set_namelist namelist_cfg cn_ocerst_in \"OVF_LONG_00000060_restart\" |
---|
| 215 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 216 | set_xio_using_server iodef.xml true |
---|
| 217 | else |
---|
| 218 | set_xio_using_server iodef.xml false |
---|
| 219 | fi |
---|
| 220 | ln -sf ../LONG/OVF_LONG_00000060_restart.nc . |
---|
[9756] | 221 | |
---|
[9268] | 222 | cd ${SETTE_DIR} |
---|
[11161] | 223 | . ./prepare_job.sh input_EMPTY.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} |
---|
[9268] | 224 | cd ${SETTE_DIR} |
---|
| 225 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 226 | |
---|
| 227 | |
---|
| 228 | ## Test for all advection, vert. coordinates, vector form, flux form: test runability and complete all time steps |
---|
| 229 | ## Needed namelist-xxxx for every type of run tested |
---|
| 230 | cd ${CONFIG_DIR}/${NEW_CONF}/EXP00 |
---|
| 231 | |
---|
| 232 | for file in $(echo `ls namelist_*_cfg `) ; do |
---|
[9963] | 233 | TEST_NAME=`echo $file | sed -e "s/namelist_//" | sed -e "s/_cfg//"` |
---|
[9268] | 234 | TEST_NAME="EXP-${TEST_NAME}" |
---|
[9963] | 235 | if [ ! -d ${CONFIG_DIR}/${NEW_CONF}/${TEST_NAME} ] ; then mkdir ${CONFIG_DIR}/${NEW_CONF}/${TEST_NAME} ; fi |
---|
[9268] | 236 | export TEST_NAME="${TEST_NAME}" |
---|
| 237 | ## |
---|
| 238 | cd ${SETTE_DIR} |
---|
| 239 | . ./param.cfg |
---|
| 240 | . ./all_functions.sh |
---|
| 241 | . ./prepare_exe_dir.sh |
---|
[11161] | 242 | set_valid_dir |
---|
| 243 | clean_valid_dir |
---|
[9268] | 244 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 245 | NPROC=1 |
---|
| 246 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
| 247 | cd ${EXE_DIR} |
---|
[9963] | 248 | rm namelist_*_*_*_* |
---|
| 249 | cp -pL ${CONFIG_DIR}/${NEW_CONF}/EXP00/$file namelist_cfg |
---|
[9268] | 250 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 251 | set_xio_using_server iodef.xml true |
---|
| 252 | else |
---|
| 253 | set_xio_using_server iodef.xml false |
---|
| 254 | fi |
---|
| 255 | cd ${SETTE_DIR} |
---|
[11161] | 256 | . ./prepare_job.sh input_EMPTY.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} |
---|
[9268] | 257 | cd ${SETTE_DIR} |
---|
| 258 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 259 | ## |
---|
| 260 | done |
---|
| 261 | fi |
---|
| 262 | |
---|
[9524] | 263 | # -------------- |
---|
| 264 | # LOCK_EXCHANGE |
---|
| 265 | # -------------- |
---|
[11161] | 266 | if [ ${config} == "LOCK_EXCHANGE" ] ; then |
---|
[9268] | 267 | ## Restartability tests for LOCK_EXCHANGE |
---|
| 268 | export TEST_NAME="LONG" |
---|
[9708] | 269 | cd ${MAIN_DIR} |
---|
[12289] | 270 | # |
---|
| 271 | # syncronisation if target directory/file exist (not done by makenemo) |
---|
| 272 | . ${SETTE_DIR}/all_functions.sh |
---|
| 273 | # |
---|
[12422] | 274 | clean_config LOCK_EXCHANGE LOCK_EXCHANGE_ST 'tests' |
---|
| 275 | # |
---|
| 276 | sync_config LOCK_EXCHANGE LOCK_EXCHANGE_ST 'tests' |
---|
| 277 | # |
---|
[11497] | 278 | . ./makenemo -m ${CMP_NAM} -n LOCK_EXCHANGE_ST -a LOCK_EXCHANGE -j 8 add_key "${ADD_KEYS}" del_key "${DEL_KEYS}" |
---|
[9268] | 279 | cd ${SETTE_DIR} |
---|
| 280 | . ./param.cfg |
---|
| 281 | . ./all_functions.sh |
---|
| 282 | . ./prepare_exe_dir.sh |
---|
[11161] | 283 | set_valid_dir |
---|
| 284 | clean_valid_dir |
---|
[9268] | 285 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 286 | NPROC=1 |
---|
| 287 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
| 288 | cd ${EXE_DIR} |
---|
| 289 | set_namelist namelist_cfg cn_exp \"LOCK_LONG\" |
---|
| 290 | set_namelist namelist_cfg nn_it000 1 |
---|
| 291 | set_namelist namelist_cfg nn_stock 60 |
---|
[10575] | 292 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 293 | set_namelist namelist_cfg sn_cfctl%l_config .true. |
---|
| 294 | set_namelist namelist_cfg sn_cfctl%l_runstat .true. |
---|
[9268] | 295 | set_namelist namelist_cfg nn_itend 120 |
---|
| 296 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 297 | set_xio_using_server iodef.xml true |
---|
| 298 | else |
---|
| 299 | set_xio_using_server iodef.xml false |
---|
| 300 | fi |
---|
| 301 | cd ${SETTE_DIR} |
---|
[11161] | 302 | . ./prepare_job.sh input_EMPTY.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} |
---|
[9268] | 303 | |
---|
| 304 | cd ${SETTE_DIR} |
---|
| 305 | export TEST_NAME="SHORT" |
---|
| 306 | . ./prepare_exe_dir.sh |
---|
[11161] | 307 | set_valid_dir |
---|
| 308 | clean_valid_dir |
---|
[9268] | 309 | cd ${EXE_DIR} |
---|
| 310 | set_namelist namelist_cfg cn_exp \"LOCK_SHORT\" |
---|
| 311 | set_namelist namelist_cfg nn_it000 61 |
---|
| 312 | set_namelist namelist_cfg nn_itend 120 |
---|
| 313 | set_namelist namelist_cfg nn_stock 60 |
---|
[10575] | 314 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 315 | set_namelist namelist_cfg sn_cfctl%l_config .true. |
---|
| 316 | set_namelist namelist_cfg sn_cfctl%l_runstat .true. |
---|
[9268] | 317 | set_namelist namelist_cfg ln_rstart .true. |
---|
| 318 | set_namelist namelist_cfg nn_rstctl 2 |
---|
| 319 | set_namelist namelist_cfg cn_ocerst_in \"LOCK_LONG_00000060_restart\" |
---|
| 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 | ln -sf ../LONG/LOCK_LONG_00000060_restart.nc . |
---|
[9756] | 326 | |
---|
[9268] | 327 | cd ${SETTE_DIR} |
---|
[11161] | 328 | . ./prepare_job.sh input_EMPTY.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} |
---|
[9268] | 329 | cd ${SETTE_DIR} |
---|
| 330 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 331 | |
---|
| 332 | ## Test for all advection, vector form, flux form: test runability and complete all time steps |
---|
| 333 | ## Needed namelist-xxxx for every type of run tested |
---|
| 334 | cd ${CONFIG_DIR}/${NEW_CONF}/EXP00 |
---|
| 335 | |
---|
| 336 | for file in $(echo `ls namelist_*_cfg `) ; do |
---|
[10242] | 337 | echo '' |
---|
| 338 | TEST_NAME=`echo $file | sed -e "s/namelist_//" | sed -e "s/_cfg//"` |
---|
[9268] | 339 | TEST_NAME="EXP-${TEST_NAME}" |
---|
| 340 | `mkdir ${CONFIG_DIR}/${NEW_CONF}/${TEST_NAME}` |
---|
| 341 | export TEST_NAME="${TEST_NAME}" |
---|
[10242] | 342 | ## |
---|
[9268] | 343 | cd ${SETTE_DIR} |
---|
| 344 | . ./param.cfg |
---|
| 345 | . ./all_functions.sh |
---|
| 346 | . ./prepare_exe_dir.sh |
---|
[11161] | 347 | set_valid_dir |
---|
| 348 | clean_valid_dir |
---|
[9268] | 349 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 350 | NPROC=1 |
---|
| 351 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
| 352 | cd ${EXE_DIR} |
---|
[10242] | 353 | rm namelist_*_*_*_* |
---|
| 354 | cp -pL ${CONFIG_DIR}/${NEW_CONF}/EXP00/$file namelist_cfg |
---|
[9268] | 355 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 356 | set_xio_using_server iodef.xml true |
---|
| 357 | else |
---|
| 358 | set_xio_using_server iodef.xml false |
---|
| 359 | fi |
---|
| 360 | cd ${SETTE_DIR} |
---|
[11161] | 361 | . ./prepare_job.sh input_EMPTY.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} |
---|
[9268] | 362 | cd ${SETTE_DIR} |
---|
| 363 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
[10242] | 364 | ## |
---|
| 365 | echo '' |
---|
[9268] | 366 | done |
---|
| 367 | fi |
---|
| 368 | |
---|
[9524] | 369 | # --------- |
---|
| 370 | # VORTEX |
---|
| 371 | # --------- |
---|
[11161] | 372 | if [ ${config} == "VORTEX" ] ; then |
---|
[9756] | 373 | ## Restartability tests for VORTEX |
---|
[9268] | 374 | export TEST_NAME="LONG" |
---|
[9708] | 375 | cd ${MAIN_DIR} |
---|
[12289] | 376 | # |
---|
| 377 | # syncronisation if target directory/file exist (not done by makenemo) |
---|
| 378 | . ${SETTE_DIR}/all_functions.sh |
---|
| 379 | # |
---|
[12422] | 380 | clean_config VORTEX VORTEX_ST 'tests' |
---|
| 381 | # |
---|
| 382 | sync_config VORTEX VORTEX_ST 'tests' |
---|
| 383 | # |
---|
[11497] | 384 | . ./makenemo -m ${CMP_NAM} -n VORTEX_ST -a VORTEX -j 8 add_key "${ADD_KEYS}" del_key "${DEL_KEYS}" |
---|
[9268] | 385 | cd ${SETTE_DIR} |
---|
| 386 | . ./param.cfg |
---|
| 387 | . ./all_functions.sh |
---|
| 388 | . ./prepare_exe_dir.sh |
---|
[11161] | 389 | set_valid_dir |
---|
| 390 | clean_valid_dir |
---|
[9268] | 391 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
[9756] | 392 | NPROC=6 |
---|
| 393 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
[9268] | 394 | cd ${EXE_DIR} |
---|
| 395 | set_namelist namelist_cfg cn_exp \"VORTEX_LONG\" |
---|
| 396 | set_namelist namelist_cfg nn_it000 1 |
---|
[9756] | 397 | set_namelist namelist_cfg nn_itend 240 |
---|
| 398 | set_namelist namelist_cfg nn_stock 120 |
---|
[10575] | 399 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 400 | set_namelist namelist_cfg sn_cfctl%l_config .true. |
---|
| 401 | set_namelist namelist_cfg sn_cfctl%l_runstat .true. |
---|
[10433] | 402 | |
---|
[9756] | 403 | set_namelist 1_namelist_cfg cn_exp \"VORTEX_LONG\" |
---|
| 404 | set_namelist 1_namelist_cfg nn_it000 1 |
---|
| 405 | set_namelist 1_namelist_cfg nn_itend 720 |
---|
| 406 | set_namelist 1_namelist_cfg nn_stock 360 |
---|
[10575] | 407 | set_namelist 1_namelist_cfg ln_ctl .false. |
---|
| 408 | set_namelist 1_namelist_cfg sn_cfctl%l_config .true. |
---|
| 409 | set_namelist 1_namelist_cfg sn_cfctl%l_runstat .true. |
---|
[10433] | 410 | |
---|
[9268] | 411 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
[9756] | 412 | set_xio_using_server iodef.xml true |
---|
[9268] | 413 | else |
---|
[9756] | 414 | set_xio_using_server iodef.xml false |
---|
[9268] | 415 | fi |
---|
| 416 | cd ${SETTE_DIR} |
---|
[11161] | 417 | . ./prepare_job.sh input_EMPTY.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} |
---|
[9756] | 418 | |
---|
[9268] | 419 | cd ${SETTE_DIR} |
---|
| 420 | export TEST_NAME="SHORT" |
---|
| 421 | . ./prepare_exe_dir.sh |
---|
[11161] | 422 | set_valid_dir |
---|
| 423 | clean_valid_dir |
---|
[9268] | 424 | cd ${EXE_DIR} |
---|
| 425 | set_namelist namelist_cfg cn_exp \"VORTEX_SHORT\" |
---|
[9756] | 426 | set_namelist namelist_cfg nn_it000 121 |
---|
| 427 | set_namelist namelist_cfg nn_itend 240 |
---|
| 428 | set_namelist namelist_cfg nn_stock 120 |
---|
[10575] | 429 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 430 | set_namelist namelist_cfg sn_cfctl%l_config .true. |
---|
| 431 | set_namelist namelist_cfg sn_cfctl%l_runstat .true. |
---|
[9268] | 432 | set_namelist namelist_cfg ln_rstart .true. |
---|
| 433 | set_namelist namelist_cfg nn_rstctl 2 |
---|
[9756] | 434 | set_namelist namelist_cfg cn_ocerst_in \"VORTEX_LONG_00000120_restart\" |
---|
| 435 | |
---|
| 436 | set_namelist 1_namelist_cfg cn_exp \"VORTEX_SHORT\" |
---|
| 437 | set_namelist 1_namelist_cfg nn_it000 361 |
---|
| 438 | set_namelist 1_namelist_cfg nn_itend 720 |
---|
[10575] | 439 | set_namelist 1_namelist_cfg ln_ctl .false. |
---|
| 440 | set_namelist 1_namelist_cfg sn_cfctl%l_config .true. |
---|
| 441 | set_namelist 1_namelist_cfg sn_cfctl%l_runstat .true. |
---|
[9756] | 442 | set_namelist 1_namelist_cfg nn_stock 360 |
---|
| 443 | set_namelist 1_namelist_cfg ln_rstart .true. |
---|
| 444 | set_namelist 1_namelist_cfg nn_rstctl 2 |
---|
| 445 | set_namelist 1_namelist_cfg cn_ocerst_in \"VORTEX_LONG_00000360_restart\" |
---|
| 446 | |
---|
[9268] | 447 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
[9756] | 448 | set_xio_using_server iodef.xml true |
---|
| 449 | else |
---|
| 450 | set_xio_using_server iodef.xml false |
---|
| 451 | fi |
---|
| 452 | if [ $NPROC -eq 1 ] ; then |
---|
| 453 | ln -sf ../LONG/VORTEX_LONG_00000120_restart.nc . |
---|
| 454 | ln -sf ../LONG/1_VORTEX_LONG_00000360_restart.nc . |
---|
| 455 | else |
---|
| 456 | for (( i=1; i<=$NPROC; i++)) ; do |
---|
| 457 | L_NPROC=$(( $i - 1 )) |
---|
| 458 | L_NPROC=`printf "%04d\n" ${L_NPROC}` |
---|
| 459 | ln -sf ../LONG/VORTEX_LONG_00000120_restart_${L_NPROC}.nc . |
---|
| 460 | ln -sf ../LONG/1_VORTEX_LONG_00000360_restart_${L_NPROC}.nc . |
---|
| 461 | done |
---|
| 462 | fi |
---|
| 463 | cd ${SETTE_DIR} |
---|
[11161] | 464 | . ./prepare_job.sh input_EMPTY.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} |
---|
[9756] | 465 | cd ${SETTE_DIR} |
---|
| 466 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 467 | |
---|
| 468 | ## Reproducibility tests for VORTEX |
---|
| 469 | export TEST_NAME="REPRO_2_3" |
---|
| 470 | cd ${MAIN_DIR} |
---|
| 471 | cd ${SETTE_DIR} |
---|
| 472 | . ./param.cfg |
---|
| 473 | . ./all_functions.sh |
---|
| 474 | . ./prepare_exe_dir.sh |
---|
[11161] | 475 | set_valid_dir |
---|
| 476 | clean_valid_dir |
---|
[9756] | 477 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 478 | NPROC=6 |
---|
| 479 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
| 480 | cd ${EXE_DIR} |
---|
| 481 | set_namelist namelist_cfg cn_exp \"VORTEX_23\" |
---|
| 482 | set_namelist namelist_cfg nn_it000 1 |
---|
| 483 | set_namelist namelist_cfg nn_itend 240 |
---|
| 484 | set_namelist namelist_cfg nn_stock 120 |
---|
| 485 | set_namelist namelist_cfg jpni 2 |
---|
| 486 | set_namelist namelist_cfg jpnj 3 |
---|
[10575] | 487 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 488 | set_namelist namelist_cfg sn_cfctl%l_config .true. |
---|
| 489 | set_namelist namelist_cfg sn_cfctl%l_runstat .true. |
---|
[10427] | 490 | |
---|
[9756] | 491 | set_namelist 1_namelist_cfg cn_exp \"VORTEX_23\" |
---|
| 492 | set_namelist 1_namelist_cfg nn_it000 1 |
---|
| 493 | set_namelist 1_namelist_cfg nn_itend 720 |
---|
| 494 | set_namelist 1_namelist_cfg nn_stock 360 |
---|
| 495 | set_namelist 1_namelist_cfg jpni 2 |
---|
| 496 | set_namelist 1_namelist_cfg jpnj 3 |
---|
[10575] | 497 | set_namelist 1_namelist_cfg ln_ctl .false. |
---|
| 498 | set_namelist 1_namelist_cfg sn_cfctl%l_config .true. |
---|
| 499 | set_namelist 1_namelist_cfg sn_cfctl%l_runstat .true. |
---|
[9756] | 500 | |
---|
| 501 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
[9268] | 502 | set_xio_using_server iodef.xml true |
---|
| 503 | else |
---|
| 504 | set_xio_using_server iodef.xml false |
---|
| 505 | fi |
---|
[9756] | 506 | cd ${SETTE_DIR} |
---|
[11161] | 507 | . ./prepare_job.sh input_EMPTY.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} |
---|
[9756] | 508 | cd ${SETTE_DIR} |
---|
| 509 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 510 | |
---|
| 511 | cd ${SETTE_DIR} |
---|
| 512 | export TEST_NAME="REPRO_3_2" |
---|
| 513 | . ./prepare_exe_dir.sh |
---|
[11161] | 514 | set_valid_dir |
---|
| 515 | clean_valid_dir |
---|
[9756] | 516 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 517 | NPROC=6 |
---|
| 518 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
| 519 | cd ${EXE_DIR} |
---|
| 520 | |
---|
| 521 | set_namelist namelist_cfg cn_exp \"VORTEX_32\" |
---|
| 522 | set_namelist namelist_cfg nn_it000 1 |
---|
| 523 | set_namelist namelist_cfg nn_itend 240 |
---|
| 524 | set_namelist namelist_cfg nn_stock 120 |
---|
| 525 | set_namelist namelist_cfg jpni 3 |
---|
| 526 | set_namelist namelist_cfg jpnj 2 |
---|
[10575] | 527 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 528 | set_namelist namelist_cfg sn_cfctl%l_config .true. |
---|
| 529 | set_namelist namelist_cfg sn_cfctl%l_runstat .true. |
---|
[10427] | 530 | |
---|
[9756] | 531 | set_namelist 1_namelist_cfg cn_exp \"VORTEX_32\" |
---|
| 532 | set_namelist 1_namelist_cfg nn_it000 1 |
---|
| 533 | set_namelist 1_namelist_cfg nn_itend 720 |
---|
| 534 | set_namelist 1_namelist_cfg nn_stock 360 |
---|
| 535 | set_namelist 1_namelist_cfg jpni 3 |
---|
| 536 | set_namelist 1_namelist_cfg jpnj 2 |
---|
[10575] | 537 | set_namelist 1_namelist_cfg ln_ctl .false. |
---|
| 538 | set_namelist 1_namelist_cfg sn_cfctl%l_config .true. |
---|
| 539 | set_namelist 1_namelist_cfg sn_cfctl%l_runstat .true. |
---|
[10427] | 540 | |
---|
[9268] | 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} |
---|
[11161] | 547 | . ./prepare_job.sh input_EMPTY.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} |
---|
[9268] | 548 | cd ${SETTE_DIR} |
---|
| 549 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 550 | |
---|
| 551 | fi |
---|
| 552 | |
---|
[9458] | 553 | |
---|
[9524] | 554 | # --------- |
---|
[10517] | 555 | # ICE_AGRIF |
---|
[9524] | 556 | # --------- |
---|
[11161] | 557 | if [ ${config} == "ICE_AGRIF" ] ; then |
---|
[10517] | 558 | ## Restartability tests for ICE_AGRIF |
---|
[9458] | 559 | export TEST_NAME="LONG" |
---|
[9708] | 560 | cd ${MAIN_DIR} |
---|
[12289] | 561 | # |
---|
| 562 | # syncronisation if target directory/file exist (not done by makenemo) |
---|
| 563 | . ${SETTE_DIR}/all_functions.sh |
---|
| 564 | # |
---|
[12422] | 565 | clean_config ICE_AGRIF ICE_AGRIF_ST 'tests' |
---|
| 566 | # |
---|
| 567 | sync_config ICE_AGRIF ICE_AGRIF_ST 'tests' |
---|
| 568 | # |
---|
[11497] | 569 | . ./makenemo -m ${CMP_NAM} -n ICE_AGRIF_ST -a ICE_AGRIF -j 8 add_key "${ADD_KEYS}" del_key "${DEL_KEYS}" |
---|
[9458] | 570 | cd ${SETTE_DIR} |
---|
| 571 | . ./param.cfg |
---|
| 572 | . ./all_functions.sh |
---|
| 573 | . ./prepare_exe_dir.sh |
---|
[11161] | 574 | set_valid_dir |
---|
| 575 | clean_valid_dir |
---|
[9458] | 576 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
[9756] | 577 | NPROC=6 |
---|
[9458] | 578 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
| 579 | cd ${EXE_DIR} |
---|
[10517] | 580 | set_namelist namelist_cfg cn_exp \"ICE_AGRIF_LONG\" |
---|
[9458] | 581 | set_namelist namelist_cfg nn_it000 1 |
---|
| 582 | set_namelist namelist_cfg nn_itend 200 |
---|
[10575] | 583 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 584 | set_namelist namelist_cfg sn_cfctl%l_config .true. |
---|
| 585 | set_namelist namelist_cfg sn_cfctl%l_runstat .true. |
---|
[9458] | 586 | set_namelist namelist_cfg nn_stock 100 |
---|
| 587 | |
---|
[10517] | 588 | set_namelist 1_namelist_cfg cn_exp \"ICE_AGRIF_LONG\" |
---|
[9458] | 589 | set_namelist 1_namelist_cfg nn_it000 1 |
---|
| 590 | set_namelist 1_namelist_cfg nn_itend 600 |
---|
[10575] | 591 | set_namelist 1_namelist_cfg ln_ctl .false. |
---|
| 592 | set_namelist 1_namelist_cfg sn_cfctl%l_config .true. |
---|
| 593 | set_namelist 1_namelist_cfg sn_cfctl%l_runstat .true. |
---|
[9458] | 594 | set_namelist 1_namelist_cfg nn_stock 300 |
---|
| 595 | |
---|
| 596 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 597 | set_xio_using_server iodef.xml true |
---|
| 598 | else |
---|
| 599 | set_xio_using_server iodef.xml false |
---|
| 600 | fi |
---|
| 601 | cd ${SETTE_DIR} |
---|
[11161] | 602 | . ./prepare_job.sh input_ICE_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} |
---|
[9458] | 603 | |
---|
| 604 | cd ${SETTE_DIR} |
---|
| 605 | export TEST_NAME="SHORT" |
---|
| 606 | . ./prepare_exe_dir.sh |
---|
[11161] | 607 | set_valid_dir |
---|
| 608 | clean_valid_dir |
---|
[9458] | 609 | cd ${EXE_DIR} |
---|
[10517] | 610 | set_namelist namelist_cfg cn_exp \"ICE_AGRIF_SHORT\" |
---|
[9458] | 611 | set_namelist namelist_cfg nn_it000 101 |
---|
| 612 | set_namelist namelist_cfg nn_itend 200 |
---|
[10575] | 613 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 614 | set_namelist namelist_cfg sn_cfctl%l_config .true. |
---|
| 615 | set_namelist namelist_cfg sn_cfctl%l_runstat .true. |
---|
[9458] | 616 | set_namelist namelist_cfg nn_stock 100 |
---|
| 617 | set_namelist namelist_cfg ln_rstart .true. |
---|
| 618 | set_namelist namelist_cfg nn_rstctl 2 |
---|
[10517] | 619 | set_namelist namelist_cfg cn_ocerst_in \"ICE_AGRIF_LONG_00000100_restart\" |
---|
| 620 | set_namelist namelist_ice_cfg cn_icerst_in \"ICE_AGRIF_LONG_00000100_restart_ice\" |
---|
[9458] | 621 | |
---|
[10517] | 622 | set_namelist 1_namelist_cfg cn_exp \"ICE_AGRIF_SHORT\" |
---|
[9458] | 623 | set_namelist 1_namelist_cfg nn_it000 301 |
---|
| 624 | set_namelist 1_namelist_cfg nn_itend 600 |
---|
[10575] | 625 | set_namelist 1_namelist_cfg ln_ctl .false. |
---|
| 626 | set_namelist 1_namelist_cfg sn_cfctl%l_config .true. |
---|
| 627 | set_namelist 1_namelist_cfg sn_cfctl%l_runstat .true. |
---|
[9458] | 628 | set_namelist 1_namelist_cfg nn_stock 300 |
---|
| 629 | set_namelist 1_namelist_cfg ln_rstart .true. |
---|
| 630 | set_namelist 1_namelist_cfg nn_rstctl 2 |
---|
[10517] | 631 | set_namelist 1_namelist_cfg cn_ocerst_in \"ICE_AGRIF_LONG_00000300_restart\" |
---|
| 632 | set_namelist 1_namelist_ice_cfg cn_icerst_in \"ICE_AGRIF_LONG_00000300_restart_ice\" |
---|
[9458] | 633 | |
---|
| 634 | |
---|
| 635 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 636 | set_xio_using_server iodef.xml true |
---|
| 637 | else |
---|
| 638 | set_xio_using_server iodef.xml false |
---|
| 639 | fi |
---|
| 640 | if [ $NPROC -eq 1 ] ; then |
---|
[10517] | 641 | ln -sf ../LONG/ICE_AGRIF_LONG_00000100_restart.nc . |
---|
| 642 | ln -sf ../LONG/ICE_AGRIF_LONG_00000100_restart_ice.nc . |
---|
| 643 | ln -sf ../LONG/1_ICE_AGRIF_LONG_00000300_restart.nc . |
---|
| 644 | ln -sf ../LONG/1_ICE_AGRIF_LONG_00000300_restart_ice.nc . |
---|
[9458] | 645 | else |
---|
| 646 | for (( i=1; i<=$NPROC; i++)) ; do |
---|
| 647 | L_NPROC=$(( $i - 1 )) |
---|
| 648 | L_NPROC=`printf "%04d\n" ${L_NPROC}` |
---|
[10517] | 649 | ln -sf ../LONG/ICE_AGRIF_LONG_00000100_restart_${L_NPROC}.nc . |
---|
| 650 | ln -sf ../LONG/ICE_AGRIF_LONG_00000100_restart_ice_${L_NPROC}.nc . |
---|
| 651 | ln -sf ../LONG/1_ICE_AGRIF_LONG_00000300_restart_${L_NPROC}.nc . |
---|
| 652 | ln -sf ../LONG/1_ICE_AGRIF_LONG_00000300_restart_ice_${L_NPROC}.nc . |
---|
[9458] | 653 | done |
---|
| 654 | fi |
---|
[9756] | 655 | |
---|
| 656 | cd ${SETTE_DIR} |
---|
[11161] | 657 | . ./prepare_job.sh input_ICE_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} |
---|
[9756] | 658 | cd ${SETTE_DIR} |
---|
| 659 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 660 | |
---|
| 661 | |
---|
[10517] | 662 | ## Reproducibility tests for ICE_AGRIF |
---|
[9756] | 663 | export TEST_NAME="REPRO_2_3" |
---|
| 664 | cd ${MAIN_DIR} |
---|
| 665 | cd ${SETTE_DIR} |
---|
| 666 | . ./param.cfg |
---|
| 667 | . ./all_functions.sh |
---|
| 668 | . ./prepare_exe_dir.sh |
---|
[11161] | 669 | set_valid_dir |
---|
| 670 | clean_valid_dir |
---|
[9756] | 671 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 672 | NPROC=6 |
---|
| 673 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
| 674 | cd ${EXE_DIR} |
---|
[10517] | 675 | set_namelist namelist_cfg cn_exp \"ICE_AGRIF_23\" |
---|
[9756] | 676 | set_namelist namelist_cfg nn_it000 1 |
---|
| 677 | set_namelist namelist_cfg nn_itend 200 |
---|
| 678 | set_namelist namelist_cfg nn_stock 100 |
---|
| 679 | set_namelist namelist_cfg jpni 2 |
---|
| 680 | set_namelist namelist_cfg jpnj 3 |
---|
[10575] | 681 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 682 | set_namelist namelist_cfg sn_cfctl%l_config .true. |
---|
| 683 | set_namelist namelist_cfg sn_cfctl%l_runstat .true. |
---|
[9756] | 684 | |
---|
[10517] | 685 | set_namelist 1_namelist_cfg cn_exp \"ICE_AGRIF_23\" |
---|
[9756] | 686 | set_namelist 1_namelist_cfg nn_it000 1 |
---|
| 687 | set_namelist 1_namelist_cfg nn_itend 600 |
---|
| 688 | set_namelist 1_namelist_cfg nn_stock 300 |
---|
| 689 | set_namelist 1_namelist_cfg jpni 2 |
---|
| 690 | set_namelist 1_namelist_cfg jpnj 3 |
---|
[10575] | 691 | set_namelist 1_namelist_cfg ln_ctl .false. |
---|
| 692 | set_namelist 1_namelist_cfg sn_cfctl%l_config .true. |
---|
| 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 |
---|
[9756] | 700 | cd ${SETTE_DIR} |
---|
[11161] | 701 | . ./prepare_job.sh input_ICE_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} |
---|
[9756] | 702 | cd ${SETTE_DIR} |
---|
| 703 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 704 | |
---|
| 705 | cd ${SETTE_DIR} |
---|
| 706 | export TEST_NAME="REPRO_3_2" |
---|
| 707 | . ./prepare_exe_dir.sh |
---|
[11161] | 708 | set_valid_dir |
---|
| 709 | clean_valid_dir |
---|
[9756] | 710 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 711 | NPROC=6 |
---|
| 712 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
| 713 | cd ${EXE_DIR} |
---|
| 714 | |
---|
[10517] | 715 | set_namelist namelist_cfg cn_exp \"ICE_AGRIF_32\" |
---|
[9756] | 716 | set_namelist namelist_cfg nn_it000 1 |
---|
| 717 | set_namelist namelist_cfg nn_itend 200 |
---|
| 718 | set_namelist namelist_cfg nn_stock 100 |
---|
| 719 | set_namelist namelist_cfg jpni 3 |
---|
| 720 | set_namelist namelist_cfg jpnj 2 |
---|
[10575] | 721 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 722 | set_namelist namelist_cfg sn_cfctl%l_config .true. |
---|
| 723 | set_namelist namelist_cfg sn_cfctl%l_runstat .true. |
---|
[9756] | 724 | |
---|
[10517] | 725 | set_namelist 1_namelist_cfg cn_exp \"ICE_AGRIF_32\" |
---|
[9756] | 726 | set_namelist 1_namelist_cfg nn_it000 1 |
---|
| 727 | set_namelist 1_namelist_cfg nn_itend 600 |
---|
| 728 | set_namelist 1_namelist_cfg nn_stock 300 |
---|
| 729 | set_namelist 1_namelist_cfg jpni 3 |
---|
| 730 | set_namelist 1_namelist_cfg jpnj 2 |
---|
[10575] | 731 | set_namelist 1_namelist_cfg ln_ctl .false. |
---|
| 732 | set_namelist 1_namelist_cfg sn_cfctl%l_config .true. |
---|
| 733 | set_namelist 1_namelist_cfg sn_cfctl%l_runstat .true. |
---|
[9756] | 734 | |
---|
[9458] | 735 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
[9756] | 736 | set_xio_using_server iodef.xml true |
---|
[9458] | 737 | else |
---|
[9756] | 738 | set_xio_using_server iodef.xml false |
---|
[9458] | 739 | fi |
---|
| 740 | cd ${SETTE_DIR} |
---|
[11161] | 741 | . ./prepare_job.sh input_ICE_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} |
---|
[9458] | 742 | cd ${SETTE_DIR} |
---|
| 743 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
[9756] | 744 | |
---|
[9458] | 745 | fi |
---|
| 746 | |
---|
[9518] | 747 | # ------ |
---|
| 748 | # ISOMIP |
---|
| 749 | # ------ |
---|
[11161] | 750 | if [ ${config} == "ISOMIP" ] ; then |
---|
[9518] | 751 | ## Restartability tests |
---|
| 752 | export TEST_NAME="LONG" |
---|
[9708] | 753 | cd ${MAIN_DIR} |
---|
[12289] | 754 | # |
---|
| 755 | # syncronisation if target directory/file exist (not done by makenemo) |
---|
| 756 | . ${SETTE_DIR}/all_functions.sh |
---|
| 757 | # |
---|
[12422] | 758 | clean_config ISOMIP ISOMIP_ST 'tests' |
---|
| 759 | # |
---|
| 760 | sync_config ISOMIP ISOMIP_ST 'tests' |
---|
| 761 | # |
---|
[11497] | 762 | . ./makenemo -m ${CMP_NAM} -n ISOMIP_ST -a ISOMIP -j 8 add_key "${ADD_KEYS}" del_key "${DEL_KEYS}" |
---|
[9518] | 763 | cd ${SETTE_DIR} |
---|
| 764 | . ./param.cfg |
---|
| 765 | . ./all_functions.sh |
---|
| 766 | . ./prepare_exe_dir.sh |
---|
[11161] | 767 | set_valid_dir |
---|
| 768 | clean_valid_dir |
---|
[9518] | 769 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 770 | NPROC=15 |
---|
| 771 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
| 772 | cd ${EXE_DIR} |
---|
| 773 | set_namelist namelist_cfg cn_exp \"ISOMIP_LONG\" |
---|
| 774 | set_namelist namelist_cfg nn_it000 1 |
---|
| 775 | set_namelist namelist_cfg nn_itend 96 |
---|
| 776 | set_namelist namelist_cfg nn_stock 48 |
---|
| 777 | set_namelist namelist_cfg jpni 5 |
---|
| 778 | set_namelist namelist_cfg jpnj 3 |
---|
[10575] | 779 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 780 | set_namelist namelist_cfg sn_cfctl%l_config .true. |
---|
| 781 | set_namelist namelist_cfg sn_cfctl%l_runstat .true. |
---|
[9518] | 782 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 783 | set_xio_using_server iodef.xml true |
---|
| 784 | else |
---|
| 785 | set_xio_using_server iodef.xml false |
---|
| 786 | fi |
---|
| 787 | cd ${SETTE_DIR} |
---|
[11161] | 788 | . ./prepare_job.sh input_ISOMIP.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} |
---|
[9518] | 789 | |
---|
| 790 | cd ${SETTE_DIR} |
---|
| 791 | export TEST_NAME="SHORT" |
---|
| 792 | . ./prepare_exe_dir.sh |
---|
[11161] | 793 | set_valid_dir |
---|
| 794 | clean_valid_dir |
---|
[9518] | 795 | cd ${EXE_DIR} |
---|
| 796 | set_namelist namelist_cfg cn_exp \"ISOMIP_SHORT\" |
---|
| 797 | set_namelist namelist_cfg nn_it000 49 |
---|
| 798 | set_namelist namelist_cfg nn_itend 96 |
---|
| 799 | set_namelist namelist_cfg nn_stock 48 |
---|
| 800 | set_namelist namelist_cfg ln_rstart .true. |
---|
| 801 | set_namelist namelist_cfg nn_rstctl 2 |
---|
| 802 | set_namelist namelist_cfg jpni 5 |
---|
| 803 | set_namelist namelist_cfg jpnj 3 |
---|
[10575] | 804 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 805 | set_namelist namelist_cfg sn_cfctl%l_config .true. |
---|
| 806 | set_namelist namelist_cfg sn_cfctl%l_runstat .true. |
---|
[9518] | 807 | set_namelist namelist_cfg cn_ocerst_in \"ISOMIP_LONG_00000048_restart\" |
---|
| 808 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 809 | set_xio_using_server iodef.xml true |
---|
| 810 | else |
---|
| 811 | set_xio_using_server iodef.xml false |
---|
| 812 | fi |
---|
| 813 | for (( i=1; i<=$NPROC; i++)) ; do |
---|
| 814 | L_NPROC=$(( $i - 1 )) |
---|
| 815 | L_NPROC=`printf "%04d\n" ${L_NPROC}` |
---|
| 816 | ln -sf ../LONG/ISOMIP_LONG_00000048_restart_${L_NPROC}.nc . |
---|
| 817 | done |
---|
[9756] | 818 | |
---|
[9518] | 819 | cd ${SETTE_DIR} |
---|
[11161] | 820 | . ./prepare_job.sh input_ISOMIP.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} |
---|
[9518] | 821 | cd ${SETTE_DIR} |
---|
| 822 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 823 | |
---|
| 824 | ## Reproducibility tests |
---|
| 825 | export TEST_NAME="REPRO_7_3" |
---|
[9708] | 826 | cd ${MAIN_DIR} |
---|
[9518] | 827 | cd ${SETTE_DIR} |
---|
| 828 | . ./param.cfg |
---|
| 829 | . ./all_functions.sh |
---|
| 830 | . ./prepare_exe_dir.sh |
---|
[11161] | 831 | set_valid_dir |
---|
| 832 | clean_valid_dir |
---|
[9518] | 833 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 834 | NPROC=21 |
---|
| 835 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
| 836 | cd ${EXE_DIR} |
---|
| 837 | set_namelist namelist_cfg cn_exp \"ISOMIP_73\" |
---|
| 838 | set_namelist namelist_cfg nn_it000 1 |
---|
| 839 | set_namelist namelist_cfg nn_itend 48 |
---|
| 840 | set_namelist namelist_cfg jpni 7 |
---|
| 841 | set_namelist namelist_cfg jpnj 3 |
---|
[10575] | 842 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 843 | set_namelist namelist_cfg sn_cfctl%l_config .true. |
---|
| 844 | set_namelist namelist_cfg sn_cfctl%l_runstat .true. |
---|
[9518] | 845 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 846 | set_xio_using_server iodef.xml true |
---|
| 847 | else |
---|
| 848 | set_xio_using_server iodef.xml false |
---|
| 849 | fi |
---|
| 850 | cd ${SETTE_DIR} |
---|
[11161] | 851 | . ./prepare_job.sh input_ISOMIP.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} |
---|
[9518] | 852 | cd ${SETTE_DIR} |
---|
| 853 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 854 | |
---|
| 855 | cd ${SETTE_DIR} |
---|
| 856 | export TEST_NAME="REPRO_8_4" |
---|
| 857 | . ./prepare_exe_dir.sh |
---|
[11161] | 858 | set_valid_dir |
---|
| 859 | clean_valid_dir |
---|
[9518] | 860 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 861 | NPROC=32 |
---|
| 862 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
| 863 | cd ${EXE_DIR} |
---|
| 864 | set_namelist namelist_cfg cn_exp \"ISOMIP_84\" |
---|
| 865 | set_namelist namelist_cfg nn_it000 1 |
---|
| 866 | set_namelist namelist_cfg nn_itend 48 |
---|
| 867 | set_namelist namelist_cfg jpni 8 |
---|
| 868 | set_namelist namelist_cfg jpnj 4 |
---|
[10575] | 869 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 870 | set_namelist namelist_cfg sn_cfctl%l_config .true. |
---|
| 871 | set_namelist namelist_cfg sn_cfctl%l_runstat .true. |
---|
[9518] | 872 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 873 | set_xio_using_server iodef.xml true |
---|
| 874 | else |
---|
| 875 | set_xio_using_server iodef.xml false |
---|
| 876 | fi |
---|
| 877 | cd ${SETTE_DIR} |
---|
[11161] | 878 | . ./prepare_job.sh input_ISOMIP.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} |
---|
[9518] | 879 | cd ${SETTE_DIR} |
---|
| 880 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 881 | |
---|
| 882 | fi |
---|
| 883 | |
---|
[9458] | 884 | #---- |
---|
[9268] | 885 | done |
---|