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