[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 |
---|
[7646] | 90 | COMPILER=X64_ADA_DEBUG |
---|
[5398] | 91 | export BATCH_COMMAND_PAR="llsubmit" |
---|
[4245] | 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) |
---|
[6460] | 125 | MAIN_DIR=$(dirname $SETTE_DIR) |
---|
[3520] | 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: |
---|
[7646] | 135 | # GYRE : 1 & 2 |
---|
| 136 | # ORCA2_LIM3 : 3 & 4 |
---|
| 137 | # ORCA2_LIM3_PISCES : 5 & 6 |
---|
| 138 | # ORCA2_OFF_PISCES : 7 & 8 |
---|
| 139 | # AMM12 : 9 & 10 |
---|
| 140 | # SAS : 11 fos SAS there is no solver so is useless to test REPRO |
---|
| 141 | # ISOMIP : 12 & 13 |
---|
| 142 | # ORCA2_LIM3_OBS : 14 |
---|
| 143 | # ORCA2_AGRIF_LIM : 15 & 16 |
---|
| 144 | # 17 & 18 |
---|
[4147] | 145 | |
---|
[7646] | 146 | for config in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
---|
[5836] | 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 |
---|
[7646] | 161 | NPROC=32 |
---|
[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. |
---|
[7646] | 169 | set_namelist namelist_cfg ln_linssh .true. |
---|
| 170 | set_namelist namelist_cfg ln_read_cfg .false. |
---|
[4318] | 171 | set_namelist namelist_cfg nn_fwb 0 |
---|
[7646] | 172 | set_namelist namelist_cfg jpni 4 |
---|
| 173 | set_namelist namelist_cfg jpnj 8 |
---|
| 174 | set_namelist namelist_cfg jpnij 32 |
---|
[4245] | 175 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 176 | set_xio_using_server iodef.xml true |
---|
| 177 | else |
---|
| 178 | set_xio_using_server iodef.xml false |
---|
| 179 | fi |
---|
| 180 | cd ${SETTE_DIR} |
---|
| 181 | . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[3520] | 182 | |
---|
| 183 | cd ${SETTE_DIR} |
---|
| 184 | export TEST_NAME="SHORT" |
---|
[4252] | 185 | . ./prepare_exe_dir.sh |
---|
[3520] | 186 | cd ${EXE_DIR} |
---|
[4147] | 187 | set_namelist namelist_cfg cn_exp \"GYRE_SHORT\" |
---|
| 188 | set_namelist namelist_cfg nn_it000 61 |
---|
| 189 | set_namelist namelist_cfg nn_itend 120 |
---|
| 190 | set_namelist namelist_cfg nn_stock 60 |
---|
| 191 | set_namelist namelist_cfg ln_rstart .true. |
---|
| 192 | set_namelist namelist_cfg nn_rstctl 2 |
---|
| 193 | set_namelist namelist_cfg ln_clobber .true. |
---|
[7646] | 194 | set_namelist namelist_cfg ln_linssh .true. |
---|
| 195 | set_namelist namelist_cfg ln_read_cfg .false. |
---|
[4316] | 196 | set_namelist namelist_cfg nn_fwb 0 |
---|
[7646] | 197 | set_namelist namelist_cfg jpni 4 |
---|
| 198 | set_namelist namelist_cfg jpnj 8 |
---|
| 199 | set_namelist namelist_cfg jpnij 32 |
---|
[4147] | 200 | set_namelist namelist_cfg cn_ocerst_in \"GYRE_LONG_00000060_restart\" |
---|
[4245] | 201 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 202 | set_xio_using_server iodef.xml true |
---|
| 203 | else |
---|
| 204 | set_xio_using_server iodef.xml false |
---|
| 205 | fi |
---|
[3537] | 206 | for (( i=1; i<=$NPROC; i++)) ; do |
---|
| 207 | L_NPROC=$(( $i - 1 )) |
---|
| 208 | L_NPROC=`printf "%04d\n" ${L_NPROC}` |
---|
[3680] | 209 | ln -sf ../LONG/GYRE_LONG_00000060_restart_${L_NPROC}.nc . |
---|
[3537] | 210 | done |
---|
[4245] | 211 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 212 | set_xio_using_server iodef.xml true |
---|
| 213 | else |
---|
| 214 | set_xio_using_server iodef.xml false |
---|
| 215 | fi |
---|
[3520] | 216 | cd ${SETTE_DIR} |
---|
[4245] | 217 | . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[3520] | 218 | cd ${SETTE_DIR} |
---|
[3532] | 219 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
[3520] | 220 | fi |
---|
| 221 | |
---|
| 222 | if [ ${config} -eq 2 ] ; then |
---|
[3680] | 223 | ## Reproducibility tests for GYRE |
---|
[7646] | 224 | export TEST_NAME="REPRO_4_8" |
---|
[4147] | 225 | cd ${CONFIG_DIR} |
---|
[7646] | 226 | . ./makenemo -m ${CMP_NAM} -n GYRE_32 -r GYRE -j 8 del_key ${DEL_KEYS} |
---|
[3520] | 227 | cd ${SETTE_DIR} |
---|
[4252] | 228 | . ./param.cfg |
---|
| 229 | . ./all_functions.sh |
---|
| 230 | . ./prepare_exe_dir.sh |
---|
[3520] | 231 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
[7646] | 232 | NPROC=32 |
---|
[4245] | 233 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
[3520] | 234 | cd ${EXE_DIR} |
---|
[7646] | 235 | set_namelist namelist_cfg cn_exp \"GYRE_48\" |
---|
[4147] | 236 | set_namelist namelist_cfg nn_it000 1 |
---|
| 237 | set_namelist namelist_cfg nn_itend 60 |
---|
| 238 | set_namelist namelist_cfg nn_fwb 0 |
---|
| 239 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 240 | set_namelist namelist_cfg ln_clobber .true. |
---|
[7646] | 241 | set_namelist namelist_cfg ln_linssh .true. |
---|
| 242 | set_namelist namelist_cfg ln_read_cfg .false. |
---|
| 243 | set_namelist namelist_cfg jpni 4 |
---|
| 244 | set_namelist namelist_cfg jpnj 8 |
---|
| 245 | set_namelist namelist_cfg jpnij 32 |
---|
[4245] | 246 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 247 | set_xio_using_server iodef.xml true |
---|
| 248 | else |
---|
| 249 | set_xio_using_server iodef.xml false |
---|
| 250 | fi |
---|
[3520] | 251 | cd ${SETTE_DIR} |
---|
[4245] | 252 | . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[3520] | 253 | cd ${SETTE_DIR} |
---|
| 254 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 255 | |
---|
| 256 | cd ${SETTE_DIR} |
---|
[7646] | 257 | export TEST_NAME="REPRO_8_4" |
---|
[4252] | 258 | . ./prepare_exe_dir.sh |
---|
[3680] | 259 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
[7646] | 260 | NPROC=32 |
---|
[4245] | 261 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
[3520] | 262 | cd ${EXE_DIR} |
---|
[7646] | 263 | set_namelist namelist_cfg cn_exp \"GYRE_84\" |
---|
[4147] | 264 | set_namelist namelist_cfg nn_it000 1 |
---|
| 265 | set_namelist namelist_cfg nn_itend 60 |
---|
| 266 | set_namelist namelist_cfg nn_fwb 0 |
---|
| 267 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 268 | set_namelist namelist_cfg ln_clobber .true. |
---|
[7646] | 269 | set_namelist namelist_cfg ln_linssh .true. |
---|
| 270 | set_namelist namelist_cfg ln_read_cfg .false. |
---|
| 271 | set_namelist namelist_cfg jpni 8 |
---|
| 272 | set_namelist namelist_cfg jpnj 4 |
---|
| 273 | set_namelist namelist_cfg jpnij 32 |
---|
[4245] | 274 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 275 | set_xio_using_server iodef.xml true |
---|
| 276 | else |
---|
| 277 | set_xio_using_server iodef.xml false |
---|
| 278 | fi |
---|
[3520] | 279 | cd ${SETTE_DIR} |
---|
[4245] | 280 | . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[3520] | 281 | cd ${SETTE_DIR} |
---|
| 282 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
[3532] | 283 | |
---|
[3520] | 284 | fi |
---|
| 285 | |
---|
[7646] | 286 | # TESTS FOR ORCA2_LIM3 CONFIGURATION |
---|
[3520] | 287 | if [ ${config} -eq 3 ] ; then |
---|
[7646] | 288 | ## Restartability tests for ORCA2_LIM3 |
---|
[3520] | 289 | export TEST_NAME="LONG" |
---|
[4147] | 290 | cd ${CONFIG_DIR} |
---|
[7646] | 291 | . ./makenemo -m ${CMP_NAM} -n ORCA2LIM3_LONG -r ORCA2_LIM3 -j 8 del_key ${DEL_KEYS} |
---|
[3520] | 292 | cd ${SETTE_DIR} |
---|
[4252] | 293 | . ./param.cfg |
---|
| 294 | . ./all_functions.sh |
---|
| 295 | . ./prepare_exe_dir.sh |
---|
[3520] | 296 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
[7646] | 297 | NPROC=4 |
---|
[4245] | 298 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
[3520] | 299 | cd ${EXE_DIR} |
---|
[7646] | 300 | set_namelist namelist_cfg cn_exp \"O2L3_LONG\" |
---|
[4147] | 301 | set_namelist namelist_cfg nn_it000 1 |
---|
| 302 | set_namelist namelist_cfg nn_itend 150 |
---|
| 303 | set_namelist namelist_cfg nn_stock 75 |
---|
| 304 | set_namelist namelist_cfg ln_clobber .true. |
---|
[7646] | 305 | set_namelist namelist_cfg ln_read_cfg .true. |
---|
| 306 | set_namelist namelist_cfg ln_linssh .false. |
---|
| 307 | set_namelist namelist_cfg ln_icebergs .true. |
---|
[4316] | 308 | set_namelist namelist_cfg nn_fwb 0 |
---|
[4147] | 309 | set_namelist namelist_cfg jpni 2 |
---|
[7646] | 310 | set_namelist namelist_cfg jpnj 2 |
---|
| 311 | set_namelist namelist_cfg jpnij 4 |
---|
| 312 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 313 | set_xio_using_server iodef.xml true |
---|
| 314 | else |
---|
| 315 | set_xio_using_server iodef.xml false |
---|
| 316 | fi |
---|
| 317 | cd ${SETTE_DIR} |
---|
| 318 | . ./prepare_job.sh input_ORCA2_LIM3.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
| 319 | |
---|
| 320 | cd ${SETTE_DIR} |
---|
| 321 | export TEST_NAME="SHORT" |
---|
| 322 | . ./prepare_exe_dir.sh |
---|
| 323 | cd ${EXE_DIR} |
---|
| 324 | set_namelist namelist_cfg cn_exp \"O2L3_SHORT\" |
---|
| 325 | set_namelist namelist_cfg nn_it000 76 |
---|
| 326 | set_namelist namelist_cfg nn_itend 150 |
---|
| 327 | set_namelist namelist_cfg nn_stock 75 |
---|
| 328 | set_namelist namelist_cfg ln_rstart .true. |
---|
| 329 | set_namelist namelist_cfg nn_rstctl 2 |
---|
| 330 | set_namelist namelist_cfg ln_clobber .true. |
---|
| 331 | set_namelist namelist_cfg ln_read_cfg .true. |
---|
| 332 | set_namelist namelist_cfg ln_linssh .false. |
---|
| 333 | set_namelist namelist_cfg ln_icebergs .true. |
---|
| 334 | set_namelist namelist_cfg nn_fwb 0 |
---|
| 335 | set_namelist namelist_cfg jpni 2 |
---|
| 336 | set_namelist namelist_cfg jpnj 2 |
---|
| 337 | set_namelist namelist_cfg jpnij 4 |
---|
| 338 | set_namelist namelist_cfg cn_ocerst_in \"O2L3_LONG_00000075_restart\" |
---|
| 339 | set_namelist namelist_ice_cfg cn_icerst_in \"O2L3_LONG_00000075_restart_ice\" |
---|
| 340 | for (( i=1; i<=$NPROC; i++)) ; do |
---|
| 341 | L_NPROC=$(( $i - 1 )) |
---|
| 342 | L_NPROC=`printf "%04d\n" ${L_NPROC}` |
---|
| 343 | ln -sf ../LONG/O2L3_LONG_00000075_restart_${L_NPROC}.nc . |
---|
| 344 | ln -sf ../LONG/O2L3_LONG_00000075_restart_ice_${L_NPROC}.nc . |
---|
| 345 | ln -sf ../LONG/O2L3_LONG_icebergs_00000075_restart_${L_NPROC}.nc O2L3_LONG_00000075_restart_icebergs_${L_NPROC}.nc |
---|
| 346 | done |
---|
| 347 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 348 | set_xio_using_server iodef.xml true |
---|
| 349 | else |
---|
| 350 | set_xio_using_server iodef.xml false |
---|
| 351 | fi |
---|
| 352 | cd ${SETTE_DIR} |
---|
| 353 | . ./prepare_job.sh input_ORCA2_LIM3.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
| 354 | cd ${SETTE_DIR} |
---|
| 355 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 356 | fi |
---|
| 357 | |
---|
| 358 | if [ ${config} -eq 4 ] ; then |
---|
| 359 | ## Reproducibility tests for ORCA2_LIM3 |
---|
| 360 | export TEST_NAME="REPRO_8_4" |
---|
| 361 | cd ${CONFIG_DIR} |
---|
| 362 | . ./makenemo -m ${CMP_NAM} -n ORCA2LIM3_32 -r ORCA2_LIM3 -j 8 del_key ${DEL_KEYS} |
---|
| 363 | cd ${SETTE_DIR} |
---|
| 364 | . ./param.cfg |
---|
| 365 | . ./all_functions.sh |
---|
| 366 | . ./prepare_exe_dir.sh |
---|
| 367 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 368 | NPROC=32 |
---|
| 369 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
| 370 | cd ${EXE_DIR} |
---|
| 371 | set_namelist namelist_cfg nn_it000 1 |
---|
| 372 | set_namelist namelist_cfg nn_itend 75 |
---|
| 373 | set_namelist namelist_cfg nn_fwb 0 |
---|
| 374 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 375 | set_namelist namelist_cfg ln_clobber .true. |
---|
| 376 | set_namelist namelist_cfg ln_read_cfg .true. |
---|
| 377 | set_namelist namelist_cfg ln_linssh .false. |
---|
| 378 | set_namelist namelist_cfg ln_icebergs .true. |
---|
| 379 | set_namelist namelist_cfg jpni 8 |
---|
[5836] | 380 | set_namelist namelist_cfg jpnj 4 |
---|
[7646] | 381 | set_namelist namelist_cfg jpnij 32 |
---|
| 382 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 383 | set_xio_using_server iodef.xml true |
---|
| 384 | else |
---|
| 385 | set_xio_using_server iodef.xml false |
---|
| 386 | fi |
---|
| 387 | cd ${SETTE_DIR} |
---|
| 388 | . ./prepare_job.sh input_ORCA2_LIM3.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
| 389 | cd ${SETTE_DIR} |
---|
| 390 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 391 | |
---|
| 392 | |
---|
| 393 | cd ${SETTE_DIR} |
---|
| 394 | export TEST_NAME="REPRO_4_8" |
---|
| 395 | . ./prepare_exe_dir.sh |
---|
| 396 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 397 | NPROC=32 |
---|
| 398 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
| 399 | cd ${EXE_DIR} |
---|
| 400 | set_namelist namelist_cfg nn_it000 1 |
---|
| 401 | set_namelist namelist_cfg nn_itend 75 |
---|
| 402 | set_namelist namelist_cfg ln_clobber .true. |
---|
| 403 | set_namelist namelist_cfg ln_read_cfg .true. |
---|
| 404 | set_namelist namelist_cfg ln_linssh .false. |
---|
| 405 | set_namelist namelist_cfg ln_icebergs .true. |
---|
| 406 | set_namelist namelist_cfg nn_fwb 0 |
---|
| 407 | set_namelist namelist_cfg jpni 4 |
---|
| 408 | set_namelist namelist_cfg jpnj 8 |
---|
| 409 | set_namelist namelist_cfg jpnij 32 |
---|
| 410 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 411 | set_xio_using_server iodef.xml true |
---|
| 412 | else |
---|
| 413 | set_xio_using_server iodef.xml false |
---|
| 414 | fi |
---|
| 415 | |
---|
| 416 | cd ${SETTE_DIR} |
---|
| 417 | . ./prepare_job.sh input_ORCA2_LIM3.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
| 418 | cd ${SETTE_DIR} |
---|
| 419 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 420 | fi |
---|
| 421 | |
---|
| 422 | # TESTS FOR ORCA2_LIM3_PISCES CONFIGURATION |
---|
| 423 | if [ ${config} -eq 5 ] ; then |
---|
| 424 | ## Restartability tests for ORCA2_LIM3_PISCES |
---|
| 425 | export TEST_NAME="LONG" |
---|
| 426 | cd ${CONFIG_DIR} |
---|
| 427 | . ./makenemo -m ${CMP_NAM} -n ORCA2LIM3PIS_LONG -r ORCA2_LIM3_PISCES -j 8 del_key ${DEL_KEYS} |
---|
| 428 | cd ${SETTE_DIR} |
---|
| 429 | . ./param.cfg |
---|
| 430 | . ./all_functions.sh |
---|
| 431 | . ./prepare_exe_dir.sh |
---|
| 432 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 433 | NPROC=32 |
---|
| 434 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
| 435 | cd ${EXE_DIR} |
---|
| 436 | set_namelist namelist_cfg cn_exp \"O2L3P_LONG\" |
---|
| 437 | set_namelist namelist_cfg nn_it000 1 |
---|
| 438 | set_namelist namelist_cfg nn_itend 150 |
---|
| 439 | set_namelist namelist_cfg nn_stock 75 |
---|
| 440 | set_namelist namelist_cfg ln_clobber .true. |
---|
| 441 | set_namelist namelist_cfg ln_read_cfg .true. |
---|
| 442 | set_namelist namelist_cfg ln_linssh .false. |
---|
| 443 | set_namelist namelist_cfg nn_fwb 0 |
---|
| 444 | set_namelist namelist_cfg jpni 4 |
---|
| 445 | set_namelist namelist_cfg jpnj 8 |
---|
| 446 | set_namelist namelist_cfg jpnij 32 |
---|
[4147] | 447 | set_namelist namelist_top_cfg ln_trcdta .false. |
---|
[3520] | 448 | # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false |
---|
| 449 | # if not you need input files, and for tests is not necessary |
---|
[4147] | 450 | set_namelist namelist_pisces_cfg ln_presatm .false. |
---|
| 451 | set_namelist namelist_pisces_cfg ln_varpar .false. |
---|
| 452 | set_namelist namelist_pisces_cfg ln_dust .false. |
---|
| 453 | set_namelist namelist_pisces_cfg ln_solub .false. |
---|
| 454 | set_namelist namelist_pisces_cfg ln_river .false. |
---|
| 455 | set_namelist namelist_pisces_cfg ln_ndepo .false. |
---|
| 456 | set_namelist namelist_pisces_cfg ln_ironsed .false. |
---|
[7646] | 457 | set_namelist namelist_pisces_cfg ln_ironice .false. |
---|
[4147] | 458 | set_namelist namelist_pisces_cfg ln_hydrofe .false. |
---|
[4245] | 459 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 460 | set_xio_using_server iodef.xml true |
---|
| 461 | else |
---|
| 462 | set_xio_using_server iodef.xml false |
---|
| 463 | fi |
---|
[3520] | 464 | cd ${SETTE_DIR} |
---|
[7646] | 465 | . ./prepare_job.sh input_ORCA2_LIM3_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[3532] | 466 | |
---|
| 467 | cd ${SETTE_DIR} |
---|
[3520] | 468 | export TEST_NAME="SHORT" |
---|
[4252] | 469 | . ./prepare_exe_dir.sh |
---|
[3520] | 470 | cd ${EXE_DIR} |
---|
[7646] | 471 | set_namelist namelist_cfg cn_exp \"O2L3P_SHORT\" |
---|
[4147] | 472 | set_namelist namelist_cfg nn_it000 76 |
---|
| 473 | set_namelist namelist_cfg nn_itend 150 |
---|
| 474 | set_namelist namelist_cfg nn_stock 75 |
---|
| 475 | set_namelist namelist_cfg ln_rstart .true. |
---|
| 476 | set_namelist namelist_cfg nn_rstctl 2 |
---|
| 477 | set_namelist namelist_cfg ln_clobber .true. |
---|
[7646] | 478 | set_namelist namelist_cfg ln_read_cfg .true. |
---|
| 479 | set_namelist namelist_cfg ln_linssh .false. |
---|
[4316] | 480 | set_namelist namelist_cfg nn_fwb 0 |
---|
[7646] | 481 | set_namelist namelist_cfg jpni 4 |
---|
| 482 | set_namelist namelist_cfg jpnj 8 |
---|
| 483 | set_namelist namelist_cfg jpnij 32 |
---|
[4147] | 484 | set_namelist namelist_top_cfg ln_rsttr .true. |
---|
| 485 | set_namelist namelist_top_cfg nn_rsttr 2 |
---|
[7646] | 486 | set_namelist namelist_cfg cn_ocerst_in \"O2L3P_LONG_00000075_restart\" |
---|
| 487 | set_namelist namelist_ice_cfg cn_icerst_in \"O2L3P_LONG_00000075_restart_ice\" |
---|
| 488 | set_namelist namelist_top_cfg cn_trcrst_in \"O2L3P_LONG_00000075_restart_trc\" |
---|
[3520] | 489 | # put ln_ironsed, ln_river, ln_ndepo, ln_dust |
---|
| 490 | # if not you need input files, and for tests is not necessary |
---|
[4147] | 491 | set_namelist namelist_pisces_cfg ln_presatm .false. |
---|
| 492 | set_namelist namelist_pisces_cfg ln_varpar .false. |
---|
| 493 | set_namelist namelist_pisces_cfg ln_dust .false. |
---|
| 494 | set_namelist namelist_pisces_cfg ln_solub .false. |
---|
| 495 | set_namelist namelist_pisces_cfg ln_river .false. |
---|
| 496 | set_namelist namelist_pisces_cfg ln_ndepo .false. |
---|
| 497 | set_namelist namelist_pisces_cfg ln_ironsed .false. |
---|
[7646] | 498 | set_namelist namelist_pisces_cfg ln_ironice .false. |
---|
[4147] | 499 | set_namelist namelist_pisces_cfg ln_hydrofe .false. |
---|
[3680] | 500 | # put ln_pisdmp to false : no restoring to global mean value |
---|
[4147] | 501 | set_namelist namelist_pisces_cfg ln_pisdmp .false. |
---|
[3537] | 502 | for (( i=1; i<=$NPROC; i++)) ; do |
---|
| 503 | L_NPROC=$(( $i - 1 )) |
---|
| 504 | L_NPROC=`printf "%04d\n" ${L_NPROC}` |
---|
[7646] | 505 | ln -sf ../LONG/O2L3P_LONG_00000075_restart_${L_NPROC}.nc . |
---|
| 506 | ln -sf ../LONG/O2L3P_LONG_00000075_restart_trc_${L_NPROC}.nc . |
---|
| 507 | ln -sf ../LONG/O2L3P_LONG_00000075_restart_ice_${L_NPROC}.nc . |
---|
[3537] | 508 | done |
---|
[4245] | 509 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 510 | set_xio_using_server iodef.xml true |
---|
| 511 | else |
---|
| 512 | set_xio_using_server iodef.xml false |
---|
| 513 | fi |
---|
[3520] | 514 | cd ${SETTE_DIR} |
---|
[7646] | 515 | . ./prepare_job.sh input_ORCA2_LIM3_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[3520] | 516 | cd ${SETTE_DIR} |
---|
[3532] | 517 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
[3520] | 518 | fi |
---|
| 519 | |
---|
[7646] | 520 | if [ ${config} -eq 6 ] ; then |
---|
| 521 | ## Reproducibility tests for ORCA2_LIM3_PISCES |
---|
| 522 | export TEST_NAME="REPRO_4_8" |
---|
[4147] | 523 | cd ${CONFIG_DIR} |
---|
[7646] | 524 | . ./makenemo -m ${CMP_NAM} -n ORCA2LIM3PIS_32 -r ORCA2_LIM3_PISCES -j 8 del_key ${DEL_KEYS} |
---|
[3520] | 525 | cd ${SETTE_DIR} |
---|
[4252] | 526 | . ./param.cfg |
---|
| 527 | . ./all_functions.sh |
---|
| 528 | . ./prepare_exe_dir.sh |
---|
[3520] | 529 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
[7646] | 530 | NPROC=32 |
---|
[4245] | 531 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
[3520] | 532 | cd ${EXE_DIR} |
---|
[4147] | 533 | set_namelist namelist_cfg nn_it000 1 |
---|
| 534 | set_namelist namelist_cfg nn_itend 75 |
---|
| 535 | set_namelist namelist_cfg nn_fwb 0 |
---|
| 536 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 537 | set_namelist namelist_cfg ln_clobber .true. |
---|
[7646] | 538 | set_namelist namelist_cfg ln_read_cfg .true. |
---|
| 539 | set_namelist namelist_cfg ln_linssh .false. |
---|
[4147] | 540 | set_namelist namelist_cfg jpni 4 |
---|
[7646] | 541 | set_namelist namelist_cfg jpnj 8 |
---|
| 542 | set_namelist namelist_cfg jpnij 32 |
---|
[4147] | 543 | set_namelist namelist_top_cfg ln_trcdta .false. |
---|
[3520] | 544 | # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false |
---|
| 545 | # if not you need input files, and for tests is not necessary |
---|
[4147] | 546 | set_namelist namelist_pisces_cfg ln_presatm .false. |
---|
| 547 | set_namelist namelist_pisces_cfg ln_varpar .false. |
---|
| 548 | set_namelist namelist_pisces_cfg ln_dust .false. |
---|
| 549 | set_namelist namelist_pisces_cfg ln_solub .false. |
---|
| 550 | set_namelist namelist_pisces_cfg ln_river .false. |
---|
| 551 | set_namelist namelist_pisces_cfg ln_ndepo .false. |
---|
| 552 | set_namelist namelist_pisces_cfg ln_ironsed .false. |
---|
[7646] | 553 | set_namelist namelist_pisces_cfg ln_ironice .false. |
---|
[4147] | 554 | set_namelist namelist_pisces_cfg ln_hydrofe .false. |
---|
[3680] | 555 | # put ln_pisdmp to false : no restoring to global mean value |
---|
[4147] | 556 | set_namelist namelist_pisces_cfg ln_pisdmp .false. |
---|
[4245] | 557 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 558 | set_xio_using_server iodef.xml true |
---|
| 559 | else |
---|
| 560 | set_xio_using_server iodef.xml false |
---|
| 561 | fi |
---|
[3520] | 562 | cd ${SETTE_DIR} |
---|
[7646] | 563 | . ./prepare_job.sh input_ORCA2_LIM3_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[3520] | 564 | cd ${SETTE_DIR} |
---|
[3532] | 565 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
[3520] | 566 | |
---|
| 567 | cd ${SETTE_DIR} |
---|
[7646] | 568 | export TEST_NAME="REPRO_8_4" |
---|
[4252] | 569 | . ./prepare_exe_dir.sh |
---|
[3680] | 570 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
[7646] | 571 | NPROC=32 |
---|
[4245] | 572 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
[3520] | 573 | cd ${EXE_DIR} |
---|
[4147] | 574 | set_namelist namelist_cfg nn_it000 1 |
---|
| 575 | set_namelist namelist_cfg nn_itend 75 |
---|
| 576 | set_namelist namelist_cfg ln_clobber .true. |
---|
[7646] | 577 | set_namelist namelist_cfg ln_read_cfg .true. |
---|
| 578 | set_namelist namelist_cfg ln_linssh .false. |
---|
[4316] | 579 | set_namelist namelist_cfg nn_fwb 0 |
---|
[7646] | 580 | set_namelist namelist_cfg jpni 8 |
---|
| 581 | set_namelist namelist_cfg jpnj 4 |
---|
| 582 | set_namelist namelist_cfg jpnij 32 |
---|
[4147] | 583 | set_namelist namelist_top_cfg ln_trcdta .false. |
---|
[3520] | 584 | # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false |
---|
| 585 | # if not you need input files, and for tests is not necessary |
---|
[4147] | 586 | set_namelist namelist_pisces_cfg ln_presatm .false. |
---|
| 587 | set_namelist namelist_pisces_cfg ln_varpar .false. |
---|
| 588 | set_namelist namelist_pisces_cfg ln_dust .false. |
---|
| 589 | set_namelist namelist_pisces_cfg ln_solub .false. |
---|
| 590 | set_namelist namelist_pisces_cfg ln_river .false. |
---|
| 591 | set_namelist namelist_pisces_cfg ln_ndepo .false. |
---|
| 592 | set_namelist namelist_pisces_cfg ln_ironsed .false. |
---|
[7646] | 593 | set_namelist namelist_pisces_cfg ln_ironice .false. |
---|
[4147] | 594 | set_namelist namelist_pisces_cfg ln_hydrofe .false. |
---|
[3680] | 595 | # put ln_pisdmp to false : no restoring to global mean value |
---|
[4147] | 596 | set_namelist namelist_pisces_cfg ln_pisdmp .false. |
---|
[4245] | 597 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 598 | set_xio_using_server iodef.xml true |
---|
| 599 | else |
---|
| 600 | set_xio_using_server iodef.xml false |
---|
| 601 | fi |
---|
[3520] | 602 | cd ${SETTE_DIR} |
---|
[7646] | 603 | . ./prepare_job.sh input_ORCA2_LIM3_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[3520] | 604 | cd ${SETTE_DIR} |
---|
| 605 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 606 | fi |
---|
| 607 | |
---|
| 608 | # TESTS FOR ORCA2_OFF_PISCES CONFIGURATION |
---|
[7646] | 609 | if [ ${config} -eq 7 ] ; then |
---|
[3520] | 610 | ## Restartability tests for ORCA2_OFF_PISCES |
---|
| 611 | export TEST_NAME="LONG" |
---|
[4147] | 612 | cd ${CONFIG_DIR} |
---|
[7646] | 613 | . ./makenemo -m ${CMP_NAM} -n ORCA2OFFPIS_LONG -r ORCA2_OFF_PISCES -j 8 del_key ${DEL_KEYS} |
---|
[3520] | 614 | cd ${SETTE_DIR} |
---|
[4252] | 615 | . ./param.cfg |
---|
| 616 | . ./all_functions.sh |
---|
| 617 | . ./prepare_exe_dir.sh |
---|
[3520] | 618 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
[7646] | 619 | NPROC=32 |
---|
[4245] | 620 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
[3520] | 621 | cd ${EXE_DIR} |
---|
[4147] | 622 | set_namelist namelist_cfg cn_exp \"OFFP_LONG\" |
---|
| 623 | set_namelist namelist_cfg nn_it000 1 |
---|
| 624 | set_namelist namelist_cfg nn_itend 40 |
---|
| 625 | set_namelist namelist_cfg nn_stock 20 |
---|
| 626 | set_namelist namelist_cfg ln_clobber .true. |
---|
[7646] | 627 | set_namelist namelist_cfg ln_read_cfg .true. |
---|
| 628 | set_namelist namelist_cfg ln_linssh .true. |
---|
| 629 | set_namelist namelist_cfg jpni 4 |
---|
| 630 | set_namelist namelist_cfg jpnj 8 |
---|
| 631 | set_namelist namelist_cfg jpnij 32 |
---|
[4147] | 632 | set_namelist namelist_top_cfg ln_trcdta .false. |
---|
[3520] | 633 | # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false |
---|
| 634 | # if not you need input files, and for tests is not necessary |
---|
[4147] | 635 | set_namelist namelist_pisces_cfg ln_presatm .false. |
---|
| 636 | set_namelist namelist_pisces_cfg ln_varpar .false. |
---|
| 637 | set_namelist namelist_pisces_cfg ln_dust .false. |
---|
| 638 | set_namelist namelist_pisces_cfg ln_solub .false. |
---|
| 639 | set_namelist namelist_pisces_cfg ln_river .false. |
---|
| 640 | set_namelist namelist_pisces_cfg ln_ndepo .false. |
---|
| 641 | set_namelist namelist_pisces_cfg ln_ironsed .false. |
---|
[7646] | 642 | set_namelist namelist_pisces_cfg ln_ironice .false. |
---|
[4147] | 643 | set_namelist namelist_pisces_cfg ln_hydrofe .false. |
---|
[3680] | 644 | # put ln_pisdmp to false : no restoring to global mean value |
---|
[4147] | 645 | set_namelist namelist_pisces_cfg ln_pisdmp .false. |
---|
[4245] | 646 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 647 | set_xio_using_server iodef.xml true |
---|
| 648 | else |
---|
| 649 | set_xio_using_server iodef.xml false |
---|
| 650 | fi |
---|
[3520] | 651 | cd ${SETTE_DIR} |
---|
[4245] | 652 | . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[3520] | 653 | |
---|
| 654 | cd ${SETTE_DIR} |
---|
| 655 | export TEST_NAME="SHORT" |
---|
[4252] | 656 | . ./prepare_exe_dir.sh |
---|
[3520] | 657 | cd ${EXE_DIR} |
---|
[4147] | 658 | set_namelist namelist_cfg cn_exp \"OFFP_SHORT\" |
---|
| 659 | set_namelist namelist_cfg nn_it000 21 |
---|
| 660 | set_namelist namelist_cfg nn_itend 40 |
---|
| 661 | set_namelist namelist_cfg nn_stock 20 |
---|
| 662 | set_namelist namelist_cfg ln_clobber .true. |
---|
[7646] | 663 | set_namelist namelist_cfg ln_read_cfg .true. |
---|
| 664 | set_namelist namelist_cfg ln_linssh .true. |
---|
| 665 | set_namelist namelist_cfg jpni 4 |
---|
| 666 | set_namelist namelist_cfg jpnj 8 |
---|
| 667 | set_namelist namelist_cfg jpnij 32 |
---|
[4147] | 668 | set_namelist namelist_top_cfg ln_rsttr .true. |
---|
| 669 | set_namelist namelist_top_cfg nn_rsttr 2 |
---|
| 670 | set_namelist namelist_top_cfg cn_trcrst_in \"OFFP_LONG_00000020_restart_trc\" |
---|
[3537] | 671 | for (( i=1; i<=$NPROC; i++)) ; do |
---|
| 672 | L_NPROC=$(( $i - 1 )) |
---|
| 673 | L_NPROC=`printf "%04d\n" ${L_NPROC}` |
---|
[3555] | 674 | ln -sf ../LONG/OFFP_LONG_00000020_restart_trc_${L_NPROC}.nc . |
---|
[3537] | 675 | done |
---|
[3520] | 676 | # put ln_ironsed, ln_river, ln_ndepo, ln_dust |
---|
| 677 | # if not you need input files, and for tests is not necessary |
---|
[4147] | 678 | set_namelist namelist_pisces_cfg ln_presatm .false. |
---|
| 679 | set_namelist namelist_pisces_cfg ln_varpar .false. |
---|
| 680 | set_namelist namelist_pisces_cfg ln_dust .false. |
---|
| 681 | set_namelist namelist_pisces_cfg ln_solub .false. |
---|
| 682 | set_namelist namelist_pisces_cfg ln_river .false. |
---|
| 683 | set_namelist namelist_pisces_cfg ln_ndepo .false. |
---|
| 684 | set_namelist namelist_pisces_cfg ln_ironsed .false. |
---|
[7646] | 685 | set_namelist namelist_pisces_cfg ln_ironice .false. |
---|
[4147] | 686 | set_namelist namelist_pisces_cfg ln_hydrofe .false. |
---|
[3680] | 687 | # put ln_pisdmp to false : no restoring to global mean value |
---|
[4147] | 688 | set_namelist namelist_pisces_cfg ln_pisdmp .false. |
---|
[4245] | 689 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 690 | set_xio_using_server iodef.xml true |
---|
| 691 | else |
---|
| 692 | set_xio_using_server iodef.xml false |
---|
| 693 | fi |
---|
[3520] | 694 | cd ${SETTE_DIR} |
---|
[4245] | 695 | . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[3520] | 696 | cd ${SETTE_DIR} |
---|
| 697 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 698 | fi |
---|
| 699 | |
---|
[7646] | 700 | if [ ${config} -eq 8 ] ; then |
---|
[3680] | 701 | ## Reproducibility tests for ORCA2_OFF_PISCES |
---|
[7646] | 702 | export TEST_NAME="REPRO_4_8" |
---|
[4147] | 703 | cd ${CONFIG_DIR} |
---|
[7646] | 704 | . ./makenemo -m ${CMP_NAM} -n ORCA2OFFPIS_32 -r ORCA2_OFF_PISCES -j 8 del_key ${DEL_KEYS} |
---|
[3520] | 705 | cd ${SETTE_DIR} |
---|
[4252] | 706 | . ./param.cfg |
---|
| 707 | . ./all_functions.sh |
---|
| 708 | . ./prepare_exe_dir.sh |
---|
[3520] | 709 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
[7646] | 710 | NPROC=32 |
---|
[4245] | 711 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
[3520] | 712 | cd ${EXE_DIR} |
---|
[4147] | 713 | set_namelist namelist_cfg nn_it000 1 |
---|
| 714 | set_namelist namelist_cfg nn_itend 40 |
---|
| 715 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 716 | set_namelist namelist_cfg ln_clobber .true. |
---|
[7646] | 717 | set_namelist namelist_cfg ln_read_cfg .true. |
---|
| 718 | set_namelist namelist_cfg ln_linssh .true. |
---|
[4147] | 719 | set_namelist namelist_cfg jpni 4 |
---|
[7646] | 720 | set_namelist namelist_cfg jpnj 8 |
---|
| 721 | set_namelist namelist_cfg jpnij 32 |
---|
[4147] | 722 | set_namelist namelist_top_cfg ln_trcdta .false. |
---|
[3520] | 723 | # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false |
---|
| 724 | # if not you need input files, and for tests is not necessary |
---|
[4147] | 725 | set_namelist namelist_pisces_cfg ln_presatm .false. |
---|
| 726 | set_namelist namelist_pisces_cfg ln_varpar .false. |
---|
| 727 | set_namelist namelist_pisces_cfg ln_dust .false. |
---|
| 728 | set_namelist namelist_pisces_cfg ln_solub .false. |
---|
| 729 | set_namelist namelist_pisces_cfg ln_river .false. |
---|
| 730 | set_namelist namelist_pisces_cfg ln_ndepo .false. |
---|
| 731 | set_namelist namelist_pisces_cfg ln_ironsed .false. |
---|
[7646] | 732 | set_namelist namelist_pisces_cfg ln_ironice .false. |
---|
[4147] | 733 | set_namelist namelist_pisces_cfg ln_hydrofe .false. |
---|
[3680] | 734 | # put ln_pisdmp to false : no restoring to global mean value |
---|
[4147] | 735 | set_namelist namelist_pisces_cfg ln_pisdmp .false. |
---|
[4245] | 736 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 737 | set_xio_using_server iodef.xml true |
---|
| 738 | else |
---|
| 739 | set_xio_using_server iodef.xml false |
---|
| 740 | fi |
---|
[3520] | 741 | cd ${SETTE_DIR} |
---|
[4245] | 742 | . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[3520] | 743 | cd ${SETTE_DIR} |
---|
[3532] | 744 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
[3520] | 745 | |
---|
| 746 | cd ${SETTE_DIR} |
---|
[7646] | 747 | export TEST_NAME="REPRO_8_4" |
---|
[4252] | 748 | . ./prepare_exe_dir.sh |
---|
[3680] | 749 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
[7646] | 750 | NPROC=32 |
---|
[4245] | 751 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
[3520] | 752 | cd ${EXE_DIR} |
---|
[4147] | 753 | set_namelist namelist_cfg nn_it000 1 |
---|
| 754 | set_namelist namelist_cfg nn_itend 40 |
---|
| 755 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 756 | set_namelist namelist_cfg ln_clobber .true. |
---|
[7646] | 757 | set_namelist namelist_cfg ln_read_cfg .true. |
---|
| 758 | set_namelist namelist_cfg ln_linssh .true. |
---|
| 759 | set_namelist namelist_cfg jpni 8 |
---|
| 760 | set_namelist namelist_cfg jpnj 4 |
---|
| 761 | set_namelist namelist_cfg jpnij 32 |
---|
[4147] | 762 | set_namelist namelist_top_cfg ln_trcdta .false. |
---|
[3520] | 763 | # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false |
---|
| 764 | # if not you need input files, and for tests is not necessary |
---|
[4147] | 765 | set_namelist namelist_pisces_cfg ln_presatm .false. |
---|
| 766 | set_namelist namelist_pisces_cfg ln_varpar .false. |
---|
| 767 | set_namelist namelist_pisces_cfg ln_dust .false. |
---|
| 768 | set_namelist namelist_pisces_cfg ln_solub .false. |
---|
| 769 | set_namelist namelist_pisces_cfg ln_river .false. |
---|
| 770 | set_namelist namelist_pisces_cfg ln_ndepo .false. |
---|
| 771 | set_namelist namelist_pisces_cfg ln_ironsed .false. |
---|
[7646] | 772 | set_namelist namelist_pisces_cfg ln_ironice .false. |
---|
[4147] | 773 | set_namelist namelist_pisces_cfg ln_hydrofe .false. |
---|
[3680] | 774 | # put ln_pisdmp to false : no restoring to global mean value |
---|
[4147] | 775 | set_namelist namelist_pisces_cfg ln_pisdmp .false. |
---|
[4245] | 776 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 777 | set_xio_using_server iodef.xml true |
---|
| 778 | else |
---|
| 779 | set_xio_using_server iodef.xml false |
---|
| 780 | fi |
---|
[3520] | 781 | cd ${SETTE_DIR} |
---|
[4245] | 782 | . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[3520] | 783 | cd ${SETTE_DIR} |
---|
| 784 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 785 | fi |
---|
| 786 | |
---|
[3680] | 787 | # TESTS FOR AMM12 CONFIGURATION |
---|
[4796] | 788 | if [ ${config} -eq 9 ] ; then |
---|
[3532] | 789 | ## Restartability tests for AMM12 |
---|
| 790 | export TEST_NAME="LONG" |
---|
[4147] | 791 | cd ${CONFIG_DIR} |
---|
[4245] | 792 | . ./makenemo -m ${CMP_NAM} -n AMM12_LONG -r AMM12 -j 8 add_key "key_tide" del_key ${DEL_KEYS} |
---|
[3520] | 793 | cd ${SETTE_DIR} |
---|
[4252] | 794 | . ./param.cfg |
---|
| 795 | . ./all_functions.sh |
---|
| 796 | . ./prepare_exe_dir.sh |
---|
[3520] | 797 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 798 | NPROC=32 |
---|
[4245] | 799 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
[3520] | 800 | cd ${EXE_DIR} |
---|
[4147] | 801 | set_namelist namelist_cfg nn_it000 1 |
---|
[4252] | 802 | set_namelist namelist_cfg nn_itend 576 |
---|
| 803 | set_namelist namelist_cfg nn_stock 288 |
---|
[4147] | 804 | set_namelist namelist_cfg nn_fwb 0 |
---|
| 805 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 806 | set_namelist namelist_cfg ln_clobber .true. |
---|
[7646] | 807 | set_namelist namelist_cfg ln_read_cfg .true. |
---|
| 808 | set_namelist namelist_cfg ln_linssh .false. |
---|
| 809 | set_namelist namelist_cfg jpni 4 |
---|
| 810 | set_namelist namelist_cfg jpnj 8 |
---|
[4147] | 811 | set_namelist namelist_cfg jpnij 32 |
---|
[4245] | 812 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 813 | set_xio_using_server iodef.xml true |
---|
| 814 | else |
---|
| 815 | set_xio_using_server iodef.xml false |
---|
| 816 | fi |
---|
[3520] | 817 | cd ${SETTE_DIR} |
---|
[4245] | 818 | . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[3520] | 819 | |
---|
| 820 | cd ${SETTE_DIR} |
---|
[3532] | 821 | export TEST_NAME="SHORT" |
---|
[4379] | 822 | . ./prepare_exe_dir.sh |
---|
[3520] | 823 | cd ${EXE_DIR} |
---|
[4252] | 824 | set_namelist namelist_cfg nn_it000 289 |
---|
| 825 | set_namelist namelist_cfg nn_itend 576 |
---|
[4147] | 826 | set_namelist namelist_cfg nn_fwb 0 |
---|
| 827 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 828 | set_namelist namelist_cfg ln_clobber .true. |
---|
[7646] | 829 | set_namelist namelist_cfg ln_read_cfg .true. |
---|
| 830 | set_namelist namelist_cfg ln_linssh .false. |
---|
| 831 | set_namelist namelist_cfg jpni 4 |
---|
| 832 | set_namelist namelist_cfg jpnj 8 |
---|
[4147] | 833 | set_namelist namelist_cfg jpnij 32 |
---|
| 834 | set_namelist namelist_cfg ln_rstart .true. |
---|
| 835 | set_namelist namelist_cfg nn_rstctl 2 |
---|
[4252] | 836 | set_namelist namelist_cfg cn_ocerst_in \"AMM12_00000288_restart_oce_out\" |
---|
| 837 | set_namelist namelist_cfg nn_date0 20120102 |
---|
[3537] | 838 | for (( i=1; i<=$NPROC; i++)) ; do |
---|
| 839 | L_NPROC=$(( $i - 1 )) |
---|
| 840 | L_NPROC=`printf "%04d\n" ${L_NPROC}` |
---|
[4252] | 841 | ln -sf ../LONG/AMM12_00000288_restart_oce_out_${L_NPROC}.nc . |
---|
[3537] | 842 | done |
---|
[4245] | 843 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 844 | set_xio_using_server iodef.xml true |
---|
| 845 | else |
---|
| 846 | set_xio_using_server iodef.xml false |
---|
| 847 | fi |
---|
[3520] | 848 | cd ${SETTE_DIR} |
---|
[4245] | 849 | . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[3520] | 850 | cd ${SETTE_DIR} |
---|
[3532] | 851 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
[3520] | 852 | fi |
---|
| 853 | |
---|
[4796] | 854 | if [ ${config} -eq 10 ] ; then |
---|
[3680] | 855 | ## Reproducibility tests for AMM12 |
---|
| 856 | export TEST_NAME="REPRO_8_4" |
---|
[4147] | 857 | cd ${CONFIG_DIR} |
---|
[7646] | 858 | . ./makenemo -m ${CMP_NAM} -n AMM12_32 -r AMM12 -j 8 del_key ${DEL_KEYS} |
---|
[3520] | 859 | cd ${SETTE_DIR} |
---|
[4252] | 860 | . ./param.cfg |
---|
| 861 | . ./all_functions.sh |
---|
| 862 | . ./prepare_exe_dir.sh |
---|
[3520] | 863 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 864 | NPROC=32 |
---|
[4245] | 865 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
[3520] | 866 | cd ${EXE_DIR} |
---|
[4147] | 867 | set_namelist namelist_cfg nn_it000 1 |
---|
| 868 | set_namelist namelist_cfg nn_itend 576 |
---|
| 869 | set_namelist namelist_cfg nn_fwb 0 |
---|
| 870 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 871 | set_namelist namelist_cfg ln_clobber .true. |
---|
[7646] | 872 | set_namelist namelist_cfg ln_read_cfg .true. |
---|
| 873 | set_namelist namelist_cfg ln_linssh .false. |
---|
[4147] | 874 | set_namelist namelist_cfg jpni 8 |
---|
| 875 | set_namelist namelist_cfg jpnj 4 |
---|
| 876 | set_namelist namelist_cfg jpnij 32 |
---|
[4245] | 877 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 878 | set_xio_using_server iodef.xml true |
---|
| 879 | else |
---|
| 880 | set_xio_using_server iodef.xml false |
---|
| 881 | fi |
---|
[3520] | 882 | cd ${SETTE_DIR} |
---|
[4245] | 883 | . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[3520] | 884 | cd ${SETTE_DIR} |
---|
| 885 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 886 | |
---|
| 887 | cd ${SETTE_DIR} |
---|
[3680] | 888 | export TEST_NAME="REPRO_4_8" |
---|
[4252] | 889 | . ./prepare_exe_dir.sh |
---|
[5478] | 890 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 891 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
[3520] | 892 | cd ${EXE_DIR} |
---|
[4147] | 893 | set_namelist namelist_cfg nn_it000 1 |
---|
| 894 | set_namelist namelist_cfg nn_itend 576 |
---|
| 895 | set_namelist namelist_cfg nn_fwb 0 |
---|
| 896 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 897 | set_namelist namelist_cfg ln_clobber .true. |
---|
[7646] | 898 | set_namelist namelist_cfg ln_read_cfg .true. |
---|
| 899 | set_namelist namelist_cfg ln_linssh .false. |
---|
[4147] | 900 | set_namelist namelist_cfg jpni 4 |
---|
| 901 | set_namelist namelist_cfg jpnj 8 |
---|
| 902 | set_namelist namelist_cfg jpnij 32 |
---|
[4245] | 903 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 904 | set_xio_using_server iodef.xml true |
---|
| 905 | else |
---|
| 906 | set_xio_using_server iodef.xml false |
---|
| 907 | fi |
---|
[3520] | 908 | cd ${SETTE_DIR} |
---|
[4245] | 909 | . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[3520] | 910 | cd ${SETTE_DIR} |
---|
[3532] | 911 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
[3520] | 912 | fi |
---|
| 913 | |
---|
| 914 | |
---|
[7646] | 915 | # TESTS FOR ORCA2_SAS_LIM3 CONFIGURATION |
---|
[4796] | 916 | if [ ${config} -eq 11 ] ; then |
---|
[4147] | 917 | ## Restartability tests for SAS |
---|
| 918 | export TEST_NAME="LONG" |
---|
| 919 | cd ${CONFIG_DIR} |
---|
[7646] | 920 | . ./makenemo -m ${CMP_NAM} -n SAS_LONG -r ORCA2_SAS_LIM3 -j 8 del_key ${DEL_KEYS} |
---|
[4147] | 921 | cd ${SETTE_DIR} |
---|
[4252] | 922 | . ./param.cfg |
---|
| 923 | . ./all_functions.sh |
---|
| 924 | . ./prepare_exe_dir.sh |
---|
[4147] | 925 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 926 | NPROC=32 |
---|
[7646] | 927 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
[4147] | 928 | cd ${EXE_DIR} |
---|
| 929 | set_namelist namelist_cfg cn_exp \"SAS\" |
---|
| 930 | set_namelist namelist_cfg nn_it000 1 |
---|
| 931 | set_namelist namelist_cfg nn_itend 100 |
---|
| 932 | set_namelist namelist_cfg nn_stock 50 |
---|
| 933 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 934 | set_namelist namelist_cfg ln_clobber .true. |
---|
[7646] | 935 | set_namelist namelist_cfg ln_read_cfg .true. |
---|
| 936 | set_namelist namelist_cfg ln_linssh .true. |
---|
[4316] | 937 | set_namelist namelist_cfg nn_fwb 0 |
---|
[7646] | 938 | set_namelist namelist_cfg jpni 4 |
---|
| 939 | set_namelist namelist_cfg jpnj 8 |
---|
[4147] | 940 | set_namelist namelist_cfg jpnij 32 |
---|
[4245] | 941 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 942 | set_xio_using_server iodef.xml true |
---|
| 943 | else |
---|
| 944 | set_xio_using_server iodef.xml false |
---|
| 945 | fi |
---|
[4147] | 946 | cd ${SETTE_DIR} |
---|
[4245] | 947 | . ./prepare_job.sh input_SAS.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[4147] | 948 | |
---|
| 949 | cd ${SETTE_DIR} |
---|
| 950 | export TEST_NAME="SHORT" |
---|
[4252] | 951 | . ./prepare_exe_dir.sh |
---|
[4147] | 952 | cd ${EXE_DIR} |
---|
| 953 | set_namelist namelist_cfg cn_exp \"SAS\" |
---|
| 954 | set_namelist namelist_cfg nn_it000 51 |
---|
| 955 | set_namelist namelist_cfg nn_itend 100 |
---|
| 956 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 957 | set_namelist namelist_cfg ln_clobber .true. |
---|
[7646] | 958 | set_namelist namelist_cfg ln_read_cfg .true. |
---|
| 959 | set_namelist namelist_cfg ln_linssh .true. |
---|
[4316] | 960 | set_namelist namelist_cfg nn_fwb 0 |
---|
[7646] | 961 | set_namelist namelist_cfg jpni 4 |
---|
| 962 | set_namelist namelist_cfg jpnj 8 |
---|
[4147] | 963 | set_namelist namelist_cfg jpnij 32 |
---|
[7646] | 964 | set_namelist namelist_cfg ln_rstart .true. |
---|
[4147] | 965 | set_namelist namelist_cfg nn_rstctl 2 |
---|
[7646] | 966 | set_namelist namelist_ice_cfg cn_icerst_in \"SAS_00000050_restart_ice\" |
---|
[4245] | 967 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 968 | set_xio_using_server iodef.xml true |
---|
| 969 | else |
---|
| 970 | set_xio_using_server iodef.xml false |
---|
| 971 | fi |
---|
[7646] | 972 | for (( i=1; i<=$NPROC; i++)) ; do |
---|
| 973 | L_NPROC=$(( $i - 1 )) |
---|
| 974 | L_NPROC=`printf "%04d\n" ${L_NPROC}` |
---|
| 975 | ln -sf ../LONG/SAS_00000050_restart_ice_${L_NPROC}.nc . |
---|
| 976 | done |
---|
[4147] | 977 | cd ${SETTE_DIR} |
---|
[4245] | 978 | . ./prepare_job.sh input_SAS.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[4147] | 979 | cd ${SETTE_DIR} |
---|
| 980 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 981 | fi |
---|
| 982 | |
---|
[7646] | 983 | # TESTS FOR ISOMIP CONFIGURATION |
---|
[4796] | 984 | if [ ${config} -eq 12 ] ; then |
---|
[4990] | 985 | ## Restartability tests for ISOMIP |
---|
| 986 | export TEST_NAME="LONG" |
---|
| 987 | cd ${CONFIG_DIR} |
---|
[7646] | 988 | . ./makenemo -m ${CMP_NAM} -n ISOMIP_LONG -r ISOMIP -j 8 del_key ${DEL_KEYS} |
---|
[4990] | 989 | cd ${SETTE_DIR} |
---|
| 990 | . ./param.cfg |
---|
| 991 | . ./all_functions.sh |
---|
| 992 | . ./prepare_exe_dir.sh |
---|
| 993 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
[7646] | 994 | NPROC=32 |
---|
[4990] | 995 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
| 996 | cd ${EXE_DIR} |
---|
| 997 | set_namelist namelist_cfg cn_exp \"ISOMIP_LONG\" |
---|
| 998 | set_namelist namelist_cfg nn_it000 1 |
---|
| 999 | set_namelist namelist_cfg nn_itend 96 |
---|
| 1000 | set_namelist namelist_cfg nn_stock 48 |
---|
| 1001 | set_namelist namelist_cfg ln_clobber .true. |
---|
[7646] | 1002 | set_namelist namelist_cfg ln_read_cfg .true. |
---|
| 1003 | set_namelist namelist_cfg ln_linssh .true. |
---|
[4990] | 1004 | set_namelist namelist_cfg nn_fwb 0 |
---|
[7646] | 1005 | set_namelist namelist_cfg jpni 4 |
---|
| 1006 | set_namelist namelist_cfg jpnj 8 |
---|
| 1007 | set_namelist namelist_cfg jpnij 32 |
---|
[4990] | 1008 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 1009 | set_xio_using_server iodef.xml true |
---|
| 1010 | else |
---|
| 1011 | set_xio_using_server iodef.xml false |
---|
| 1012 | fi |
---|
| 1013 | cd ${SETTE_DIR} |
---|
| 1014 | . ./prepare_job.sh input_ISOMIP.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[4147] | 1015 | |
---|
[4990] | 1016 | cd ${SETTE_DIR} |
---|
| 1017 | export TEST_NAME="SHORT" |
---|
| 1018 | . ./prepare_exe_dir.sh |
---|
| 1019 | cd ${EXE_DIR} |
---|
| 1020 | set_namelist namelist_cfg cn_exp \"ISOMIP_SHORT\" |
---|
| 1021 | set_namelist namelist_cfg nn_it000 49 |
---|
| 1022 | set_namelist namelist_cfg nn_itend 96 |
---|
| 1023 | set_namelist namelist_cfg nn_stock 48 |
---|
| 1024 | set_namelist namelist_cfg ln_rstart .true. |
---|
| 1025 | set_namelist namelist_cfg nn_rstctl 2 |
---|
| 1026 | set_namelist namelist_cfg ln_clobber .true. |
---|
[7646] | 1027 | set_namelist namelist_cfg ln_read_cfg .true. |
---|
| 1028 | set_namelist namelist_cfg ln_linssh .true. |
---|
[4990] | 1029 | set_namelist namelist_cfg nn_fwb 0 |
---|
[7646] | 1030 | set_namelist namelist_cfg jpni 4 |
---|
| 1031 | set_namelist namelist_cfg jpnj 8 |
---|
| 1032 | set_namelist namelist_cfg jpnij 32 |
---|
[4990] | 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 |
---|
[7646] | 1054 | if [ ${config} -eq 13 ] ; then |
---|
[4990] | 1055 | ## Reproducibility tests for ISOMIP |
---|
[7646] | 1056 | export TEST_NAME="REPRO_4_8" |
---|
[4990] | 1057 | cd ${CONFIG_DIR} |
---|
[7646] | 1058 | . ./makenemo -m ${CMP_NAM} -n ISOMIP_32 -r ISOMIP -j 8 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 |
---|
[7646] | 1064 | NPROC=32 |
---|
[4990] | 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 ln_ctl .false. |
---|
| 1071 | set_namelist namelist_cfg ln_clobber .true. |
---|
[7646] | 1072 | set_namelist namelist_cfg ln_read_cfg .true. |
---|
| 1073 | set_namelist namelist_cfg ln_linssh .true. |
---|
| 1074 | set_namelist namelist_cfg nn_fwb 0 |
---|
| 1075 | set_namelist namelist_cfg jpni 4 |
---|
| 1076 | set_namelist namelist_cfg jpnj 8 |
---|
| 1077 | set_namelist namelist_cfg jpnij 32 |
---|
[4990] | 1078 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 1079 | set_xio_using_server iodef.xml true |
---|
| 1080 | else |
---|
| 1081 | set_xio_using_server iodef.xml false |
---|
| 1082 | fi |
---|
| 1083 | cd ${SETTE_DIR} |
---|
| 1084 | . ./prepare_job.sh input_ISOMIP.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
| 1085 | cd ${SETTE_DIR} |
---|
| 1086 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 1087 | |
---|
| 1088 | cd ${SETTE_DIR} |
---|
[7646] | 1089 | export TEST_NAME="REPRO_8_4" |
---|
[4990] | 1090 | . ./prepare_exe_dir.sh |
---|
| 1091 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
[7646] | 1092 | NPROC=32 |
---|
[4990] | 1093 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
| 1094 | cd ${EXE_DIR} |
---|
| 1095 | set_namelist namelist_cfg cn_exp \"ISOMIP_22\" |
---|
| 1096 | set_namelist namelist_cfg nn_it000 1 |
---|
| 1097 | set_namelist namelist_cfg nn_itend 48 |
---|
| 1098 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 1099 | set_namelist namelist_cfg ln_clobber .true. |
---|
[7646] | 1100 | set_namelist namelist_cfg ln_read_cfg .true. |
---|
| 1101 | set_namelist namelist_cfg ln_linssh .true. |
---|
| 1102 | set_namelist namelist_cfg nn_fwb 0 |
---|
| 1103 | set_namelist namelist_cfg jpni 8 |
---|
| 1104 | set_namelist namelist_cfg jpnj 4 |
---|
| 1105 | set_namelist namelist_cfg jpnij 32 |
---|
[4990] | 1106 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 1107 | set_xio_using_server iodef.xml true |
---|
| 1108 | else |
---|
| 1109 | set_xio_using_server iodef.xml false |
---|
| 1110 | fi |
---|
| 1111 | cd ${SETTE_DIR} |
---|
| 1112 | . ./prepare_job.sh input_ISOMIP.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
| 1113 | cd ${SETTE_DIR} |
---|
| 1114 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 1115 | |
---|
| 1116 | fi |
---|
| 1117 | |
---|
| 1118 | ## Test assimilation interface code, OBS and ASM for reproducibility |
---|
| 1119 | ## Restartability not tested (ASM code not restartable while increments are being applied) |
---|
[7646] | 1120 | if [ ${config} -eq 14 ] ; then |
---|
[4990] | 1121 | ## Reproducibility tests for ORCA2_LIM_OBS |
---|
[7646] | 1122 | export TEST_NAME="REPRO_4_8" |
---|
[4990] | 1123 | cd ${CONFIG_DIR} |
---|
[7646] | 1124 | . ./makenemo -m ${CMP_NAM} -n ORCA2_LIM3_OBS -r ORCA2_LIM3 -j 8 add_key "key_asminc" del_key ${DEL_KEYS} |
---|
[4990] | 1125 | cd ${SETTE_DIR} |
---|
| 1126 | . ./param.cfg |
---|
| 1127 | . ./all_functions.sh |
---|
| 1128 | . ./prepare_exe_dir.sh |
---|
| 1129 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
[7646] | 1130 | NPROC=32 |
---|
[4990] | 1131 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
| 1132 | cd ${EXE_DIR} |
---|
| 1133 | set_namelist namelist_cfg nn_it000 1 |
---|
| 1134 | set_namelist namelist_cfg nn_itend 75 |
---|
| 1135 | set_namelist namelist_cfg nn_fwb 0 |
---|
| 1136 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 1137 | set_namelist namelist_cfg ln_clobber .true. |
---|
[7646] | 1138 | set_namelist namelist_cfg ln_read_cfg .true. |
---|
| 1139 | set_namelist namelist_cfg ln_linssh .false. |
---|
[4990] | 1140 | set_namelist namelist_cfg jpni 4 |
---|
[7646] | 1141 | set_namelist namelist_cfg jpnj 8 |
---|
| 1142 | set_namelist namelist_cfg jpnij 32 |
---|
[6140] | 1143 | set_namelist namelist_cfg ln_diaobs .true. |
---|
[4990] | 1144 | set_namelist namelist_cfg ln_t3d .true. |
---|
| 1145 | set_namelist namelist_cfg ln_s3d .true. |
---|
| 1146 | set_namelist namelist_cfg ln_sst .true. |
---|
| 1147 | set_namelist namelist_cfg ln_sla .true. |
---|
[6140] | 1148 | set_namelist namelist_cfg ln_sic .true. |
---|
| 1149 | set_namelist namelist_cfg ln_vel3d .true. |
---|
[4990] | 1150 | set_namelist namelist_cfg ln_bkgwri .true. |
---|
| 1151 | set_namelist namelist_cfg ln_trainc .true. |
---|
| 1152 | set_namelist namelist_cfg ln_dyninc .true. |
---|
| 1153 | set_namelist namelist_cfg ln_sshinc .true. |
---|
| 1154 | set_namelist namelist_cfg ln_asmiau .true. |
---|
| 1155 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 1156 | set_xio_using_server iodef.xml true |
---|
| 1157 | else |
---|
| 1158 | set_xio_using_server iodef.xml false |
---|
| 1159 | fi |
---|
| 1160 | cd ${SETTE_DIR} |
---|
[7646] | 1161 | . ./prepare_job.sh input_ORCA2_LIM3_OBS.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[4990] | 1162 | cd ${SETTE_DIR} |
---|
| 1163 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 1164 | |
---|
| 1165 | cd ${SETTE_DIR} |
---|
[7646] | 1166 | export TEST_NAME="REPRO_8_4" |
---|
[4990] | 1167 | . ./prepare_exe_dir.sh |
---|
| 1168 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
[7646] | 1169 | NPROC=32 |
---|
[4990] | 1170 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
| 1171 | cd ${EXE_DIR} |
---|
| 1172 | set_namelist namelist_cfg nn_it000 1 |
---|
| 1173 | set_namelist namelist_cfg nn_itend 75 |
---|
| 1174 | set_namelist namelist_cfg nn_fwb 0 |
---|
| 1175 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 1176 | set_namelist namelist_cfg ln_clobber .true. |
---|
[7646] | 1177 | set_namelist namelist_cfg ln_read_cfg .true. |
---|
| 1178 | set_namelist namelist_cfg ln_linssh .false. |
---|
| 1179 | set_namelist namelist_cfg jpni 8 |
---|
| 1180 | set_namelist namelist_cfg jpnj 4 |
---|
| 1181 | set_namelist namelist_cfg jpnij 32 |
---|
[6140] | 1182 | set_namelist namelist_cfg ln_diaobs .true. |
---|
[4990] | 1183 | set_namelist namelist_cfg ln_t3d .true. |
---|
| 1184 | set_namelist namelist_cfg ln_s3d .true. |
---|
| 1185 | set_namelist namelist_cfg ln_sst .true. |
---|
| 1186 | set_namelist namelist_cfg ln_sla .true. |
---|
[6140] | 1187 | set_namelist namelist_cfg ln_sic .true. |
---|
| 1188 | set_namelist namelist_cfg ln_vel3d .true. |
---|
[4990] | 1189 | set_namelist namelist_cfg ln_bkgwri .true. |
---|
| 1190 | set_namelist namelist_cfg ln_trainc .true. |
---|
| 1191 | set_namelist namelist_cfg ln_dyninc .true. |
---|
| 1192 | set_namelist namelist_cfg ln_sshinc .true. |
---|
| 1193 | set_namelist namelist_cfg ln_asmiau .true. |
---|
| 1194 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 1195 | set_xio_using_server iodef.xml true |
---|
| 1196 | else |
---|
| 1197 | set_xio_using_server iodef.xml false |
---|
| 1198 | fi |
---|
| 1199 | cd ${SETTE_DIR} |
---|
[7646] | 1200 | . ./prepare_job.sh input_ORCA2_LIM3_OBS.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[4990] | 1201 | cd ${SETTE_DIR} |
---|
| 1202 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 1203 | fi |
---|
[4245] | 1204 | # TEST FOR ORCA2_LIM_AGRIF : simple test of running AGRIF (no restartability neither reproducibility tests) |
---|
[7646] | 1205 | if [ ${config} -eq 15 ] ; then |
---|
[4245] | 1206 | ## ORCA2_LIM with Agulhas AGRIF zoom in MPI |
---|
| 1207 | export TEST_NAME="SHORT" |
---|
| 1208 | cd ${CONFIG_DIR} |
---|
[7646] | 1209 | . ./makenemo -m ${CMP_NAM} -n ORCA2AGUL_1_2 -r ORCA2_LIM -j 8 add_key "key_agrif" del_key "key_zdftmx" del_key ${DEL_KEYS} |
---|
[4245] | 1210 | cd ${SETTE_DIR} |
---|
[4252] | 1211 | . ./param.cfg |
---|
| 1212 | . ./all_functions.sh |
---|
| 1213 | . ./prepare_exe_dir.sh |
---|
[4245] | 1214 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 1215 | NPROC=2 |
---|
| 1216 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
| 1217 | cd ${EXE_DIR} |
---|
| 1218 | set_namelist namelist_cfg nn_it000 1 |
---|
| 1219 | set_namelist namelist_cfg nn_itend 75 |
---|
| 1220 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 1221 | set_namelist namelist_cfg ln_clobber .true. |
---|
[7646] | 1222 | set_namelist namelist_cfg ln_read_cfg .true. |
---|
| 1223 | set_namelist namelist_cfg ln_linssh .true. |
---|
| 1224 | set_namelist namelist_cfg ln_hpg_sco .false. |
---|
| 1225 | set_namelist namelist_cfg ln_hpg_zps .true. |
---|
[4316] | 1226 | set_namelist namelist_cfg nn_fwb 0 |
---|
[4245] | 1227 | set_namelist namelist_cfg jpni 1 |
---|
| 1228 | set_namelist namelist_cfg jpnj 2 |
---|
| 1229 | set_namelist namelist_cfg jpnij 2 |
---|
| 1230 | set_namelist 1_namelist_cfg nn_it000 1 |
---|
| 1231 | set_namelist 1_namelist_cfg nn_itend 150 |
---|
| 1232 | set_namelist 1_namelist_cfg ln_ctl .false. |
---|
| 1233 | set_namelist 1_namelist_cfg ln_clobber .true. |
---|
[7646] | 1234 | set_namelist 1_namelist_cfg ln_read_cfg .true. |
---|
| 1235 | set_namelist 1_namelist_cfg ln_linssh .true. |
---|
| 1236 | set_namelist 1_namelist_cfg ln_hpg_sco .false. |
---|
| 1237 | set_namelist 1_namelist_cfg ln_hpg_zps .true. |
---|
[4245] | 1238 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 1239 | set_xio_using_server iodef.xml true |
---|
| 1240 | else |
---|
| 1241 | set_xio_using_server iodef.xml false |
---|
| 1242 | fi |
---|
| 1243 | cd ${SETTE_DIR} |
---|
| 1244 | . ./prepare_job.sh input_ORCA2_LIM_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
| 1245 | cd ${SETTE_DIR} |
---|
| 1246 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 1247 | fi |
---|
| 1248 | |
---|
[5589] | 1249 | # test code corruption with AGRIF |
---|
| 1250 | # Compile and run with or without AGRIF ORCA2_LIM |
---|
[7646] | 1251 | if [ ${config} -eq 16 ] ; then |
---|
| 1252 | # First run same as 15 but without zoom |
---|
[5589] | 1253 | export TEST_NAME="SHORT_NOZOOM" |
---|
| 1254 | cd ${CONFIG_DIR} |
---|
[7646] | 1255 | . ./makenemo -m ${CMP_NAM} -n ORCA2AGUL_2_2 -r ORCA2_LIM -j 8 add_key "key_agrif" del_key "key_zdftmx" del_key ${DEL_KEYS} |
---|
[5589] | 1256 | cd ${SETTE_DIR} |
---|
| 1257 | . ./param.cfg |
---|
| 1258 | . ./all_functions.sh |
---|
| 1259 | . ./prepare_exe_dir.sh |
---|
| 1260 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 1261 | NPROC=4 |
---|
| 1262 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
| 1263 | cd ${EXE_DIR} |
---|
| 1264 | set_namelist namelist_cfg nn_it000 1 |
---|
| 1265 | set_namelist namelist_cfg nn_itend 75 |
---|
| 1266 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 1267 | set_namelist namelist_cfg ln_clobber .true. |
---|
[7646] | 1268 | set_namelist namelist_cfg ln_read_cfg .true. |
---|
| 1269 | set_namelist namelist_cfg ln_linssh .true. |
---|
| 1270 | set_namelist namelist_cfg ln_hpg_sco .false. |
---|
| 1271 | set_namelist namelist_cfg ln_hpg_zps .true. |
---|
[5589] | 1272 | set_namelist namelist_cfg nn_fwb 0 |
---|
| 1273 | set_namelist namelist_cfg jpni 2 |
---|
| 1274 | set_namelist namelist_cfg jpnj 2 |
---|
| 1275 | set_namelist namelist_cfg jpnij 4 |
---|
| 1276 | # |
---|
| 1277 | # Set the number of fine grids to zero: |
---|
| 1278 | sed -i "1s/.*/0/" ${EXE_DIR}/AGRIF_FixedGrids.in |
---|
| 1279 | |
---|
| 1280 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 1281 | set_xio_using_server iodef.xml true |
---|
| 1282 | else |
---|
| 1283 | set_xio_using_server iodef.xml false |
---|
| 1284 | fi |
---|
| 1285 | cd ${SETTE_DIR} |
---|
| 1286 | . ./prepare_job.sh input_ORCA2_LIM_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
| 1287 | cd ${SETTE_DIR} |
---|
| 1288 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 1289 | |
---|
| 1290 | export TEST_NAME="SHORT_NOAGRIF" |
---|
| 1291 | cd ${CONFIG_DIR} |
---|
[7646] | 1292 | . ./makenemo -m ${CMP_NAM} -n ORCA2AGUL_2_2_NAG -r ORCA2_LIM -j 8 del_key "key_zdftmx" del_key ${DEL_KEYS} |
---|
[5589] | 1293 | cd ${SETTE_DIR} |
---|
| 1294 | . ./param.cfg |
---|
| 1295 | . ./all_functions.sh |
---|
| 1296 | . ./prepare_exe_dir.sh |
---|
| 1297 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 1298 | NPROC=4 |
---|
| 1299 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
| 1300 | cd ${EXE_DIR} |
---|
| 1301 | set_namelist namelist_cfg nn_it000 1 |
---|
| 1302 | set_namelist namelist_cfg nn_itend 75 |
---|
| 1303 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 1304 | set_namelist namelist_cfg ln_clobber .true. |
---|
[7646] | 1305 | set_namelist namelist_cfg ln_read_cfg .true. |
---|
| 1306 | set_namelist namelist_cfg ln_linssh .true. |
---|
| 1307 | set_namelist namelist_cfg ln_hpg_sco .false. |
---|
| 1308 | set_namelist namelist_cfg ln_hpg_zps .true. |
---|
[5589] | 1309 | set_namelist namelist_cfg nn_fwb 0 |
---|
| 1310 | set_namelist namelist_cfg jpni 2 |
---|
| 1311 | set_namelist namelist_cfg jpnj 2 |
---|
| 1312 | set_namelist namelist_cfg jpnij 4 |
---|
| 1313 | # |
---|
| 1314 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 1315 | set_xio_using_server iodef.xml true |
---|
| 1316 | else |
---|
| 1317 | set_xio_using_server iodef.xml false |
---|
| 1318 | fi |
---|
| 1319 | cd ${SETTE_DIR} |
---|
| 1320 | . ./prepare_job.sh input_ORCA2_LIM_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
| 1321 | cd ${SETTE_DIR} |
---|
| 1322 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 1323 | |
---|
| 1324 | fi |
---|
| 1325 | |
---|
| 1326 | ## Restartability tests for ORCA2_LIM_AGRIF |
---|
[7646] | 1327 | if [ ${config} -eq 17 ] ; then |
---|
[5589] | 1328 | export TEST_NAME="LONG" |
---|
| 1329 | cd ${CONFIG_DIR} |
---|
[7646] | 1330 | . ./makenemo -m ${CMP_NAM} -n ORCA2AGUL_LONG -r ORCA2_LIM -j 8 add_key "key_agrif" del_key "key_zdftmx" del_key ${DEL_KEYS} |
---|
[5589] | 1331 | cd ${SETTE_DIR} |
---|
| 1332 | . ./param.cfg |
---|
| 1333 | . ./all_functions.sh |
---|
| 1334 | . ./prepare_exe_dir.sh |
---|
| 1335 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 1336 | NPROC=4 |
---|
| 1337 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
| 1338 | cd ${EXE_DIR} |
---|
| 1339 | set_namelist namelist_cfg cn_exp \"O2LP_LONG\" |
---|
| 1340 | set_namelist namelist_cfg nn_it000 1 |
---|
| 1341 | set_namelist namelist_cfg nn_itend 150 |
---|
| 1342 | set_namelist namelist_cfg nn_stock 75 |
---|
| 1343 | set_namelist namelist_cfg ln_clobber .true. |
---|
[7646] | 1344 | set_namelist namelist_cfg ln_read_cfg .true. |
---|
| 1345 | set_namelist namelist_cfg ln_linssh .true. |
---|
| 1346 | set_namelist namelist_cfg ln_hpg_sco .false. |
---|
| 1347 | set_namelist namelist_cfg ln_hpg_zps .true. |
---|
[5589] | 1348 | set_namelist namelist_cfg nn_fwb 0 |
---|
| 1349 | set_namelist namelist_cfg jpni 2 |
---|
| 1350 | set_namelist namelist_cfg jpnj 2 |
---|
| 1351 | set_namelist namelist_cfg jpnij 4 |
---|
| 1352 | set_namelist 1_namelist_cfg cn_exp \"O2LP_LONG\" |
---|
| 1353 | set_namelist 1_namelist_cfg nn_it000 1 |
---|
| 1354 | set_namelist 1_namelist_cfg nn_itend 300 |
---|
| 1355 | set_namelist 1_namelist_cfg nn_stock 150 |
---|
| 1356 | set_namelist 1_namelist_cfg ln_ctl .false. |
---|
| 1357 | set_namelist 1_namelist_cfg ln_clobber .true. |
---|
[7646] | 1358 | set_namelist 1_namelist_cfg ln_read_cfg .true. |
---|
| 1359 | set_namelist 1_namelist_cfg ln_linssh .true. |
---|
| 1360 | set_namelist 1_namelist_cfg ln_hpg_sco .false. |
---|
| 1361 | set_namelist 1_namelist_cfg ln_hpg_zps .true. |
---|
[5589] | 1362 | # |
---|
| 1363 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 1364 | set_xio_using_server iodef.xml true |
---|
| 1365 | else |
---|
| 1366 | set_xio_using_server iodef.xml false |
---|
| 1367 | fi |
---|
| 1368 | cd ${SETTE_DIR} |
---|
| 1369 | . ./prepare_job.sh input_ORCA2_LIM_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
| 1370 | |
---|
| 1371 | cd ${SETTE_DIR} |
---|
| 1372 | export TEST_NAME="SHORT" |
---|
| 1373 | . ./prepare_exe_dir.sh |
---|
| 1374 | cd ${EXE_DIR} |
---|
| 1375 | set_namelist namelist_cfg cn_exp \"O2LP_SHORT\" |
---|
| 1376 | set_namelist namelist_cfg nn_it000 76 |
---|
| 1377 | set_namelist namelist_cfg nn_itend 150 |
---|
| 1378 | set_namelist namelist_cfg nn_stock 75 |
---|
| 1379 | set_namelist namelist_cfg ln_rstart .true. |
---|
| 1380 | set_namelist namelist_cfg nn_rstctl 2 |
---|
| 1381 | set_namelist namelist_cfg ln_clobber .true. |
---|
[7646] | 1382 | set_namelist namelist_cfg ln_read_cfg .true. |
---|
| 1383 | set_namelist namelist_cfg ln_linssh .true. |
---|
| 1384 | set_namelist namelist_cfg ln_hpg_sco .false. |
---|
| 1385 | set_namelist namelist_cfg ln_hpg_zps .true. |
---|
[5589] | 1386 | set_namelist namelist_cfg nn_fwb 0 |
---|
| 1387 | set_namelist namelist_cfg jpni 2 |
---|
| 1388 | set_namelist namelist_cfg jpnj 2 |
---|
| 1389 | |
---|
| 1390 | set_namelist namelist_cfg jpnij 4 |
---|
[6140] | 1391 | # set_namelist namelist_cfg nn_solv 2 |
---|
[5589] | 1392 | set_namelist 1_namelist_cfg cn_exp \"O2LP_SHORT\" |
---|
| 1393 | set_namelist 1_namelist_cfg nn_it000 151 |
---|
| 1394 | set_namelist 1_namelist_cfg nn_itend 300 |
---|
| 1395 | set_namelist 1_namelist_cfg nn_stock 150 |
---|
| 1396 | set_namelist 1_namelist_cfg ln_rstart .true. |
---|
| 1397 | set_namelist 1_namelist_cfg nn_rstctl 2 |
---|
| 1398 | set_namelist 1_namelist_cfg ln_clobber .true. |
---|
[7646] | 1399 | set_namelist 1_namelist_cfg ln_read_cfg .true. |
---|
| 1400 | set_namelist 1_namelist_cfg ln_linssh .true. |
---|
| 1401 | set_namelist 1_namelist_cfg ln_hpg_sco .false. |
---|
| 1402 | set_namelist 1_namelist_cfg ln_hpg_zps .true. |
---|
[5589] | 1403 | set_namelist namelist_cfg cn_ocerst_in \"O2LP_LONG_00000075_restart\" |
---|
| 1404 | set_namelist namelist_ice_cfg cn_icerst_in \"O2LP_LONG_00000075_restart_ice\" |
---|
| 1405 | |
---|
| 1406 | set_namelist 1_namelist_cfg cn_ocerst_in \"O2LP_LONG_00000150_restart\" |
---|
| 1407 | |
---|
| 1408 | for (( i=1; i<=$NPROC; i++)) ; do |
---|
| 1409 | L_NPROC=$(( $i - 1 )) |
---|
| 1410 | L_NPROC=`printf "%04d\n" ${L_NPROC}` |
---|
| 1411 | ln -sf ../LONG/O2LP_LONG_00000075_restart_${L_NPROC}.nc . |
---|
| 1412 | ln -sf ../LONG/O2LP_LONG_00000075_restart_ice_${L_NPROC}.nc . |
---|
| 1413 | ln -sf ../LONG/1_O2LP_LONG_00000150_restart_${L_NPROC}.nc . |
---|
| 1414 | done |
---|
| 1415 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 1416 | set_xio_using_server iodef.xml true |
---|
| 1417 | else |
---|
| 1418 | set_xio_using_server iodef.xml false |
---|
| 1419 | fi |
---|
| 1420 | cd ${SETTE_DIR} |
---|
| 1421 | . ./prepare_job.sh input_ORCA2_LIM_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
| 1422 | cd ${SETTE_DIR} |
---|
| 1423 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 1424 | fi |
---|
| 1425 | |
---|
| 1426 | ## Reproducibility tests for ORCA2_LIM_AGRIF |
---|
[7646] | 1427 | if [ ${config} -eq 18 ] ; then |
---|
[5589] | 1428 | export TEST_NAME="REPRO_4_4" |
---|
| 1429 | cd ${CONFIG_DIR} |
---|
[7646] | 1430 | . ./makenemo -m ${CMP_NAM} -n ORCA2AGUL_16 -r ORCA2_LIM -j 8 add_key "key_agrif" del_key "key_zdftmx" del_key ${DEL_KEYS} |
---|
[5589] | 1431 | cd ${SETTE_DIR} |
---|
| 1432 | . ./param.cfg |
---|
| 1433 | . ./all_functions.sh |
---|
| 1434 | . ./prepare_exe_dir.sh |
---|
| 1435 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 1436 | NPROC=16 |
---|
| 1437 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
| 1438 | cd ${EXE_DIR} |
---|
| 1439 | set_namelist namelist_cfg nn_it000 1 |
---|
| 1440 | set_namelist namelist_cfg nn_itend 75 |
---|
| 1441 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 1442 | set_namelist namelist_cfg ln_clobber .true. |
---|
[7646] | 1443 | set_namelist namelist_cfg ln_read_cfg .true. |
---|
| 1444 | set_namelist namelist_cfg ln_linssh .true. |
---|
| 1445 | set_namelist namelist_cfg ln_hpg_sco .false. |
---|
| 1446 | set_namelist namelist_cfg ln_hpg_zps .true. |
---|
[5589] | 1447 | set_namelist namelist_cfg nn_fwb 0 |
---|
| 1448 | set_namelist namelist_cfg jpni 4 |
---|
| 1449 | set_namelist namelist_cfg jpnj 4 |
---|
| 1450 | set_namelist namelist_cfg jpnij 16 |
---|
| 1451 | set_namelist 1_namelist_cfg nn_it000 1 |
---|
| 1452 | set_namelist 1_namelist_cfg nn_itend 150 |
---|
| 1453 | set_namelist 1_namelist_cfg ln_ctl .false. |
---|
| 1454 | set_namelist 1_namelist_cfg ln_clobber .true. |
---|
[7646] | 1455 | set_namelist 1_namelist_cfg ln_read_cfg .true. |
---|
| 1456 | set_namelist 1_namelist_cfg ln_linssh .true. |
---|
| 1457 | set_namelist 1_namelist_cfg ln_hpg_sco .false. |
---|
| 1458 | set_namelist 1_namelist_cfg ln_hpg_zps .true. |
---|
[5589] | 1459 | |
---|
| 1460 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 1461 | set_xio_using_server iodef.xml true |
---|
| 1462 | else |
---|
| 1463 | set_xio_using_server iodef.xml false |
---|
| 1464 | fi |
---|
| 1465 | cd ${SETTE_DIR} |
---|
| 1466 | . ./prepare_job.sh input_ORCA2_LIM_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
| 1467 | cd ${SETTE_DIR} |
---|
| 1468 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 1469 | |
---|
| 1470 | cd ${SETTE_DIR} |
---|
| 1471 | export TEST_NAME="REPRO_2_8" |
---|
| 1472 | . ./prepare_exe_dir.sh |
---|
| 1473 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 1474 | NPROC=16 |
---|
| 1475 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
| 1476 | cd ${EXE_DIR} |
---|
| 1477 | set_namelist namelist_cfg nn_it000 1 |
---|
| 1478 | set_namelist namelist_cfg nn_itend 75 |
---|
| 1479 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 1480 | set_namelist namelist_cfg ln_clobber .true. |
---|
[7646] | 1481 | set_namelist namelist_cfg ln_read_cfg .true. |
---|
| 1482 | set_namelist namelist_cfg ln_linssh .true. |
---|
| 1483 | set_namelist namelist_cfg ln_hpg_sco .false. |
---|
| 1484 | set_namelist namelist_cfg ln_hpg_zps .true. |
---|
[5589] | 1485 | set_namelist namelist_cfg nn_fwb 0 |
---|
| 1486 | set_namelist namelist_cfg jpni 2 |
---|
| 1487 | set_namelist namelist_cfg jpnj 8 |
---|
| 1488 | set_namelist namelist_cfg jpnij 16 |
---|
| 1489 | set_namelist 1_namelist_cfg nn_it000 1 |
---|
| 1490 | set_namelist 1_namelist_cfg nn_itend 150 |
---|
| 1491 | set_namelist 1_namelist_cfg ln_ctl .false. |
---|
| 1492 | set_namelist 1_namelist_cfg ln_clobber .true. |
---|
[7646] | 1493 | set_namelist 1_namelist_cfg ln_read_cfg .true. |
---|
| 1494 | set_namelist 1_namelist_cfg ln_linssh .true. |
---|
| 1495 | set_namelist 1_namelist_cfg ln_hpg_sco .false. |
---|
| 1496 | set_namelist 1_namelist_cfg ln_hpg_zps .true. |
---|
[5589] | 1497 | |
---|
| 1498 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 1499 | set_xio_using_server iodef.xml true |
---|
| 1500 | else |
---|
| 1501 | set_xio_using_server iodef.xml false |
---|
| 1502 | fi |
---|
| 1503 | cd ${SETTE_DIR} |
---|
| 1504 | . ./prepare_job.sh input_ORCA2_LIM_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
| 1505 | cd ${SETTE_DIR} |
---|
| 1506 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 1507 | fi |
---|
| 1508 | |
---|
[3520] | 1509 | done |
---|