[3520] | 1 | #!/bin/bash |
---|
[3708] | 2 | ############################################################ |
---|
[3520] | 3 | # Author : Simona Flavoni for NEMO |
---|
[4245] | 4 | # Contact: sflod@locean-ipsl.upmc.fr |
---|
| 5 | # 2013 : A.C. Coward added options for testing with XIOS in dettached mode |
---|
[3520] | 6 | # |
---|
| 7 | # sette.sh : principal script of SET TEsts for NEMO (SETTE) |
---|
| 8 | # ---------------------------------------------------------------------- |
---|
| 9 | # NEMO/SETTE , NEMO Consortium (2010) |
---|
| 10 | # Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt) |
---|
| 11 | # ---------------------------------------------------------------------- |
---|
| 12 | # |
---|
| 13 | ############################################################# |
---|
[3532] | 14 | #set -x |
---|
[3520] | 15 | set -o posix |
---|
| 16 | #set -u |
---|
| 17 | #set -e |
---|
[4245] | 18 | # =========== |
---|
[3520] | 19 | # DESCRIPTION |
---|
| 20 | # =========== |
---|
| 21 | # |
---|
| 22 | # Variables to be checked by user: |
---|
| 23 | # |
---|
[4245] | 24 | # COMPILER : name of compiler as defined in NEMOGCM/ARCH directory |
---|
| 25 | # BATCH_COMMAND_PAR : name of the command for submitting parallel batch jobs |
---|
| 26 | # BATCH_COMMAND_SEQ : name of the command for submitting sequential batch jobs |
---|
| 27 | # INTERACT_FLAG : flag to run in interactive mode "yes" |
---|
| 28 | # to run in batch mode "no" |
---|
| 29 | # MPIRUN_FLAG : flag to run in parallel (MPI) "yes" |
---|
| 30 | # to run in sequential mode (NB_PROC = 1) "no" |
---|
| 31 | # USING_XIOS : flag to control the activation of key_iomput |
---|
| 32 | # "yes" to compile using key_iomput and link to the external XIOS library |
---|
| 33 | # "no" to compile without key_iomput and link to the old IOIPSL library |
---|
| 34 | # USING_MPMD : flag to control the use of stand-alone IO servers |
---|
| 35 | # requires USING_XIOS="yes" |
---|
| 36 | # "yes" to run in MPMD (detached) mode with stand-alone IO servers |
---|
| 37 | # "no" to run in SPMD (attached) mode without separate IO servers |
---|
| 38 | # NUM_XIOSERVERS : number of stand-alone IO servers to employ |
---|
| 39 | # set to zero if USING_MPMD="no" |
---|
[3520] | 40 | # |
---|
| 41 | # Principal script is sette.sh, that calls |
---|
| 42 | # |
---|
[4245] | 43 | # makenemo : to create successive exectuables in ${CONFIG_NAME}/BLD/bin/nemo.exe |
---|
| 44 | # and links to opa in ${CONFIG_NAME}/EXP00) |
---|
[3520] | 45 | # |
---|
| 46 | # param.cfg : sets and loads following directories: |
---|
| 47 | # |
---|
[4245] | 48 | # FORCING_DIR : is the directory for forcing files (tarfile) |
---|
| 49 | # INPUT_DIR : is the directory for input files storing |
---|
| 50 | # TMPDIR : is the temporary directory (if needed) |
---|
[3520] | 51 | # NEMO_VALIDATION_DIR : is the validation directory |
---|
| 52 | # |
---|
| 53 | # (NOTE: this file is the same for all configrations to be tested with sette) |
---|
| 54 | # |
---|
[4245] | 55 | # all_functions.sh : loads functions used by sette (note: new functions can be added here) |
---|
| 56 | # set_namelist : function declared in all_functions that sets namelist parameters |
---|
| 57 | # post_test_tidyup : creates validation storage directory and copies required output files |
---|
| 58 | # (solver.stat and ocean.output) in it after execution of test. |
---|
[3520] | 59 | # |
---|
[4245] | 60 | # VALIDATION tree is: |
---|
[3520] | 61 | # |
---|
| 62 | # NEMO_VALIDATION_DIR/WCONFIG_NAME/WCOMPILER_NAME/TEST_NAME/REVISION_NUMBER(or DATE) |
---|
| 63 | # |
---|
| 64 | # prepare_exe_dir.sh : defines and creates directory where the test is executed |
---|
[4245] | 65 | # execution directory takes name of TEST_NAME defined for every test |
---|
| 66 | # in sette.sh. (each test in executed in its own directory) |
---|
[3520] | 67 | # |
---|
[4245] | 68 | # prepare_job.sh : to generate the script run_job.sh |
---|
[3520] | 69 | # |
---|
[4245] | 70 | # fcm_job.sh : run in batch (INTERACT_FLAG="no") or interactive (INTERACT_FLAG="yes") |
---|
| 71 | # see sette.sh and BATCH_TEMPLATE directory |
---|
[3520] | 72 | # |
---|
[4245] | 73 | # NOTE: jobs requiring initial or forcing data need to have an input_CONFIG.cfg in which |
---|
| 74 | # can be found paths to the input tar file) |
---|
| 75 | # NOTE: if job is not launched for any reason you have the executable ready in ${EXE_DIR} |
---|
| 76 | # directory |
---|
| 77 | # NOTE: the changed namelists are left in ${EXE_DIR} directory whereas original namelists |
---|
| 78 | # remain in ${NEW_CONF}/EXP00 |
---|
[3520] | 79 | # |
---|
[4245] | 80 | # NOTE: a log file, output.sette, is created in ${SETTE_DIR} with the echoes of |
---|
| 81 | # executed commands |
---|
[3520] | 82 | # |
---|
[4245] | 83 | # NOTE: if sette.sh is stopped in output.sette there is written the last command |
---|
| 84 | # executed by sette.sh |
---|
[3520] | 85 | # |
---|
[4245] | 86 | # example use: ./sette.sh |
---|
| 87 | ######################################################################################### |
---|
[3520] | 88 | # |
---|
[4245] | 89 | # Compiler among those in NEMOGCM/ARCH |
---|
[4990] | 90 | COMPILER=X64_ADA |
---|
[4245] | 91 | export BATCH_COMMAND_PAR="llsubmit" |
---|
| 92 | export BATCH_COMMAND_SEQ=$BATCH_COMMAND_PAR |
---|
[4990] | 93 | export INTERACT_FLAG="no" |
---|
[4245] | 94 | export MPIRUN_FLAG="yes" |
---|
| 95 | export USING_XIOS="yes" |
---|
[3520] | 96 | # |
---|
[4245] | 97 | export DEL_KEYS="key_iomput" |
---|
| 98 | if [ ${USING_XIOS} == "yes" ] |
---|
| 99 | then |
---|
| 100 | export DEL_KEYS="" |
---|
| 101 | fi |
---|
[3520] | 102 | # |
---|
[4245] | 103 | # Settings which control the use of stand alone servers (only relevant if using xios) |
---|
[3520] | 104 | # |
---|
[4245] | 105 | export USING_MPMD="no" |
---|
| 106 | export NUM_XIOSERVERS=4 |
---|
| 107 | export JOB_PREFIX=batch-mpmd |
---|
[3520] | 108 | # |
---|
[4245] | 109 | if [ ${USING_MPMD} == "no" ] |
---|
| 110 | then |
---|
| 111 | export NUM_XIOSERVERS=0 |
---|
| 112 | export JOB_PREFIX=batch |
---|
| 113 | fi |
---|
[3520] | 114 | # |
---|
| 115 | # |
---|
[4245] | 116 | if [ ${USING_MPMD} == "yes" ] && [ ${USING_XIOS} == "no"] |
---|
| 117 | then |
---|
| 118 | echo "Incompatible choices. MPMD mode requires the XIOS server" |
---|
| 119 | exit |
---|
| 120 | fi |
---|
[3520] | 121 | # |
---|
| 122 | |
---|
| 123 | # Directory to run the tests |
---|
| 124 | SETTE_DIR=$(cd $(dirname "$0"); pwd) |
---|
| 125 | MAIN_DIR=${SETTE_DIR%/SETTE} |
---|
| 126 | CONFIG_DIR=${MAIN_DIR}/CONFIG |
---|
| 127 | TOOLS_DIR=${MAIN_DIR}/TOOLS |
---|
| 128 | COMPIL_DIR=${TOOLS_DIR}/COMPILE |
---|
| 129 | |
---|
| 130 | CMP_NAM=${1:-$COMPILER} |
---|
| 131 | # Copy job_batch_COMPILER file for specific compiler into job_batch_template |
---|
| 132 | cd ${SETTE_DIR} |
---|
[4245] | 133 | cp BATCH_TEMPLATE/${JOB_PREFIX}-${COMPILER} job_batch_template || exit |
---|
[4316] | 134 | # Description of configuration tested: |
---|
| 135 | # GYRE : 1 & 2 |
---|
| 136 | # ORCA2_LIM_PISCES: 3 & 4 |
---|
| 137 | # ORCA2_OFF_PISCES: 5 & 6 |
---|
[4796] | 138 | # ORCA2_LIM3 : 7 & 8 |
---|
[4990] | 139 | # AMM12 : 9 & 10 |
---|
[4796] | 140 | # SAS :11 & 12 |
---|
[4990] | 141 | # ISOMIP :13 & 14 |
---|
[5956] | 142 | # ORCA2_LIM_OBS :15 |
---|
| 143 | # ORCA2_AGRIF_LIM :16 & 17 |
---|
| 144 | # 18 & 19 |
---|
| 145 | |
---|
[4990] | 146 | for config in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
---|
[4147] | 147 | |
---|
[3520] | 148 | do |
---|
| 149 | |
---|
[3680] | 150 | # TESTS FOR GYRE CONFIGURATION |
---|
[3520] | 151 | if [ ${config} -eq 1 ] ; then |
---|
[3680] | 152 | ## Restartability tests for GYRE |
---|
[3520] | 153 | export TEST_NAME="LONG" |
---|
[4147] | 154 | cd ${CONFIG_DIR} |
---|
[4245] | 155 | . ./makenemo -m ${CMP_NAM} -n GYRE_LONG -r GYRE -j 8 del_key ${DEL_KEYS} |
---|
[3520] | 156 | cd ${SETTE_DIR} |
---|
[4252] | 157 | . ./param.cfg |
---|
| 158 | . ./all_functions.sh |
---|
| 159 | . ./prepare_exe_dir.sh |
---|
[3520] | 160 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
[3532] | 161 | NPROC=4 |
---|
[4245] | 162 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
[4147] | 163 | cd ${EXE_DIR} |
---|
| 164 | set_namelist namelist_cfg cn_exp \"GYRE_LONG\" |
---|
| 165 | set_namelist namelist_cfg nn_it000 1 |
---|
| 166 | set_namelist namelist_cfg nn_itend 120 |
---|
| 167 | set_namelist namelist_cfg nn_stock 60 |
---|
| 168 | set_namelist namelist_cfg ln_clobber .true. |
---|
[4318] | 169 | set_namelist namelist_cfg nn_fwb 0 |
---|
[4147] | 170 | set_namelist namelist_cfg jpni 2 |
---|
| 171 | set_namelist namelist_cfg jpnj 2 |
---|
| 172 | set_namelist namelist_cfg jpnij 4 |
---|
[4245] | 173 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 174 | set_xio_using_server iodef.xml true |
---|
| 175 | else |
---|
| 176 | set_xio_using_server iodef.xml false |
---|
| 177 | fi |
---|
| 178 | cd ${SETTE_DIR} |
---|
| 179 | . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[3520] | 180 | |
---|
| 181 | cd ${SETTE_DIR} |
---|
| 182 | export TEST_NAME="SHORT" |
---|
[4252] | 183 | . ./prepare_exe_dir.sh |
---|
[3520] | 184 | cd ${EXE_DIR} |
---|
[4147] | 185 | set_namelist namelist_cfg cn_exp \"GYRE_SHORT\" |
---|
| 186 | set_namelist namelist_cfg nn_it000 61 |
---|
| 187 | set_namelist namelist_cfg nn_itend 120 |
---|
| 188 | set_namelist namelist_cfg nn_stock 60 |
---|
| 189 | set_namelist namelist_cfg ln_rstart .true. |
---|
| 190 | set_namelist namelist_cfg nn_rstctl 2 |
---|
| 191 | set_namelist namelist_cfg ln_clobber .true. |
---|
[4316] | 192 | set_namelist namelist_cfg nn_fwb 0 |
---|
[4147] | 193 | set_namelist namelist_cfg jpni 2 |
---|
| 194 | set_namelist namelist_cfg jpnj 2 |
---|
| 195 | set_namelist namelist_cfg jpnij 4 |
---|
| 196 | set_namelist namelist_cfg cn_ocerst_in \"GYRE_LONG_00000060_restart\" |
---|
[4245] | 197 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 198 | set_xio_using_server iodef.xml true |
---|
| 199 | else |
---|
| 200 | set_xio_using_server iodef.xml false |
---|
| 201 | fi |
---|
[3537] | 202 | for (( i=1; i<=$NPROC; i++)) ; do |
---|
| 203 | L_NPROC=$(( $i - 1 )) |
---|
| 204 | L_NPROC=`printf "%04d\n" ${L_NPROC}` |
---|
[3680] | 205 | ln -sf ../LONG/GYRE_LONG_00000060_restart_${L_NPROC}.nc . |
---|
[3537] | 206 | done |
---|
[4245] | 207 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 208 | set_xio_using_server iodef.xml true |
---|
| 209 | else |
---|
| 210 | set_xio_using_server iodef.xml false |
---|
| 211 | fi |
---|
[3520] | 212 | cd ${SETTE_DIR} |
---|
[4245] | 213 | . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[3520] | 214 | cd ${SETTE_DIR} |
---|
[3532] | 215 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
[3520] | 216 | fi |
---|
| 217 | |
---|
| 218 | if [ ${config} -eq 2 ] ; then |
---|
[3680] | 219 | ## Reproducibility tests for GYRE |
---|
[3520] | 220 | export TEST_NAME="REPRO_1_4" |
---|
[4147] | 221 | cd ${CONFIG_DIR} |
---|
[4245] | 222 | . ./makenemo -m ${CMP_NAM} -n GYRE_4 -r GYRE -j 8 add_key "key_mpp_rep" del_key ${DEL_KEYS} |
---|
[3520] | 223 | cd ${SETTE_DIR} |
---|
[4252] | 224 | . ./param.cfg |
---|
| 225 | . ./all_functions.sh |
---|
| 226 | . ./prepare_exe_dir.sh |
---|
[3520] | 227 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 228 | NPROC=4 |
---|
[4245] | 229 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
[3520] | 230 | cd ${EXE_DIR} |
---|
[4147] | 231 | set_namelist namelist_cfg cn_exp \"GYRE_14\" |
---|
| 232 | set_namelist namelist_cfg nn_it000 1 |
---|
| 233 | set_namelist namelist_cfg nn_itend 60 |
---|
| 234 | set_namelist namelist_cfg nn_fwb 0 |
---|
| 235 | set_namelist namelist_cfg nn_bench 0 |
---|
| 236 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 237 | set_namelist namelist_cfg ln_clobber .true. |
---|
| 238 | set_namelist namelist_cfg jpni 1 |
---|
| 239 | set_namelist namelist_cfg jpnj 4 |
---|
| 240 | set_namelist namelist_cfg jpnij 4 |
---|
[4245] | 241 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 242 | set_xio_using_server iodef.xml true |
---|
| 243 | else |
---|
| 244 | set_xio_using_server iodef.xml false |
---|
| 245 | fi |
---|
[3520] | 246 | cd ${SETTE_DIR} |
---|
[4245] | 247 | . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[3520] | 248 | cd ${SETTE_DIR} |
---|
| 249 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 250 | |
---|
| 251 | cd ${SETTE_DIR} |
---|
| 252 | export TEST_NAME="REPRO_2_2" |
---|
[4252] | 253 | . ./prepare_exe_dir.sh |
---|
[3680] | 254 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 255 | NPROC=4 |
---|
[4245] | 256 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
[3520] | 257 | cd ${EXE_DIR} |
---|
[4147] | 258 | set_namelist namelist_cfg cn_exp \"GYRE_22\" |
---|
| 259 | set_namelist namelist_cfg nn_it000 1 |
---|
| 260 | set_namelist namelist_cfg nn_itend 60 |
---|
| 261 | set_namelist namelist_cfg nn_fwb 0 |
---|
| 262 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 263 | set_namelist namelist_cfg ln_clobber .true. |
---|
| 264 | set_namelist namelist_cfg jpni 2 |
---|
| 265 | set_namelist namelist_cfg jpnj 2 |
---|
| 266 | set_namelist namelist_cfg jpnij 4 |
---|
[4245] | 267 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 268 | set_xio_using_server iodef.xml true |
---|
| 269 | else |
---|
| 270 | set_xio_using_server iodef.xml false |
---|
| 271 | fi |
---|
[3520] | 272 | cd ${SETTE_DIR} |
---|
[4245] | 273 | . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[3520] | 274 | cd ${SETTE_DIR} |
---|
| 275 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
[3532] | 276 | |
---|
[3520] | 277 | fi |
---|
| 278 | |
---|
| 279 | # TESTS FOR ORCA2_LIM_PISCES CONFIGURATION |
---|
| 280 | if [ ${config} -eq 3 ] ; then |
---|
| 281 | ## Restartability tests for ORCA2_LIM_PISCES |
---|
| 282 | export TEST_NAME="LONG" |
---|
[4147] | 283 | cd ${CONFIG_DIR} |
---|
[4245] | 284 | . ./makenemo -m ${CMP_NAM} -n ORCA2LIMPIS_LONG -r ORCA2_LIM_PISCES -j 8 del_key ${DEL_KEYS} |
---|
[3520] | 285 | cd ${SETTE_DIR} |
---|
[4252] | 286 | . ./param.cfg |
---|
| 287 | . ./all_functions.sh |
---|
| 288 | . ./prepare_exe_dir.sh |
---|
[3520] | 289 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
[5956] | 290 | NPROC=8 |
---|
[4245] | 291 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
[3520] | 292 | cd ${EXE_DIR} |
---|
[4147] | 293 | set_namelist namelist_cfg cn_exp \"O2LP_LONG\" |
---|
| 294 | set_namelist namelist_cfg nn_it000 1 |
---|
| 295 | set_namelist namelist_cfg nn_itend 150 |
---|
| 296 | set_namelist namelist_cfg nn_stock 75 |
---|
| 297 | set_namelist namelist_cfg ln_clobber .true. |
---|
[4316] | 298 | set_namelist namelist_cfg nn_fwb 0 |
---|
[4147] | 299 | set_namelist namelist_cfg jpni 2 |
---|
[5956] | 300 | set_namelist namelist_cfg jpnj 4 |
---|
| 301 | set_namelist namelist_cfg jpnij 8 |
---|
[4147] | 302 | set_namelist namelist_top_cfg ln_trcdta .false. |
---|
| 303 | set_namelist namelist_top_cfg ln_diatrc .false. |
---|
[3520] | 304 | # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false |
---|
| 305 | # if not you need input files, and for tests is not necessary |
---|
[4147] | 306 | set_namelist namelist_pisces_cfg ln_presatm .false. |
---|
| 307 | set_namelist namelist_pisces_cfg ln_varpar .false. |
---|
| 308 | set_namelist namelist_pisces_cfg ln_dust .false. |
---|
| 309 | set_namelist namelist_pisces_cfg ln_solub .false. |
---|
| 310 | set_namelist namelist_pisces_cfg ln_river .false. |
---|
| 311 | set_namelist namelist_pisces_cfg ln_ndepo .false. |
---|
| 312 | set_namelist namelist_pisces_cfg ln_ironsed .false. |
---|
| 313 | set_namelist namelist_pisces_cfg ln_hydrofe .false. |
---|
[4245] | 314 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 315 | set_xio_using_server iodef.xml true |
---|
| 316 | else |
---|
| 317 | set_xio_using_server iodef.xml false |
---|
| 318 | fi |
---|
[3520] | 319 | cd ${SETTE_DIR} |
---|
[4245] | 320 | . ./prepare_job.sh input_ORCA2_LIM_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[3532] | 321 | |
---|
| 322 | cd ${SETTE_DIR} |
---|
[3520] | 323 | export TEST_NAME="SHORT" |
---|
[4252] | 324 | . ./prepare_exe_dir.sh |
---|
[3520] | 325 | cd ${EXE_DIR} |
---|
[4147] | 326 | set_namelist namelist_cfg cn_exp \"O2LP_SHORT\" |
---|
| 327 | set_namelist namelist_cfg nn_it000 76 |
---|
| 328 | set_namelist namelist_cfg nn_itend 150 |
---|
| 329 | set_namelist namelist_cfg nn_stock 75 |
---|
| 330 | set_namelist namelist_cfg ln_rstart .true. |
---|
| 331 | set_namelist namelist_cfg nn_rstctl 2 |
---|
| 332 | set_namelist namelist_cfg ln_clobber .true. |
---|
[4316] | 333 | set_namelist namelist_cfg nn_fwb 0 |
---|
[4147] | 334 | set_namelist namelist_cfg jpni 2 |
---|
[5956] | 335 | set_namelist namelist_cfg jpnj 4 |
---|
| 336 | set_namelist namelist_cfg jpnij 8 |
---|
[4147] | 337 | set_namelist namelist_top_cfg ln_diatrc .false. |
---|
| 338 | set_namelist namelist_top_cfg ln_rsttr .true. |
---|
| 339 | set_namelist namelist_top_cfg nn_rsttr 2 |
---|
| 340 | set_namelist namelist_cfg cn_ocerst_in \"O2LP_LONG_00000075_restart\" |
---|
| 341 | set_namelist namelist_ice_cfg cn_icerst_in \"O2LP_LONG_00000075_restart_ice\" |
---|
| 342 | set_namelist namelist_top_cfg cn_trcrst_in \"O2LP_LONG_00000075_restart_trc\" |
---|
[3520] | 343 | # put ln_ironsed, ln_river, ln_ndepo, ln_dust |
---|
| 344 | # if not you need input files, and for tests is not necessary |
---|
[4147] | 345 | set_namelist namelist_pisces_cfg ln_presatm .false. |
---|
| 346 | set_namelist namelist_pisces_cfg ln_varpar .false. |
---|
| 347 | set_namelist namelist_pisces_cfg ln_dust .false. |
---|
| 348 | set_namelist namelist_pisces_cfg ln_solub .false. |
---|
| 349 | set_namelist namelist_pisces_cfg ln_river .false. |
---|
| 350 | set_namelist namelist_pisces_cfg ln_ndepo .false. |
---|
| 351 | set_namelist namelist_pisces_cfg ln_ironsed .false. |
---|
| 352 | set_namelist namelist_pisces_cfg ln_hydrofe .false. |
---|
[3680] | 353 | # put ln_pisdmp to false : no restoring to global mean value |
---|
[4147] | 354 | set_namelist namelist_pisces_cfg ln_pisdmp .false. |
---|
[3537] | 355 | for (( i=1; i<=$NPROC; i++)) ; do |
---|
| 356 | L_NPROC=$(( $i - 1 )) |
---|
| 357 | L_NPROC=`printf "%04d\n" ${L_NPROC}` |
---|
[3555] | 358 | ln -sf ../LONG/O2LP_LONG_00000075_restart_${L_NPROC}.nc . |
---|
| 359 | ln -sf ../LONG/O2LP_LONG_00000075_restart_trc_${L_NPROC}.nc . |
---|
| 360 | ln -sf ../LONG/O2LP_LONG_00000075_restart_ice_${L_NPROC}.nc . |
---|
[3537] | 361 | done |
---|
[4245] | 362 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 363 | set_xio_using_server iodef.xml true |
---|
| 364 | else |
---|
| 365 | set_xio_using_server iodef.xml false |
---|
| 366 | fi |
---|
[3520] | 367 | cd ${SETTE_DIR} |
---|
[4245] | 368 | . ./prepare_job.sh input_ORCA2_LIM_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[3520] | 369 | cd ${SETTE_DIR} |
---|
[3532] | 370 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
[3520] | 371 | fi |
---|
| 372 | |
---|
| 373 | if [ ${config} -eq 4 ] ; then |
---|
[3680] | 374 | ## Reproducibility tests for ORCA2_LIM_PISCES |
---|
[3520] | 375 | export TEST_NAME="REPRO_4_4" |
---|
[4147] | 376 | cd ${CONFIG_DIR} |
---|
[4245] | 377 | . ./makenemo -m ${CMP_NAM} -n ORCA2LIMPIS_16 -r ORCA2_LIM_PISCES -j 8 add_key "key_mpp_rep" del_key ${DEL_KEYS} |
---|
[3520] | 378 | cd ${SETTE_DIR} |
---|
[4252] | 379 | . ./param.cfg |
---|
| 380 | . ./all_functions.sh |
---|
| 381 | . ./prepare_exe_dir.sh |
---|
[3520] | 382 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 383 | NPROC=16 |
---|
[4245] | 384 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
[3520] | 385 | cd ${EXE_DIR} |
---|
[4147] | 386 | set_namelist namelist_cfg nn_it000 1 |
---|
| 387 | set_namelist namelist_cfg nn_itend 75 |
---|
| 388 | set_namelist namelist_cfg nn_fwb 0 |
---|
| 389 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 390 | set_namelist namelist_cfg ln_clobber .true. |
---|
| 391 | set_namelist namelist_cfg jpni 4 |
---|
| 392 | set_namelist namelist_cfg jpnj 4 |
---|
| 393 | set_namelist namelist_cfg jpnij 16 |
---|
| 394 | set_namelist namelist_top_cfg ln_trcdta .false. |
---|
| 395 | set_namelist namelist_top_cfg ln_diatrc .false. |
---|
[3520] | 396 | # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false |
---|
| 397 | # if not you need input files, and for tests is not necessary |
---|
[4147] | 398 | set_namelist namelist_pisces_cfg ln_presatm .false. |
---|
| 399 | set_namelist namelist_pisces_cfg ln_varpar .false. |
---|
| 400 | set_namelist namelist_pisces_cfg ln_dust .false. |
---|
| 401 | set_namelist namelist_pisces_cfg ln_solub .false. |
---|
| 402 | set_namelist namelist_pisces_cfg ln_river .false. |
---|
| 403 | set_namelist namelist_pisces_cfg ln_ndepo .false. |
---|
| 404 | set_namelist namelist_pisces_cfg ln_ironsed .false. |
---|
| 405 | set_namelist namelist_pisces_cfg ln_hydrofe .false. |
---|
[3680] | 406 | # put ln_pisdmp to false : no restoring to global mean value |
---|
[4147] | 407 | set_namelist namelist_pisces_cfg ln_pisdmp .false. |
---|
[4245] | 408 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 409 | set_xio_using_server iodef.xml true |
---|
| 410 | else |
---|
| 411 | set_xio_using_server iodef.xml false |
---|
| 412 | fi |
---|
[3520] | 413 | cd ${SETTE_DIR} |
---|
[4245] | 414 | . ./prepare_job.sh input_ORCA2_LIM_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[3520] | 415 | cd ${SETTE_DIR} |
---|
[3532] | 416 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
[3520] | 417 | |
---|
| 418 | cd ${SETTE_DIR} |
---|
| 419 | export TEST_NAME="REPRO_2_8" |
---|
[4252] | 420 | . ./prepare_exe_dir.sh |
---|
[3680] | 421 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 422 | NPROC=16 |
---|
[4245] | 423 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
[3520] | 424 | cd ${EXE_DIR} |
---|
[4147] | 425 | set_namelist namelist_cfg nn_it000 1 |
---|
| 426 | set_namelist namelist_cfg nn_itend 75 |
---|
| 427 | set_namelist namelist_cfg ln_clobber .true. |
---|
[4316] | 428 | set_namelist namelist_cfg nn_fwb 0 |
---|
[4147] | 429 | set_namelist namelist_cfg jpni 2 |
---|
| 430 | set_namelist namelist_cfg jpnj 8 |
---|
| 431 | set_namelist namelist_cfg jpnij 16 |
---|
| 432 | set_namelist namelist_top_cfg ln_trcdta .false. |
---|
| 433 | set_namelist namelist_top_cfg ln_diatrc .false. |
---|
[3520] | 434 | # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false |
---|
| 435 | # if not you need input files, and for tests is not necessary |
---|
[4147] | 436 | set_namelist namelist_pisces_cfg ln_presatm .false. |
---|
| 437 | set_namelist namelist_pisces_cfg ln_varpar .false. |
---|
| 438 | set_namelist namelist_pisces_cfg ln_dust .false. |
---|
| 439 | set_namelist namelist_pisces_cfg ln_solub .false. |
---|
| 440 | set_namelist namelist_pisces_cfg ln_river .false. |
---|
| 441 | set_namelist namelist_pisces_cfg ln_ndepo .false. |
---|
| 442 | set_namelist namelist_pisces_cfg ln_ironsed .false. |
---|
| 443 | set_namelist namelist_pisces_cfg ln_hydrofe .false. |
---|
[3680] | 444 | # put ln_pisdmp to false : no restoring to global mean value |
---|
[4147] | 445 | set_namelist namelist_pisces_cfg ln_pisdmp .false. |
---|
[4245] | 446 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 447 | set_xio_using_server iodef.xml true |
---|
| 448 | else |
---|
| 449 | set_xio_using_server iodef.xml false |
---|
| 450 | fi |
---|
[3520] | 451 | cd ${SETTE_DIR} |
---|
[4245] | 452 | . ./prepare_job.sh input_ORCA2_LIM_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[3520] | 453 | cd ${SETTE_DIR} |
---|
| 454 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 455 | fi |
---|
| 456 | |
---|
| 457 | # TESTS FOR ORCA2_OFF_PISCES CONFIGURATION |
---|
| 458 | if [ ${config} -eq 5 ] ; then |
---|
| 459 | ## Restartability tests for ORCA2_OFF_PISCES |
---|
| 460 | export TEST_NAME="LONG" |
---|
[4147] | 461 | cd ${CONFIG_DIR} |
---|
[4245] | 462 | . ./makenemo -m ${CMP_NAM} -n ORCA2OFFPIS_LONG -r ORCA2_OFF_PISCES -j 8 add_key "key_mpp_rep" del_key ${DEL_KEYS} |
---|
[3520] | 463 | cd ${SETTE_DIR} |
---|
[4252] | 464 | . ./param.cfg |
---|
| 465 | . ./all_functions.sh |
---|
| 466 | . ./prepare_exe_dir.sh |
---|
[3520] | 467 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
[5956] | 468 | NPROC=8 |
---|
[4245] | 469 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
[3520] | 470 | cd ${EXE_DIR} |
---|
[4147] | 471 | set_namelist namelist_cfg cn_exp \"OFFP_LONG\" |
---|
| 472 | set_namelist namelist_cfg nn_it000 1 |
---|
| 473 | set_namelist namelist_cfg nn_itend 40 |
---|
| 474 | set_namelist namelist_cfg nn_stock 20 |
---|
| 475 | set_namelist namelist_cfg ln_clobber .true. |
---|
| 476 | set_namelist namelist_cfg jpni 2 |
---|
[5956] | 477 | set_namelist namelist_cfg jpnj 4 |
---|
| 478 | set_namelist namelist_cfg jpnij 8 |
---|
[4147] | 479 | set_namelist namelist_top_cfg ln_trcdta .false. |
---|
| 480 | set_namelist namelist_top_cfg ln_diatrc .false. |
---|
[3520] | 481 | # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false |
---|
| 482 | # if not you need input files, and for tests is not necessary |
---|
[4147] | 483 | set_namelist namelist_pisces_cfg ln_presatm .false. |
---|
| 484 | set_namelist namelist_pisces_cfg ln_varpar .false. |
---|
| 485 | set_namelist namelist_pisces_cfg ln_dust .false. |
---|
| 486 | set_namelist namelist_pisces_cfg ln_solub .false. |
---|
| 487 | set_namelist namelist_pisces_cfg ln_river .false. |
---|
| 488 | set_namelist namelist_pisces_cfg ln_ndepo .false. |
---|
| 489 | set_namelist namelist_pisces_cfg ln_ironsed .false. |
---|
| 490 | set_namelist namelist_pisces_cfg ln_hydrofe .false. |
---|
[3680] | 491 | # put ln_pisdmp to false : no restoring to global mean value |
---|
[4147] | 492 | set_namelist namelist_pisces_cfg ln_pisdmp .false. |
---|
[4245] | 493 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 494 | set_xio_using_server iodef.xml true |
---|
| 495 | else |
---|
| 496 | set_xio_using_server iodef.xml false |
---|
| 497 | fi |
---|
[3520] | 498 | cd ${SETTE_DIR} |
---|
[4245] | 499 | . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[3520] | 500 | |
---|
| 501 | cd ${SETTE_DIR} |
---|
| 502 | export TEST_NAME="SHORT" |
---|
[4252] | 503 | . ./prepare_exe_dir.sh |
---|
[3520] | 504 | cd ${EXE_DIR} |
---|
[4147] | 505 | set_namelist namelist_cfg cn_exp \"OFFP_SHORT\" |
---|
| 506 | set_namelist namelist_cfg nn_it000 21 |
---|
| 507 | set_namelist namelist_cfg nn_itend 40 |
---|
| 508 | set_namelist namelist_cfg nn_stock 20 |
---|
| 509 | set_namelist namelist_cfg ln_clobber .true. |
---|
| 510 | set_namelist namelist_cfg jpni 2 |
---|
[5956] | 511 | set_namelist namelist_cfg jpnj 4 |
---|
| 512 | set_namelist namelist_cfg jpnij 8 |
---|
[4147] | 513 | set_namelist namelist_top_cfg ln_diatrc .false. |
---|
| 514 | set_namelist namelist_top_cfg ln_rsttr .true. |
---|
| 515 | set_namelist namelist_top_cfg nn_rsttr 2 |
---|
| 516 | set_namelist namelist_top_cfg cn_trcrst_in \"OFFP_LONG_00000020_restart_trc\" |
---|
[3537] | 517 | for (( i=1; i<=$NPROC; i++)) ; do |
---|
| 518 | L_NPROC=$(( $i - 1 )) |
---|
| 519 | L_NPROC=`printf "%04d\n" ${L_NPROC}` |
---|
[3555] | 520 | ln -sf ../LONG/OFFP_LONG_00000020_restart_trc_${L_NPROC}.nc . |
---|
[3537] | 521 | done |
---|
[3520] | 522 | # put ln_ironsed, ln_river, ln_ndepo, ln_dust |
---|
| 523 | # if not you need input files, and for tests is not necessary |
---|
[4147] | 524 | set_namelist namelist_pisces_cfg ln_presatm .false. |
---|
| 525 | set_namelist namelist_pisces_cfg ln_varpar .false. |
---|
| 526 | set_namelist namelist_pisces_cfg ln_dust .false. |
---|
| 527 | set_namelist namelist_pisces_cfg ln_solub .false. |
---|
| 528 | set_namelist namelist_pisces_cfg ln_river .false. |
---|
| 529 | set_namelist namelist_pisces_cfg ln_ndepo .false. |
---|
| 530 | set_namelist namelist_pisces_cfg ln_ironsed .false. |
---|
| 531 | set_namelist namelist_pisces_cfg ln_hydrofe .false. |
---|
[3680] | 532 | # put ln_pisdmp to false : no restoring to global mean value |
---|
[4147] | 533 | set_namelist namelist_pisces_cfg ln_pisdmp .false. |
---|
[4245] | 534 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 535 | set_xio_using_server iodef.xml true |
---|
| 536 | else |
---|
| 537 | set_xio_using_server iodef.xml false |
---|
| 538 | fi |
---|
[3520] | 539 | cd ${SETTE_DIR} |
---|
[4245] | 540 | . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[3520] | 541 | cd ${SETTE_DIR} |
---|
| 542 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 543 | fi |
---|
| 544 | |
---|
| 545 | if [ ${config} -eq 6 ] ; then |
---|
[3680] | 546 | ## Reproducibility tests for ORCA2_OFF_PISCES |
---|
[3520] | 547 | export TEST_NAME="REPRO_4_4" |
---|
[4147] | 548 | cd ${CONFIG_DIR} |
---|
[4245] | 549 | . ./makenemo -m ${CMP_NAM} -n ORCA2OFFPIS_16 -r ORCA2_OFF_PISCES -j 8 add_key "key_mpp_rep" del_key ${DEL_KEYS} |
---|
[3520] | 550 | cd ${SETTE_DIR} |
---|
[4252] | 551 | . ./param.cfg |
---|
| 552 | . ./all_functions.sh |
---|
| 553 | . ./prepare_exe_dir.sh |
---|
[3520] | 554 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 555 | NPROC=16 |
---|
[4245] | 556 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
[3520] | 557 | cd ${EXE_DIR} |
---|
[4147] | 558 | set_namelist namelist_cfg nn_it000 1 |
---|
| 559 | set_namelist namelist_cfg nn_itend 40 |
---|
| 560 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 561 | set_namelist namelist_cfg ln_clobber .true. |
---|
| 562 | set_namelist namelist_cfg jpni 4 |
---|
| 563 | set_namelist namelist_cfg jpnj 4 |
---|
| 564 | set_namelist namelist_cfg jpnij 16 |
---|
| 565 | set_namelist namelist_top_cfg ln_trcdta .false. |
---|
| 566 | set_namelist namelist_top_cfg ln_diatrc .false. |
---|
[3520] | 567 | # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false |
---|
| 568 | # if not you need input files, and for tests is not necessary |
---|
[4147] | 569 | set_namelist namelist_pisces_cfg ln_presatm .false. |
---|
| 570 | set_namelist namelist_pisces_cfg ln_varpar .false. |
---|
| 571 | set_namelist namelist_pisces_cfg ln_dust .false. |
---|
| 572 | set_namelist namelist_pisces_cfg ln_solub .false. |
---|
| 573 | set_namelist namelist_pisces_cfg ln_river .false. |
---|
| 574 | set_namelist namelist_pisces_cfg ln_ndepo .false. |
---|
| 575 | set_namelist namelist_pisces_cfg ln_ironsed .false. |
---|
| 576 | set_namelist namelist_pisces_cfg ln_hydrofe .false. |
---|
[3680] | 577 | # put ln_pisdmp to false : no restoring to global mean value |
---|
[4147] | 578 | set_namelist namelist_pisces_cfg ln_pisdmp .false. |
---|
[4245] | 579 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 580 | set_xio_using_server iodef.xml true |
---|
| 581 | else |
---|
| 582 | set_xio_using_server iodef.xml false |
---|
| 583 | fi |
---|
[3520] | 584 | cd ${SETTE_DIR} |
---|
[4245] | 585 | . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[3520] | 586 | cd ${SETTE_DIR} |
---|
[3532] | 587 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
[3520] | 588 | |
---|
| 589 | cd ${SETTE_DIR} |
---|
| 590 | export TEST_NAME="REPRO_2_8" |
---|
[4252] | 591 | . ./prepare_exe_dir.sh |
---|
[3680] | 592 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 593 | NPROC=16 |
---|
[4245] | 594 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
[3520] | 595 | cd ${EXE_DIR} |
---|
[4147] | 596 | set_namelist namelist_cfg nn_it000 1 |
---|
| 597 | set_namelist namelist_cfg nn_itend 40 |
---|
| 598 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 599 | set_namelist namelist_cfg ln_clobber .true. |
---|
| 600 | set_namelist namelist_cfg jpni 2 |
---|
| 601 | set_namelist namelist_cfg jpnj 8 |
---|
| 602 | set_namelist namelist_cfg jpnij 16 |
---|
| 603 | set_namelist namelist_top_cfg ln_trcdta .false. |
---|
| 604 | set_namelist namelist_top_cfg ln_diatrc .false. |
---|
[3520] | 605 | # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false |
---|
| 606 | # if not you need input files, and for tests is not necessary |
---|
[4147] | 607 | set_namelist namelist_pisces_cfg ln_presatm .false. |
---|
| 608 | set_namelist namelist_pisces_cfg ln_varpar .false. |
---|
| 609 | set_namelist namelist_pisces_cfg ln_dust .false. |
---|
| 610 | set_namelist namelist_pisces_cfg ln_solub .false. |
---|
| 611 | set_namelist namelist_pisces_cfg ln_river .false. |
---|
| 612 | set_namelist namelist_pisces_cfg ln_ndepo .false. |
---|
| 613 | set_namelist namelist_pisces_cfg ln_ironsed .false. |
---|
| 614 | set_namelist namelist_pisces_cfg ln_hydrofe .false. |
---|
[3680] | 615 | # put ln_pisdmp to false : no restoring to global mean value |
---|
[4147] | 616 | set_namelist namelist_pisces_cfg ln_pisdmp .false. |
---|
[4245] | 617 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 618 | set_xio_using_server iodef.xml true |
---|
| 619 | else |
---|
| 620 | set_xio_using_server iodef.xml false |
---|
| 621 | fi |
---|
[3520] | 622 | cd ${SETTE_DIR} |
---|
[4245] | 623 | . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[3520] | 624 | cd ${SETTE_DIR} |
---|
| 625 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 626 | fi |
---|
| 627 | |
---|
[4796] | 628 | |
---|
| 629 | # TESTS FOR ORCA2_LIM3 CONFIGURATION |
---|
| 630 | if [ ${config} -eq 7 ] ; then |
---|
| 631 | ## Restartability tests for ORCA2_LIM3 |
---|
| 632 | export TEST_NAME="LONG" |
---|
| 633 | cd ${CONFIG_DIR} |
---|
| 634 | . ./makenemo -m ${CMP_NAM} -n ORCA2LIM3_LONG -r ORCA2_LIM3 -j 8 del_key ${DEL_KEYS} |
---|
| 635 | cd ${SETTE_DIR} |
---|
| 636 | . ./param.cfg |
---|
| 637 | . ./all_functions.sh |
---|
| 638 | . ./prepare_exe_dir.sh |
---|
| 639 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 640 | NPROC=4 |
---|
| 641 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
| 642 | cd ${EXE_DIR} |
---|
| 643 | set_namelist namelist_cfg cn_exp \"O2L3_LONG\" |
---|
| 644 | set_namelist namelist_cfg nn_it000 1 |
---|
| 645 | set_namelist namelist_cfg nn_itend 150 |
---|
| 646 | set_namelist namelist_cfg nn_stock 75 |
---|
| 647 | set_namelist namelist_cfg ln_clobber .true. |
---|
| 648 | set_namelist namelist_cfg nn_fwb 0 |
---|
| 649 | set_namelist namelist_cfg jpni 2 |
---|
| 650 | set_namelist namelist_cfg jpnj 2 |
---|
| 651 | set_namelist namelist_cfg jpnij 4 |
---|
| 652 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 653 | set_xio_using_server iodef.xml true |
---|
| 654 | else |
---|
| 655 | set_xio_using_server iodef.xml false |
---|
| 656 | fi |
---|
| 657 | cd ${SETTE_DIR} |
---|
| 658 | . ./prepare_job.sh input_ORCA2_LIM3.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
| 659 | |
---|
| 660 | cd ${SETTE_DIR} |
---|
| 661 | export TEST_NAME="SHORT" |
---|
| 662 | . ./prepare_exe_dir.sh |
---|
| 663 | cd ${EXE_DIR} |
---|
| 664 | set_namelist namelist_cfg cn_exp \"O2L3_SHORT\" |
---|
| 665 | set_namelist namelist_cfg nn_it000 76 |
---|
| 666 | set_namelist namelist_cfg nn_itend 150 |
---|
| 667 | set_namelist namelist_cfg nn_stock 75 |
---|
| 668 | set_namelist namelist_cfg ln_rstart .true. |
---|
| 669 | set_namelist namelist_cfg nn_rstctl 2 |
---|
| 670 | set_namelist namelist_cfg ln_clobber .true. |
---|
| 671 | set_namelist namelist_cfg nn_fwb 0 |
---|
| 672 | set_namelist namelist_cfg jpni 2 |
---|
| 673 | set_namelist namelist_cfg jpnj 2 |
---|
| 674 | set_namelist namelist_cfg jpnij 4 |
---|
| 675 | set_namelist namelist_cfg cn_ocerst_in \"O2L3_LONG_00000075_restart\" |
---|
| 676 | set_namelist namelist_ice_cfg cn_icerst_in \"O2L3_LONG_00000075_restart_ice\" |
---|
| 677 | for (( i=1; i<=$NPROC; i++)) ; do |
---|
| 678 | L_NPROC=$(( $i - 1 )) |
---|
| 679 | L_NPROC=`printf "%04d\n" ${L_NPROC}` |
---|
| 680 | ln -sf ../LONG/O2L3_LONG_00000075_restart_${L_NPROC}.nc . |
---|
| 681 | ln -sf ../LONG/O2L3_LONG_00000075_restart_ice_${L_NPROC}.nc . |
---|
| 682 | done |
---|
| 683 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 684 | set_xio_using_server iodef.xml true |
---|
| 685 | else |
---|
| 686 | set_xio_using_server iodef.xml false |
---|
| 687 | fi |
---|
| 688 | cd ${SETTE_DIR} |
---|
| 689 | . ./prepare_job.sh input_ORCA2_LIM3.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
| 690 | cd ${SETTE_DIR} |
---|
| 691 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 692 | fi |
---|
| 693 | |
---|
| 694 | if [ ${config} -eq 8 ] ; then |
---|
| 695 | ## Reproducibility tests for ORCA2_LIM3 |
---|
| 696 | export TEST_NAME="REPRO_4_4" |
---|
| 697 | cd ${CONFIG_DIR} |
---|
| 698 | . ./makenemo -m ${CMP_NAM} -n ORCA2LIM3_16 -r ORCA2_LIM3 -j 8 add_key "key_mpp_rep" del_key ${DEL_KEYS} |
---|
| 699 | cd ${SETTE_DIR} |
---|
| 700 | . ./param.cfg |
---|
| 701 | . ./all_functions.sh |
---|
| 702 | . ./prepare_exe_dir.sh |
---|
| 703 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 704 | NPROC=16 |
---|
| 705 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
| 706 | cd ${EXE_DIR} |
---|
| 707 | set_namelist namelist_cfg nn_it000 1 |
---|
| 708 | set_namelist namelist_cfg nn_itend 75 |
---|
| 709 | set_namelist namelist_cfg nn_fwb 0 |
---|
| 710 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 711 | set_namelist namelist_cfg ln_clobber .true. |
---|
| 712 | set_namelist namelist_cfg jpni 4 |
---|
| 713 | set_namelist namelist_cfg jpnj 4 |
---|
| 714 | set_namelist namelist_cfg jpnij 16 |
---|
| 715 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 716 | set_xio_using_server iodef.xml true |
---|
| 717 | else |
---|
| 718 | set_xio_using_server iodef.xml false |
---|
| 719 | fi |
---|
| 720 | cd ${SETTE_DIR} |
---|
| 721 | . ./prepare_job.sh input_ORCA2_LIM3.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
| 722 | cd ${SETTE_DIR} |
---|
| 723 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 724 | |
---|
| 725 | cd ${SETTE_DIR} |
---|
| 726 | export TEST_NAME="REPRO_2_8" |
---|
| 727 | . ./prepare_exe_dir.sh |
---|
| 728 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 729 | NPROC=16 |
---|
| 730 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
| 731 | cd ${EXE_DIR} |
---|
| 732 | set_namelist namelist_cfg nn_it000 1 |
---|
| 733 | set_namelist namelist_cfg nn_itend 75 |
---|
| 734 | set_namelist namelist_cfg ln_clobber .true. |
---|
| 735 | set_namelist namelist_cfg nn_fwb 0 |
---|
| 736 | set_namelist namelist_cfg jpni 2 |
---|
| 737 | set_namelist namelist_cfg jpnj 8 |
---|
| 738 | set_namelist namelist_cfg jpnij 16 |
---|
| 739 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 740 | set_xio_using_server iodef.xml true |
---|
| 741 | else |
---|
| 742 | set_xio_using_server iodef.xml false |
---|
| 743 | fi |
---|
| 744 | |
---|
| 745 | cd ${SETTE_DIR} |
---|
| 746 | . ./prepare_job.sh input_ORCA2_LIM3.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
| 747 | cd ${SETTE_DIR} |
---|
| 748 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 749 | fi |
---|
| 750 | |
---|
| 751 | |
---|
[3680] | 752 | # TESTS FOR AMM12 CONFIGURATION |
---|
[4796] | 753 | if [ ${config} -eq 9 ] ; then |
---|
[3532] | 754 | ## Restartability tests for AMM12 |
---|
| 755 | export TEST_NAME="LONG" |
---|
[4147] | 756 | cd ${CONFIG_DIR} |
---|
[4245] | 757 | . ./makenemo -m ${CMP_NAM} -n AMM12_LONG -r AMM12 -j 8 add_key "key_tide" del_key ${DEL_KEYS} |
---|
[3520] | 758 | cd ${SETTE_DIR} |
---|
[4252] | 759 | . ./param.cfg |
---|
| 760 | . ./all_functions.sh |
---|
| 761 | . ./prepare_exe_dir.sh |
---|
[3520] | 762 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 763 | NPROC=32 |
---|
[4245] | 764 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
[3520] | 765 | cd ${EXE_DIR} |
---|
[4147] | 766 | set_namelist namelist_cfg nn_it000 1 |
---|
[4252] | 767 | set_namelist namelist_cfg nn_itend 576 |
---|
| 768 | set_namelist namelist_cfg nn_stock 288 |
---|
[4147] | 769 | set_namelist namelist_cfg nn_fwb 0 |
---|
| 770 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 771 | set_namelist namelist_cfg ln_clobber .true. |
---|
| 772 | set_namelist namelist_cfg jpni 8 |
---|
| 773 | set_namelist namelist_cfg jpnj 4 |
---|
| 774 | set_namelist namelist_cfg jpnij 32 |
---|
[4245] | 775 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 776 | set_xio_using_server iodef.xml true |
---|
| 777 | else |
---|
| 778 | set_xio_using_server iodef.xml false |
---|
| 779 | fi |
---|
[3520] | 780 | cd ${SETTE_DIR} |
---|
[4245] | 781 | . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[3520] | 782 | |
---|
| 783 | cd ${SETTE_DIR} |
---|
[3532] | 784 | export TEST_NAME="SHORT" |
---|
[4379] | 785 | . ./prepare_exe_dir.sh |
---|
[3520] | 786 | cd ${EXE_DIR} |
---|
[4252] | 787 | set_namelist namelist_cfg nn_it000 289 |
---|
| 788 | set_namelist namelist_cfg nn_itend 576 |
---|
[4147] | 789 | set_namelist namelist_cfg nn_fwb 0 |
---|
| 790 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 791 | set_namelist namelist_cfg ln_clobber .true. |
---|
| 792 | set_namelist namelist_cfg jpni 8 |
---|
| 793 | set_namelist namelist_cfg jpnj 4 |
---|
| 794 | set_namelist namelist_cfg jpnij 32 |
---|
| 795 | set_namelist namelist_cfg ln_rstart .true. |
---|
| 796 | set_namelist namelist_cfg nn_rstctl 2 |
---|
[4252] | 797 | set_namelist namelist_cfg cn_ocerst_in \"AMM12_00000288_restart_oce_out\" |
---|
| 798 | set_namelist namelist_cfg nn_date0 20120102 |
---|
[3537] | 799 | for (( i=1; i<=$NPROC; i++)) ; do |
---|
| 800 | L_NPROC=$(( $i - 1 )) |
---|
| 801 | L_NPROC=`printf "%04d\n" ${L_NPROC}` |
---|
[4252] | 802 | ln -sf ../LONG/AMM12_00000288_restart_oce_out_${L_NPROC}.nc . |
---|
[3537] | 803 | done |
---|
[4245] | 804 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 805 | set_xio_using_server iodef.xml true |
---|
| 806 | else |
---|
| 807 | set_xio_using_server iodef.xml false |
---|
| 808 | fi |
---|
[3520] | 809 | cd ${SETTE_DIR} |
---|
[4245] | 810 | . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[3520] | 811 | cd ${SETTE_DIR} |
---|
[3532] | 812 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
[3520] | 813 | fi |
---|
| 814 | |
---|
[4796] | 815 | if [ ${config} -eq 10 ] ; then |
---|
[3680] | 816 | ## Reproducibility tests for AMM12 |
---|
| 817 | export TEST_NAME="REPRO_8_4" |
---|
[4147] | 818 | cd ${CONFIG_DIR} |
---|
[4245] | 819 | . ./makenemo -m ${CMP_NAM} -n AMM12_32 -r AMM12 -j 8 add_key "key_mpp_rep key_tide" del_key ${DEL_KEYS} |
---|
[3520] | 820 | cd ${SETTE_DIR} |
---|
[4252] | 821 | . ./param.cfg |
---|
| 822 | . ./all_functions.sh |
---|
| 823 | . ./prepare_exe_dir.sh |
---|
[3520] | 824 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 825 | NPROC=32 |
---|
[4245] | 826 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
[3520] | 827 | cd ${EXE_DIR} |
---|
[4147] | 828 | set_namelist namelist_cfg nn_it000 1 |
---|
| 829 | set_namelist namelist_cfg nn_itend 576 |
---|
| 830 | set_namelist namelist_cfg nn_fwb 0 |
---|
| 831 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 832 | set_namelist namelist_cfg ln_clobber .true. |
---|
| 833 | set_namelist namelist_cfg jpni 8 |
---|
| 834 | set_namelist namelist_cfg jpnj 4 |
---|
| 835 | set_namelist namelist_cfg jpnij 32 |
---|
[4245] | 836 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 837 | set_xio_using_server iodef.xml true |
---|
| 838 | else |
---|
| 839 | set_xio_using_server iodef.xml false |
---|
| 840 | fi |
---|
[3520] | 841 | cd ${SETTE_DIR} |
---|
[4245] | 842 | . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[3520] | 843 | cd ${SETTE_DIR} |
---|
| 844 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 845 | |
---|
| 846 | cd ${SETTE_DIR} |
---|
[3680] | 847 | export TEST_NAME="REPRO_4_8" |
---|
[4252] | 848 | . ./prepare_exe_dir.sh |
---|
[3520] | 849 | cd ${EXE_DIR} |
---|
[4147] | 850 | set_namelist namelist_cfg nn_it000 1 |
---|
| 851 | set_namelist namelist_cfg nn_itend 576 |
---|
| 852 | set_namelist namelist_cfg nn_fwb 0 |
---|
| 853 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 854 | set_namelist namelist_cfg ln_clobber .true. |
---|
| 855 | set_namelist namelist_cfg jpni 4 |
---|
| 856 | set_namelist namelist_cfg jpnj 8 |
---|
| 857 | set_namelist namelist_cfg jpnij 32 |
---|
[4245] | 858 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 859 | set_xio_using_server iodef.xml true |
---|
| 860 | else |
---|
| 861 | set_xio_using_server iodef.xml false |
---|
| 862 | fi |
---|
[3520] | 863 | cd ${SETTE_DIR} |
---|
[4245] | 864 | . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[3520] | 865 | cd ${SETTE_DIR} |
---|
[3532] | 866 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
[3520] | 867 | fi |
---|
| 868 | |
---|
| 869 | |
---|
[4147] | 870 | # TESTS FOR ORCA2_SAS_LIM CONFIGURATION |
---|
[4796] | 871 | if [ ${config} -eq 11 ] ; then |
---|
[4147] | 872 | ## Restartability tests for SAS |
---|
| 873 | export TEST_NAME="LONG" |
---|
| 874 | cd ${CONFIG_DIR} |
---|
[4260] | 875 | . ./makenemo -m ${CMP_NAM} -n SAS_LONG -r ORCA2_SAS_LIM -j 8 add_key "key_mpp_rep" del_key ${DEL_KEYS} |
---|
[4147] | 876 | cd ${SETTE_DIR} |
---|
[4252] | 877 | . ./param.cfg |
---|
| 878 | . ./all_functions.sh |
---|
| 879 | . ./prepare_exe_dir.sh |
---|
[4147] | 880 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 881 | NPROC=32 |
---|
| 882 | \rm $JOB_FILE |
---|
| 883 | cd ${EXE_DIR} |
---|
| 884 | set_namelist namelist_cfg cn_exp \"SAS\" |
---|
| 885 | set_namelist namelist_cfg nn_it000 1 |
---|
| 886 | set_namelist namelist_cfg nn_itend 100 |
---|
| 887 | set_namelist namelist_cfg nn_stock 50 |
---|
| 888 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 889 | set_namelist namelist_cfg ln_clobber .true. |
---|
[4316] | 890 | set_namelist namelist_cfg nn_fwb 0 |
---|
[4147] | 891 | set_namelist namelist_cfg jpni 8 |
---|
| 892 | set_namelist namelist_cfg jpnj 4 |
---|
| 893 | set_namelist namelist_cfg jpnij 32 |
---|
[4245] | 894 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 895 | set_xio_using_server iodef.xml true |
---|
| 896 | else |
---|
| 897 | set_xio_using_server iodef.xml false |
---|
| 898 | fi |
---|
[4147] | 899 | cd ${SETTE_DIR} |
---|
[4245] | 900 | . ./prepare_job.sh input_SAS.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[4147] | 901 | |
---|
| 902 | cd ${SETTE_DIR} |
---|
| 903 | export TEST_NAME="SHORT" |
---|
[4252] | 904 | . ./prepare_exe_dir.sh |
---|
[4147] | 905 | cd ${EXE_DIR} |
---|
| 906 | set_namelist namelist_cfg cn_exp \"SAS\" |
---|
| 907 | set_namelist namelist_cfg nn_it000 51 |
---|
| 908 | set_namelist namelist_cfg nn_itend 100 |
---|
| 909 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 910 | set_namelist namelist_cfg ln_clobber .true. |
---|
[4316] | 911 | set_namelist namelist_cfg nn_fwb 0 |
---|
[4147] | 912 | set_namelist namelist_cfg jpni 8 |
---|
| 913 | set_namelist namelist_cfg jpnj 4 |
---|
| 914 | set_namelist namelist_cfg jpnij 32 |
---|
| 915 | set_namelist namelist_cfg nn_rstctl 2 |
---|
| 916 | set_namelist namelist_cfg cn_ocerst_in \"SAS_00000050_restart\" |
---|
| 917 | for (( i=1; i<=$NPROC; i++)) ; do |
---|
| 918 | L_NPROC=$(( $i - 1 )) |
---|
| 919 | L_NPROC=`printf "%04d\n" ${L_NPROC}` |
---|
| 920 | ln -sf ../LONG/SAS_00000050_restart_${L_NPROC}.nc . |
---|
| 921 | done |
---|
[4245] | 922 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 923 | set_xio_using_server iodef.xml true |
---|
| 924 | else |
---|
| 925 | set_xio_using_server iodef.xml false |
---|
| 926 | fi |
---|
[4147] | 927 | cd ${SETTE_DIR} |
---|
[4245] | 928 | . ./prepare_job.sh input_SAS.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[4147] | 929 | cd ${SETTE_DIR} |
---|
| 930 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 931 | fi |
---|
| 932 | |
---|
[4796] | 933 | if [ ${config} -eq 12 ] ; then |
---|
[4147] | 934 | ## Reproducibility tests for ORCA2_SAS_LIM |
---|
| 935 | export TEST_NAME="REPRO_8_4" |
---|
| 936 | cd ${CONFIG_DIR} |
---|
[4245] | 937 | . ./makenemo -m ${CMP_NAM} -n SAS_32 -r ORCA2_SAS_LIM -j 8 add_key "key_mpp_rep" del_key ${DEL_KEYS} |
---|
[4147] | 938 | cd ${SETTE_DIR} |
---|
[4252] | 939 | . ./param.cfg |
---|
| 940 | . ./all_functions.sh |
---|
| 941 | . ./prepare_exe_dir.sh |
---|
[4147] | 942 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 943 | NPROC=32 |
---|
| 944 | \rm ${JOB_FILE} |
---|
| 945 | cd ${EXE_DIR} |
---|
| 946 | set_namelist namelist_cfg cn_exp \"SAS\" |
---|
| 947 | set_namelist namelist_cfg nn_it000 51 |
---|
| 948 | set_namelist namelist_cfg nn_itend 100 |
---|
| 949 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 950 | set_namelist namelist_cfg ln_clobber .true. |
---|
[4316] | 951 | set_namelist namelist_cfg nn_fwb 0 |
---|
[4147] | 952 | set_namelist namelist_cfg jpni 8 |
---|
| 953 | set_namelist namelist_cfg jpnj 4 |
---|
| 954 | set_namelist namelist_cfg jpnij 32 |
---|
[4245] | 955 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 956 | set_xio_using_server iodef.xml true |
---|
| 957 | else |
---|
| 958 | set_xio_using_server iodef.xml false |
---|
| 959 | fi |
---|
[4147] | 960 | cd ${SETTE_DIR} |
---|
[4245] | 961 | . ./prepare_job.sh input_SAS.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[4147] | 962 | cd ${SETTE_DIR} |
---|
| 963 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 964 | cd ${SETTE_DIR} |
---|
| 965 | export TEST_NAME="REPRO_4_8" |
---|
[4252] | 966 | . ./prepare_exe_dir.sh |
---|
[4147] | 967 | cd ${EXE_DIR} |
---|
| 968 | set_namelist namelist_cfg cn_exp \"SAS\" |
---|
| 969 | set_namelist namelist_cfg nn_it000 51 |
---|
| 970 | set_namelist namelist_cfg nn_itend 100 |
---|
| 971 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 972 | set_namelist namelist_cfg ln_clobber .true. |
---|
[4316] | 973 | set_namelist namelist_cfg nn_fwb 0 |
---|
[4147] | 974 | set_namelist namelist_cfg jpni 4 |
---|
| 975 | set_namelist namelist_cfg jpnj 8 |
---|
| 976 | set_namelist namelist_cfg jpnij 32 |
---|
[4245] | 977 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 978 | set_xio_using_server iodef.xml true |
---|
| 979 | else |
---|
| 980 | set_xio_using_server iodef.xml false |
---|
| 981 | fi |
---|
[4147] | 982 | cd ${SETTE_DIR} |
---|
[4245] | 983 | . ./prepare_job.sh input_SAS.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[4147] | 984 | cd ${SETTE_DIR} |
---|
| 985 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 986 | fi |
---|
[4990] | 987 | # TESTS FOR ISOMIP CONFIGURATION |
---|
| 988 | if [ ${config} -eq 13 ] ; then |
---|
| 989 | ## Restartability tests for ISOMIP |
---|
| 990 | export TEST_NAME="LONG" |
---|
| 991 | cd ${CONFIG_DIR} |
---|
[5621] | 992 | . ./makenemo -m ${CMP_NAM} -n ISOMIP_LONG -u ISOMIP_r5151_UKMO_ISF -j 8 del_key ${DEL_KEYS} |
---|
[4990] | 993 | cd ${SETTE_DIR} |
---|
| 994 | . ./param.cfg |
---|
| 995 | . ./all_functions.sh |
---|
| 996 | . ./prepare_exe_dir.sh |
---|
| 997 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 998 | NPROC=4 |
---|
| 999 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
| 1000 | cd ${EXE_DIR} |
---|
| 1001 | set_namelist namelist_cfg cn_exp \"ISOMIP_LONG\" |
---|
| 1002 | set_namelist namelist_cfg nn_it000 1 |
---|
| 1003 | set_namelist namelist_cfg nn_itend 96 |
---|
| 1004 | set_namelist namelist_cfg nn_stock 48 |
---|
| 1005 | set_namelist namelist_cfg ln_clobber .true. |
---|
| 1006 | set_namelist namelist_cfg nn_fwb 0 |
---|
| 1007 | set_namelist namelist_cfg jpni 2 |
---|
| 1008 | set_namelist namelist_cfg jpnj 2 |
---|
| 1009 | set_namelist namelist_cfg jpnij 4 |
---|
| 1010 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 1011 | set_xio_using_server iodef.xml true |
---|
| 1012 | else |
---|
| 1013 | set_xio_using_server iodef.xml false |
---|
| 1014 | fi |
---|
| 1015 | cd ${SETTE_DIR} |
---|
| 1016 | . ./prepare_job.sh input_ISOMIP.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[4147] | 1017 | |
---|
[4990] | 1018 | cd ${SETTE_DIR} |
---|
| 1019 | export TEST_NAME="SHORT" |
---|
| 1020 | . ./prepare_exe_dir.sh |
---|
| 1021 | cd ${EXE_DIR} |
---|
| 1022 | set_namelist namelist_cfg cn_exp \"ISOMIP_SHORT\" |
---|
| 1023 | set_namelist namelist_cfg nn_it000 49 |
---|
| 1024 | set_namelist namelist_cfg nn_itend 96 |
---|
| 1025 | set_namelist namelist_cfg nn_stock 48 |
---|
| 1026 | set_namelist namelist_cfg ln_rstart .true. |
---|
| 1027 | set_namelist namelist_cfg nn_rstctl 2 |
---|
| 1028 | set_namelist namelist_cfg ln_clobber .true. |
---|
| 1029 | set_namelist namelist_cfg nn_fwb 0 |
---|
| 1030 | set_namelist namelist_cfg jpni 2 |
---|
| 1031 | set_namelist namelist_cfg jpnj 2 |
---|
| 1032 | set_namelist namelist_cfg jpnij 4 |
---|
| 1033 | set_namelist namelist_cfg cn_ocerst_in \"ISOMIP_LONG_00000048_restart\" |
---|
| 1034 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 1035 | set_xio_using_server iodef.xml true |
---|
| 1036 | else |
---|
| 1037 | set_xio_using_server iodef.xml false |
---|
| 1038 | fi |
---|
| 1039 | for (( i=1; i<=$NPROC; i++)) ; do |
---|
| 1040 | L_NPROC=$(( $i - 1 )) |
---|
| 1041 | L_NPROC=`printf "%04d\n" ${L_NPROC}` |
---|
| 1042 | ln -sf ../LONG/ISOMIP_LONG_00000048_restart_${L_NPROC}.nc . |
---|
| 1043 | done |
---|
| 1044 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 1045 | set_xio_using_server iodef.xml true |
---|
| 1046 | else |
---|
| 1047 | set_xio_using_server iodef.xml false |
---|
| 1048 | fi |
---|
| 1049 | cd ${SETTE_DIR} |
---|
| 1050 | . ./prepare_job.sh input_ISOMIP.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
| 1051 | cd ${SETTE_DIR} |
---|
| 1052 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 1053 | fi |
---|
| 1054 | if [ ${config} -eq 14 ] ; then |
---|
| 1055 | ## Reproducibility tests for ISOMIP |
---|
| 1056 | export TEST_NAME="REPRO_1_4" |
---|
| 1057 | cd ${CONFIG_DIR} |
---|
[5621] | 1058 | . ./makenemo -m ${CMP_NAM} -n ISOMIP_4 -u ISOMIP_r5151_UKMO_ISF -j 8 add_key "key_mpp_rep" del_key ${DEL_KEYS} |
---|
[4990] | 1059 | cd ${SETTE_DIR} |
---|
| 1060 | . ./param.cfg |
---|
| 1061 | . ./all_functions.sh |
---|
| 1062 | . ./prepare_exe_dir.sh |
---|
| 1063 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 1064 | NPROC=4 |
---|
| 1065 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
| 1066 | cd ${EXE_DIR} |
---|
| 1067 | set_namelist namelist_cfg cn_exp \"ISOMIP_14\" |
---|
| 1068 | set_namelist namelist_cfg nn_it000 1 |
---|
| 1069 | set_namelist namelist_cfg nn_itend 48 |
---|
| 1070 | set_namelist namelist_cfg nn_fwb 0 |
---|
| 1071 | set_namelist namelist_cfg nn_bench 0 |
---|
| 1072 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 1073 | set_namelist namelist_cfg ln_clobber .true. |
---|
| 1074 | set_namelist namelist_cfg jpni 1 |
---|
| 1075 | set_namelist namelist_cfg jpnj 4 |
---|
| 1076 | set_namelist namelist_cfg jpnij 4 |
---|
| 1077 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 1078 | set_xio_using_server iodef.xml true |
---|
| 1079 | else |
---|
| 1080 | set_xio_using_server iodef.xml false |
---|
| 1081 | fi |
---|
| 1082 | cd ${SETTE_DIR} |
---|
| 1083 | . ./prepare_job.sh input_ISOMIP.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
| 1084 | cd ${SETTE_DIR} |
---|
| 1085 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 1086 | |
---|
| 1087 | cd ${SETTE_DIR} |
---|
| 1088 | export TEST_NAME="REPRO_2_2" |
---|
| 1089 | . ./prepare_exe_dir.sh |
---|
| 1090 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 1091 | NPROC=4 |
---|
| 1092 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
| 1093 | cd ${EXE_DIR} |
---|
| 1094 | set_namelist namelist_cfg cn_exp \"ISOMIP_22\" |
---|
| 1095 | set_namelist namelist_cfg nn_it000 1 |
---|
| 1096 | set_namelist namelist_cfg nn_itend 48 |
---|
| 1097 | set_namelist namelist_cfg nn_fwb 0 |
---|
| 1098 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 1099 | set_namelist namelist_cfg ln_clobber .true. |
---|
| 1100 | set_namelist namelist_cfg jpni 2 |
---|
| 1101 | set_namelist namelist_cfg jpnj 2 |
---|
| 1102 | set_namelist namelist_cfg jpnij 4 |
---|
| 1103 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 1104 | set_xio_using_server iodef.xml true |
---|
| 1105 | else |
---|
| 1106 | set_xio_using_server iodef.xml false |
---|
| 1107 | fi |
---|
| 1108 | cd ${SETTE_DIR} |
---|
| 1109 | . ./prepare_job.sh input_ISOMIP.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
| 1110 | cd ${SETTE_DIR} |
---|
| 1111 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 1112 | |
---|
| 1113 | fi |
---|
| 1114 | |
---|
| 1115 | ## Test assimilation interface code, OBS and ASM for reproducibility |
---|
| 1116 | ## Restartability not tested (ASM code not restartable while increments are being applied) |
---|
| 1117 | if [ ${config} -eq 15 ] ; then |
---|
| 1118 | ## Reproducibility tests for ORCA2_LIM_OBS |
---|
| 1119 | export TEST_NAME="REPRO_4_4" |
---|
| 1120 | cd ${CONFIG_DIR} |
---|
| 1121 | . ./makenemo -m ${CMP_NAM} -n ORCA2_LIM_OBS -r ORCA2_LIM -j 8 add_key "key_mpp_rep key_diaobs key_asminc" del_key ${DEL_KEYS} |
---|
| 1122 | cd ${SETTE_DIR} |
---|
| 1123 | . ./param.cfg |
---|
| 1124 | . ./all_functions.sh |
---|
| 1125 | . ./prepare_exe_dir.sh |
---|
| 1126 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 1127 | NPROC=16 |
---|
| 1128 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
| 1129 | cd ${EXE_DIR} |
---|
| 1130 | set_namelist namelist_cfg nn_it000 1 |
---|
| 1131 | set_namelist namelist_cfg nn_itend 75 |
---|
| 1132 | set_namelist namelist_cfg nn_fwb 0 |
---|
| 1133 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 1134 | set_namelist namelist_cfg ln_clobber .true. |
---|
| 1135 | set_namelist namelist_cfg jpni 4 |
---|
| 1136 | set_namelist namelist_cfg jpnj 4 |
---|
| 1137 | set_namelist namelist_cfg jpnij 16 |
---|
| 1138 | set_namelist namelist_cfg ln_t3d .true. |
---|
| 1139 | set_namelist namelist_cfg ln_s3d .true. |
---|
| 1140 | set_namelist namelist_cfg ln_profb .true. |
---|
| 1141 | set_namelist namelist_cfg ln_sst .true. |
---|
| 1142 | set_namelist namelist_cfg ln_sstfb .true. |
---|
| 1143 | set_namelist namelist_cfg ln_sla .true. |
---|
| 1144 | set_namelist namelist_cfg ln_slafb .true. |
---|
| 1145 | set_namelist namelist_cfg ln_seaice .false. |
---|
| 1146 | set_namelist namelist_cfg ln_bkgwri .true. |
---|
| 1147 | set_namelist namelist_cfg ln_trainc .true. |
---|
| 1148 | set_namelist namelist_cfg ln_dyninc .true. |
---|
| 1149 | set_namelist namelist_cfg ln_sshinc .true. |
---|
| 1150 | set_namelist namelist_cfg ln_asmiau .true. |
---|
| 1151 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 1152 | set_xio_using_server iodef.xml true |
---|
| 1153 | else |
---|
| 1154 | set_xio_using_server iodef.xml false |
---|
| 1155 | fi |
---|
| 1156 | cd ${SETTE_DIR} |
---|
| 1157 | . ./prepare_job.sh input_ORCA2_LIM_OBS.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
| 1158 | cd ${SETTE_DIR} |
---|
| 1159 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 1160 | |
---|
| 1161 | cd ${SETTE_DIR} |
---|
| 1162 | export TEST_NAME="REPRO_2_8" |
---|
| 1163 | . ./prepare_exe_dir.sh |
---|
| 1164 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 1165 | NPROC=16 |
---|
| 1166 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
| 1167 | cd ${EXE_DIR} |
---|
| 1168 | set_namelist namelist_cfg nn_it000 1 |
---|
| 1169 | set_namelist namelist_cfg nn_itend 75 |
---|
| 1170 | set_namelist namelist_cfg nn_fwb 0 |
---|
| 1171 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 1172 | set_namelist namelist_cfg ln_clobber .true. |
---|
| 1173 | set_namelist namelist_cfg jpni 2 |
---|
| 1174 | set_namelist namelist_cfg jpnj 8 |
---|
| 1175 | set_namelist namelist_cfg jpnij 16 |
---|
| 1176 | set_namelist namelist_cfg ln_t3d .true. |
---|
| 1177 | set_namelist namelist_cfg ln_s3d .true. |
---|
| 1178 | set_namelist namelist_cfg ln_profb .true. |
---|
| 1179 | set_namelist namelist_cfg ln_sst .true. |
---|
| 1180 | set_namelist namelist_cfg ln_sstfb .true. |
---|
| 1181 | set_namelist namelist_cfg ln_sla .true. |
---|
| 1182 | set_namelist namelist_cfg ln_slafb .true. |
---|
| 1183 | set_namelist namelist_cfg ln_seaice .false. |
---|
| 1184 | set_namelist namelist_cfg ln_bkgwri .true. |
---|
| 1185 | set_namelist namelist_cfg ln_trainc .true. |
---|
| 1186 | set_namelist namelist_cfg ln_dyninc .true. |
---|
| 1187 | set_namelist namelist_cfg ln_sshinc .true. |
---|
| 1188 | set_namelist namelist_cfg ln_asmiau .true. |
---|
| 1189 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 1190 | set_xio_using_server iodef.xml true |
---|
| 1191 | else |
---|
| 1192 | set_xio_using_server iodef.xml false |
---|
| 1193 | fi |
---|
| 1194 | cd ${SETTE_DIR} |
---|
| 1195 | . ./prepare_job.sh input_ORCA2_LIM_OBS.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
| 1196 | cd ${SETTE_DIR} |
---|
| 1197 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 1198 | fi |
---|
[4245] | 1199 | # TEST FOR ORCA2_LIM_AGRIF : simple test of running AGRIF (no restartability neither reproducibility tests) |
---|
[4990] | 1200 | if [ ${config} -eq 16 ] ; then |
---|
[4245] | 1201 | ## ORCA2_LIM with Agulhas AGRIF zoom in MPI |
---|
| 1202 | export TEST_NAME="SHORT" |
---|
| 1203 | cd ${CONFIG_DIR} |
---|
| 1204 | . ./makenemo -m ${CMP_NAM} -n ORCA2AGUL_1_2 -r ORCA2_LIM -j 8 add_key "key_mpp_rep key_agrif" del_key "key_zdftmx" del_key ${DEL_KEYS} |
---|
| 1205 | cd ${SETTE_DIR} |
---|
[4252] | 1206 | . ./param.cfg |
---|
| 1207 | . ./all_functions.sh |
---|
| 1208 | . ./prepare_exe_dir.sh |
---|
[4245] | 1209 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 1210 | NPROC=2 |
---|
| 1211 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
| 1212 | cd ${EXE_DIR} |
---|
| 1213 | set_namelist namelist_cfg nn_it000 1 |
---|
| 1214 | set_namelist namelist_cfg nn_itend 75 |
---|
| 1215 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 1216 | set_namelist namelist_cfg ln_clobber .true. |
---|
[4316] | 1217 | set_namelist namelist_cfg nn_fwb 0 |
---|
[4245] | 1218 | set_namelist namelist_cfg jpni 1 |
---|
| 1219 | set_namelist namelist_cfg jpnj 2 |
---|
| 1220 | set_namelist namelist_cfg jpnij 2 |
---|
[5956] | 1221 | # |
---|
[4245] | 1222 | set_namelist 1_namelist_cfg nn_it000 1 |
---|
| 1223 | set_namelist 1_namelist_cfg nn_itend 150 |
---|
| 1224 | set_namelist 1_namelist_cfg ln_ctl .false. |
---|
| 1225 | set_namelist 1_namelist_cfg ln_clobber .true. |
---|
[5956] | 1226 | |
---|
[4245] | 1227 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 1228 | set_xio_using_server iodef.xml true |
---|
| 1229 | else |
---|
| 1230 | set_xio_using_server iodef.xml false |
---|
| 1231 | fi |
---|
| 1232 | cd ${SETTE_DIR} |
---|
| 1233 | . ./prepare_job.sh input_ORCA2_LIM_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
| 1234 | cd ${SETTE_DIR} |
---|
| 1235 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 1236 | fi |
---|
| 1237 | |
---|
[5956] | 1238 | # test code corruption with AGRIF |
---|
| 1239 | # Compile and run with or without AGRIF ORCA2_LIM |
---|
| 1240 | if [ ${config} -eq 17 ] ; then |
---|
| 1241 | # First run same as 16 but without zoom |
---|
| 1242 | export TEST_NAME="SHORT_NOZOOM" |
---|
| 1243 | cd ${CONFIG_DIR} |
---|
| 1244 | . ./makenemo -m ${CMP_NAM} -n ORCA2AGUL_2_2 -r ORCA2_LIM -j 8 add_key "key_mpp_rep key_agrif" del_key "key_zdftmx" del_key ${DEL_KEYS} |
---|
| 1245 | cd ${SETTE_DIR} |
---|
| 1246 | . ./param.cfg |
---|
| 1247 | . ./all_functions.sh |
---|
| 1248 | . ./prepare_exe_dir.sh |
---|
| 1249 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 1250 | NPROC=4 |
---|
| 1251 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
| 1252 | cd ${EXE_DIR} |
---|
| 1253 | set_namelist namelist_cfg nn_it000 1 |
---|
| 1254 | set_namelist namelist_cfg nn_itend 75 |
---|
| 1255 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 1256 | set_namelist namelist_cfg ln_clobber .true. |
---|
| 1257 | set_namelist namelist_cfg nn_fwb 0 |
---|
| 1258 | set_namelist namelist_cfg jpni 2 |
---|
| 1259 | set_namelist namelist_cfg jpnj 2 |
---|
| 1260 | set_namelist namelist_cfg jpnij 4 |
---|
| 1261 | # |
---|
| 1262 | # Set the number of fine grids to zero: |
---|
| 1263 | sed -i "1s/.*/0/" ${EXE_DIR}/AGRIF_FixedGrids.in |
---|
| 1264 | |
---|
| 1265 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 1266 | set_xio_using_server iodef.xml true |
---|
| 1267 | else |
---|
| 1268 | set_xio_using_server iodef.xml false |
---|
| 1269 | fi |
---|
| 1270 | cd ${SETTE_DIR} |
---|
| 1271 | . ./prepare_job.sh input_ORCA2_LIM_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
| 1272 | cd ${SETTE_DIR} |
---|
| 1273 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 1274 | |
---|
| 1275 | export TEST_NAME="SHORT_NOAGRIF" |
---|
| 1276 | cd ${CONFIG_DIR} |
---|
| 1277 | . ./makenemo -m ${CMP_NAM} -n ORCA2AGUL_2_2_NAG -r ORCA2_LIM -j 8 add_key "key_mpp_rep" del_key "key_zdftmx" del_key ${DEL_KEYS} |
---|
| 1278 | cd ${SETTE_DIR} |
---|
| 1279 | . ./param.cfg |
---|
| 1280 | . ./all_functions.sh |
---|
| 1281 | . ./prepare_exe_dir.sh |
---|
| 1282 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 1283 | NPROC=4 |
---|
| 1284 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
| 1285 | cd ${EXE_DIR} |
---|
| 1286 | set_namelist namelist_cfg nn_it000 1 |
---|
| 1287 | set_namelist namelist_cfg nn_itend 75 |
---|
| 1288 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 1289 | set_namelist namelist_cfg ln_clobber .true. |
---|
| 1290 | set_namelist namelist_cfg nn_fwb 0 |
---|
| 1291 | set_namelist namelist_cfg jpni 2 |
---|
| 1292 | set_namelist namelist_cfg jpnj 2 |
---|
| 1293 | set_namelist namelist_cfg jpnij 4 |
---|
| 1294 | # |
---|
| 1295 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 1296 | set_xio_using_server iodef.xml true |
---|
| 1297 | else |
---|
| 1298 | set_xio_using_server iodef.xml false |
---|
| 1299 | fi |
---|
| 1300 | cd ${SETTE_DIR} |
---|
| 1301 | . ./prepare_job.sh input_ORCA2_LIM_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
| 1302 | cd ${SETTE_DIR} |
---|
| 1303 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 1304 | |
---|
| 1305 | fi |
---|
| 1306 | |
---|
| 1307 | ## Restartability tests for ORCA2_LIM_AGRIF |
---|
| 1308 | if [ ${config} -eq 18 ] ; then |
---|
| 1309 | export TEST_NAME="LONG" |
---|
| 1310 | cd ${CONFIG_DIR} |
---|
| 1311 | . ./makenemo -m ${CMP_NAM} -n ORCA2AGUL_LONG -r ORCA2_LIM -j 8 add_key "key_mpp_rep key_agrif" del_key "key_zdftmx" del_key ${DEL_KEYS} |
---|
| 1312 | cd ${SETTE_DIR} |
---|
| 1313 | . ./param.cfg |
---|
| 1314 | . ./all_functions.sh |
---|
| 1315 | . ./prepare_exe_dir.sh |
---|
| 1316 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 1317 | NPROC=4 |
---|
| 1318 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
| 1319 | cd ${EXE_DIR} |
---|
| 1320 | set_namelist namelist_cfg cn_exp \"O2LP_LONG\" |
---|
| 1321 | set_namelist namelist_cfg nn_it000 1 |
---|
| 1322 | set_namelist namelist_cfg nn_itend 150 |
---|
| 1323 | set_namelist namelist_cfg nn_stock 75 |
---|
| 1324 | set_namelist namelist_cfg ln_clobber .true. |
---|
| 1325 | set_namelist namelist_cfg nn_fwb 0 |
---|
| 1326 | set_namelist namelist_cfg jpni 2 |
---|
| 1327 | set_namelist namelist_cfg jpnj 2 |
---|
| 1328 | set_namelist namelist_cfg jpnij 4 |
---|
| 1329 | # |
---|
| 1330 | set_namelist 1_namelist_cfg cn_exp \"O2LP_LONG\" |
---|
| 1331 | set_namelist 1_namelist_cfg nn_it000 1 |
---|
| 1332 | set_namelist 1_namelist_cfg nn_itend 300 |
---|
| 1333 | set_namelist 1_namelist_cfg nn_stock 150 |
---|
| 1334 | set_namelist 1_namelist_cfg ln_ctl .false. |
---|
| 1335 | set_namelist 1_namelist_cfg ln_clobber .true. |
---|
| 1336 | # |
---|
| 1337 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 1338 | set_xio_using_server iodef.xml true |
---|
| 1339 | else |
---|
| 1340 | set_xio_using_server iodef.xml false |
---|
| 1341 | fi |
---|
| 1342 | cd ${SETTE_DIR} |
---|
| 1343 | . ./prepare_job.sh input_ORCA2_LIM_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
| 1344 | |
---|
| 1345 | cd ${SETTE_DIR} |
---|
| 1346 | export TEST_NAME="SHORT" |
---|
| 1347 | . ./prepare_exe_dir.sh |
---|
| 1348 | cd ${EXE_DIR} |
---|
| 1349 | set_namelist namelist_cfg cn_exp \"O2LP_SHORT\" |
---|
| 1350 | set_namelist namelist_cfg nn_it000 76 |
---|
| 1351 | set_namelist namelist_cfg nn_itend 150 |
---|
| 1352 | set_namelist namelist_cfg nn_stock 75 |
---|
| 1353 | set_namelist namelist_cfg ln_rstart .true. |
---|
| 1354 | set_namelist namelist_cfg nn_rstctl 2 |
---|
| 1355 | set_namelist namelist_cfg ln_clobber .true. |
---|
| 1356 | set_namelist namelist_cfg nn_fwb 0 |
---|
| 1357 | set_namelist namelist_cfg jpni 2 |
---|
| 1358 | set_namelist namelist_cfg jpnj 2 |
---|
| 1359 | |
---|
| 1360 | set_namelist namelist_cfg jpnij 4 |
---|
| 1361 | set_namelist 1_namelist_cfg cn_exp \"O2LP_SHORT\" |
---|
| 1362 | set_namelist 1_namelist_cfg nn_it000 151 |
---|
| 1363 | set_namelist 1_namelist_cfg nn_itend 300 |
---|
| 1364 | set_namelist 1_namelist_cfg nn_stock 150 |
---|
| 1365 | set_namelist 1_namelist_cfg ln_rstart .true. |
---|
| 1366 | set_namelist 1_namelist_cfg nn_rstctl 2 |
---|
| 1367 | set_namelist 1_namelist_cfg ln_clobber .true. |
---|
| 1368 | set_namelist namelist_cfg cn_ocerst_in \"O2LP_LONG_00000075_restart\" |
---|
| 1369 | set_namelist namelist_ice_cfg cn_icerst_in \"O2LP_LONG_00000075_restart_ice\" |
---|
| 1370 | |
---|
| 1371 | set_namelist 1_namelist_cfg cn_ocerst_in \"O2LP_LONG_00000150_restart\" |
---|
| 1372 | |
---|
| 1373 | for (( i=1; i<=$NPROC; i++)) ; do |
---|
| 1374 | L_NPROC=$(( $i - 1 )) |
---|
| 1375 | L_NPROC=`printf "%04d\n" ${L_NPROC}` |
---|
| 1376 | ln -sf ../LONG/O2LP_LONG_00000075_restart_${L_NPROC}.nc . |
---|
| 1377 | ln -sf ../LONG/O2LP_LONG_00000075_restart_ice_${L_NPROC}.nc . |
---|
| 1378 | ln -sf ../LONG/1_O2LP_LONG_00000150_restart_${L_NPROC}.nc . |
---|
| 1379 | done |
---|
| 1380 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 1381 | set_xio_using_server iodef.xml true |
---|
| 1382 | else |
---|
| 1383 | set_xio_using_server iodef.xml false |
---|
| 1384 | fi |
---|
| 1385 | cd ${SETTE_DIR} |
---|
| 1386 | . ./prepare_job.sh input_ORCA2_LIM_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
| 1387 | cd ${SETTE_DIR} |
---|
| 1388 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 1389 | fi |
---|
| 1390 | |
---|
| 1391 | ## Reproducibility tests for ORCA2_LIM_AGRIF |
---|
| 1392 | if [ ${config} -eq 19 ] ; then |
---|
| 1393 | export TEST_NAME="REPRO_4_4" |
---|
| 1394 | cd ${CONFIG_DIR} |
---|
| 1395 | . ./makenemo -m ${CMP_NAM} -n ORCA2AGUL_16 -r ORCA2_LIM -j 8 add_key "key_mpp_rep key_agrif" del_key "key_zdftmx" del_key ${DEL_KEYS} |
---|
| 1396 | cd ${SETTE_DIR} |
---|
| 1397 | . ./param.cfg |
---|
| 1398 | . ./all_functions.sh |
---|
| 1399 | . ./prepare_exe_dir.sh |
---|
| 1400 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 1401 | NPROC=16 |
---|
| 1402 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
| 1403 | cd ${EXE_DIR} |
---|
| 1404 | set_namelist namelist_cfg nn_it000 1 |
---|
| 1405 | set_namelist namelist_cfg nn_itend 75 |
---|
| 1406 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 1407 | set_namelist namelist_cfg ln_clobber .true. |
---|
| 1408 | set_namelist namelist_cfg nn_fwb 0 |
---|
| 1409 | set_namelist namelist_cfg jpni 4 |
---|
| 1410 | set_namelist namelist_cfg jpnj 4 |
---|
| 1411 | set_namelist namelist_cfg jpnij 16 |
---|
| 1412 | # |
---|
| 1413 | set_namelist 1_namelist_cfg nn_it000 1 |
---|
| 1414 | set_namelist 1_namelist_cfg nn_itend 150 |
---|
| 1415 | set_namelist 1_namelist_cfg ln_ctl .false. |
---|
| 1416 | set_namelist 1_namelist_cfg ln_clobber .true. |
---|
| 1417 | |
---|
| 1418 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 1419 | set_xio_using_server iodef.xml true |
---|
| 1420 | else |
---|
| 1421 | set_xio_using_server iodef.xml false |
---|
| 1422 | fi |
---|
| 1423 | cd ${SETTE_DIR} |
---|
| 1424 | . ./prepare_job.sh input_ORCA2_LIM_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
| 1425 | cd ${SETTE_DIR} |
---|
| 1426 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 1427 | |
---|
| 1428 | cd ${SETTE_DIR} |
---|
| 1429 | export TEST_NAME="REPRO_2_8" |
---|
| 1430 | . ./prepare_exe_dir.sh |
---|
| 1431 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 1432 | NPROC=16 |
---|
| 1433 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
| 1434 | cd ${EXE_DIR} |
---|
| 1435 | set_namelist namelist_cfg nn_it000 1 |
---|
| 1436 | set_namelist namelist_cfg nn_itend 75 |
---|
| 1437 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 1438 | set_namelist namelist_cfg ln_clobber .true. |
---|
| 1439 | set_namelist namelist_cfg nn_fwb 0 |
---|
| 1440 | set_namelist namelist_cfg jpni 2 |
---|
| 1441 | set_namelist namelist_cfg jpnj 8 |
---|
| 1442 | set_namelist namelist_cfg jpnij 16 |
---|
| 1443 | # |
---|
| 1444 | set_namelist 1_namelist_cfg nn_it000 1 |
---|
| 1445 | set_namelist 1_namelist_cfg nn_itend 150 |
---|
| 1446 | set_namelist 1_namelist_cfg ln_ctl .false. |
---|
| 1447 | set_namelist 1_namelist_cfg ln_clobber .true. |
---|
| 1448 | |
---|
| 1449 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 1450 | set_xio_using_server iodef.xml true |
---|
| 1451 | else |
---|
| 1452 | set_xio_using_server iodef.xml false |
---|
| 1453 | fi |
---|
| 1454 | cd ${SETTE_DIR} |
---|
| 1455 | . ./prepare_job.sh input_ORCA2_LIM_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
| 1456 | cd ${SETTE_DIR} |
---|
| 1457 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 1458 | fi |
---|
| 1459 | |
---|
[3520] | 1460 | done |
---|