[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 | ############################################################# |
---|
[7744] | 14 | #set -vx |
---|
[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 |
---|
[9019] | 58 | # (run.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 |
---|
[7743] | 90 | COMPILER=X64_ADA |
---|
| 91 | |
---|
[5398] | 92 | export BATCH_COMMAND_PAR="llsubmit" |
---|
[4245] | 93 | export BATCH_COMMAND_SEQ=$BATCH_COMMAND_PAR |
---|
[4990] | 94 | export INTERACT_FLAG="no" |
---|
[4245] | 95 | export MPIRUN_FLAG="yes" |
---|
| 96 | export USING_XIOS="yes" |
---|
[3520] | 97 | # |
---|
[4245] | 98 | export DEL_KEYS="key_iomput" |
---|
| 99 | if [ ${USING_XIOS} == "yes" ] |
---|
| 100 | then |
---|
| 101 | export DEL_KEYS="" |
---|
| 102 | fi |
---|
[3520] | 103 | # |
---|
[4245] | 104 | # Settings which control the use of stand alone servers (only relevant if using xios) |
---|
[3520] | 105 | # |
---|
[4245] | 106 | export USING_MPMD="no" |
---|
| 107 | export NUM_XIOSERVERS=4 |
---|
| 108 | export JOB_PREFIX=batch-mpmd |
---|
[3520] | 109 | # |
---|
[4245] | 110 | if [ ${USING_MPMD} == "no" ] |
---|
| 111 | then |
---|
| 112 | export NUM_XIOSERVERS=0 |
---|
| 113 | export JOB_PREFIX=batch |
---|
| 114 | fi |
---|
[3520] | 115 | # |
---|
| 116 | # |
---|
[4245] | 117 | if [ ${USING_MPMD} == "yes" ] && [ ${USING_XIOS} == "no"] |
---|
| 118 | then |
---|
| 119 | echo "Incompatible choices. MPMD mode requires the XIOS server" |
---|
| 120 | exit |
---|
| 121 | fi |
---|
[3520] | 122 | |
---|
| 123 | # Directory to run the tests |
---|
| 124 | SETTE_DIR=$(cd $(dirname "$0"); pwd) |
---|
[6460] | 125 | MAIN_DIR=$(dirname $SETTE_DIR) |
---|
[7715] | 126 | CONFIG_DIR0=${MAIN_DIR}/CONFIG |
---|
[3520] | 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: |
---|
[9019] | 135 | # GYRE_PISCES : 1 |
---|
| 136 | # ORCA2_LIM3_PISCES : 2 |
---|
| 137 | # ORCA2_OFF_PISCES : 3 |
---|
| 138 | # AMM12 : 4 |
---|
| 139 | # SAS : 5 fos SAS there is no run.stat so is useless to test REPRO |
---|
| 140 | # ISOMIP : 6 |
---|
| 141 | # ORCA2_LIM3_OBS : 7 |
---|
| 142 | # ORCA2_AGRIF_LIM3 : 8 |
---|
| 143 | # ORCA2AGR : 9 & 10 AGRIF active with no zoom, compared to no AGRIF cpp key |
---|
[4147] | 144 | |
---|
[9019] | 145 | for config in 1 2 3 4 5 6 7 8 9 10 |
---|
[3520] | 146 | do |
---|
| 147 | |
---|
[7715] | 148 | # TESTS FOR GYRE_PISCES CONFIGURATION |
---|
[3520] | 149 | if [ ${config} -eq 1 ] ; then |
---|
[7715] | 150 | ## Restartability tests for GYRE_PISCES |
---|
[3520] | 151 | export TEST_NAME="LONG" |
---|
[7715] | 152 | cd ${CONFIG_DIR0} |
---|
[9019] | 153 | . ./makenemo -m ${CMP_NAM} -n GYREPIS_ST -r GYRE_PISCES -j 8 del_key ${DEL_KEYS} |
---|
[3520] | 154 | cd ${SETTE_DIR} |
---|
[4252] | 155 | . ./param.cfg |
---|
| 156 | . ./all_functions.sh |
---|
| 157 | . ./prepare_exe_dir.sh |
---|
[3520] | 158 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
[7646] | 159 | NPROC=32 |
---|
[4245] | 160 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
[4147] | 161 | cd ${EXE_DIR} |
---|
[7715] | 162 | set_namelist namelist_cfg cn_exp \"GYREPIS_LONG\" |
---|
[4147] | 163 | set_namelist namelist_cfg nn_it000 1 |
---|
| 164 | set_namelist namelist_cfg nn_itend 120 |
---|
| 165 | set_namelist namelist_cfg nn_stock 60 |
---|
| 166 | set_namelist namelist_cfg ln_clobber .true. |
---|
[7646] | 167 | set_namelist namelist_cfg ln_linssh .true. |
---|
| 168 | set_namelist namelist_cfg ln_read_cfg .false. |
---|
[4318] | 169 | set_namelist namelist_cfg nn_fwb 0 |
---|
[7646] | 170 | set_namelist namelist_cfg jpni 4 |
---|
| 171 | set_namelist namelist_cfg jpnj 8 |
---|
| 172 | set_namelist namelist_cfg jpnij 32 |
---|
[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} |
---|
[7753] | 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} |
---|
[7715] | 185 | set_namelist namelist_cfg cn_exp \"GYREPIS_SHORT\" |
---|
[4147] | 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. |
---|
[7646] | 192 | set_namelist namelist_cfg ln_linssh .true. |
---|
| 193 | set_namelist namelist_cfg ln_read_cfg .false. |
---|
[4316] | 194 | set_namelist namelist_cfg nn_fwb 0 |
---|
[7646] | 195 | set_namelist namelist_cfg jpni 4 |
---|
| 196 | set_namelist namelist_cfg jpnj 8 |
---|
| 197 | set_namelist namelist_cfg jpnij 32 |
---|
[7744] | 198 | set_namelist namelist_top_cfg ln_rsttr .true. |
---|
| 199 | set_namelist namelist_top_cfg nn_rsttr 2 |
---|
[7715] | 200 | set_namelist namelist_cfg cn_ocerst_in \"GYREPIS_LONG_00000060_restart\" |
---|
[7744] | 201 | set_namelist namelist_top_cfg cn_trcrst_in \"GYREPIS_LONG_00000060_restart_trc\" |
---|
[4245] | 202 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 203 | set_xio_using_server iodef.xml true |
---|
| 204 | else |
---|
| 205 | set_xio_using_server iodef.xml false |
---|
| 206 | fi |
---|
[3537] | 207 | for (( i=1; i<=$NPROC; i++)) ; do |
---|
| 208 | L_NPROC=$(( $i - 1 )) |
---|
| 209 | L_NPROC=`printf "%04d\n" ${L_NPROC}` |
---|
[7715] | 210 | ln -sf ../LONG/GYREPIS_LONG_00000060_restart_${L_NPROC}.nc . |
---|
[7744] | 211 | ln -sf ../LONG/GYREPIS_LONG_00000060_restart_trc_${L_NPROC}.nc . |
---|
[3537] | 212 | done |
---|
[4245] | 213 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 214 | set_xio_using_server iodef.xml true |
---|
| 215 | else |
---|
| 216 | set_xio_using_server iodef.xml false |
---|
| 217 | fi |
---|
[3520] | 218 | cd ${SETTE_DIR} |
---|
[7753] | 219 | . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[3520] | 220 | cd ${SETTE_DIR} |
---|
[3532] | 221 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
[3520] | 222 | |
---|
[7715] | 223 | ## Reproducibility tests for GYRE_PISCES |
---|
[7646] | 224 | export TEST_NAME="REPRO_4_8" |
---|
[7715] | 225 | cd ${CONFIG_DIR0} |
---|
[3520] | 226 | cd ${SETTE_DIR} |
---|
[4252] | 227 | . ./param.cfg |
---|
| 228 | . ./all_functions.sh |
---|
| 229 | . ./prepare_exe_dir.sh |
---|
[3520] | 230 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
[7646] | 231 | NPROC=32 |
---|
[4245] | 232 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
[3520] | 233 | cd ${EXE_DIR} |
---|
[7715] | 234 | set_namelist namelist_cfg cn_exp \"GYREPIS_48\" |
---|
[4147] | 235 | set_namelist namelist_cfg nn_it000 1 |
---|
| 236 | set_namelist namelist_cfg nn_itend 60 |
---|
| 237 | set_namelist namelist_cfg nn_fwb 0 |
---|
| 238 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 239 | set_namelist namelist_cfg ln_clobber .true. |
---|
[7646] | 240 | set_namelist namelist_cfg ln_linssh .true. |
---|
| 241 | set_namelist namelist_cfg ln_read_cfg .false. |
---|
| 242 | set_namelist namelist_cfg jpni 4 |
---|
| 243 | set_namelist namelist_cfg jpnj 8 |
---|
| 244 | set_namelist namelist_cfg jpnij 32 |
---|
[4245] | 245 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 246 | set_xio_using_server iodef.xml true |
---|
| 247 | else |
---|
| 248 | set_xio_using_server iodef.xml false |
---|
| 249 | fi |
---|
[3520] | 250 | cd ${SETTE_DIR} |
---|
[7753] | 251 | . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[3520] | 252 | cd ${SETTE_DIR} |
---|
| 253 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 254 | |
---|
| 255 | cd ${SETTE_DIR} |
---|
[7646] | 256 | export TEST_NAME="REPRO_8_4" |
---|
[4252] | 257 | . ./prepare_exe_dir.sh |
---|
[3680] | 258 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
[7646] | 259 | NPROC=32 |
---|
[4245] | 260 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
[3520] | 261 | cd ${EXE_DIR} |
---|
[7715] | 262 | set_namelist namelist_cfg cn_exp \"GYREPIS_84\" |
---|
[4147] | 263 | set_namelist namelist_cfg nn_it000 1 |
---|
| 264 | set_namelist namelist_cfg nn_itend 60 |
---|
| 265 | set_namelist namelist_cfg nn_fwb 0 |
---|
| 266 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 267 | set_namelist namelist_cfg ln_clobber .true. |
---|
[7646] | 268 | set_namelist namelist_cfg ln_linssh .true. |
---|
| 269 | set_namelist namelist_cfg ln_read_cfg .false. |
---|
| 270 | set_namelist namelist_cfg jpni 8 |
---|
| 271 | set_namelist namelist_cfg jpnj 4 |
---|
| 272 | set_namelist namelist_cfg jpnij 32 |
---|
[4245] | 273 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 274 | set_xio_using_server iodef.xml true |
---|
| 275 | else |
---|
| 276 | set_xio_using_server iodef.xml false |
---|
| 277 | fi |
---|
[3520] | 278 | cd ${SETTE_DIR} |
---|
[7753] | 279 | . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[3520] | 280 | cd ${SETTE_DIR} |
---|
| 281 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
[3532] | 282 | |
---|
[3520] | 283 | fi |
---|
| 284 | |
---|
[7715] | 285 | # TESTS FOR ORCA2_LIM3_PISCES CONFIGURATION |
---|
[9019] | 286 | if [ ${config} -eq 2 ] ; then |
---|
[7646] | 287 | ## Restartability tests for ORCA2_LIM3_PISCES |
---|
| 288 | export TEST_NAME="LONG" |
---|
[7715] | 289 | cd ${CONFIG_DIR0} |
---|
[9019] | 290 | . ./makenemo -m ${CMP_NAM} -n ORCA2LIM3PIS_ST -r ORCA2_LIM3_PISCES -j 8 del_key ${DEL_KEYS} |
---|
[7646] | 291 | cd ${SETTE_DIR} |
---|
| 292 | . ./param.cfg |
---|
| 293 | . ./all_functions.sh |
---|
| 294 | . ./prepare_exe_dir.sh |
---|
| 295 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 296 | NPROC=32 |
---|
| 297 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
| 298 | cd ${EXE_DIR} |
---|
| 299 | set_namelist namelist_cfg cn_exp \"O2L3P_LONG\" |
---|
| 300 | set_namelist namelist_cfg nn_it000 1 |
---|
| 301 | set_namelist namelist_cfg nn_itend 150 |
---|
| 302 | set_namelist namelist_cfg nn_stock 75 |
---|
| 303 | set_namelist namelist_cfg ln_clobber .true. |
---|
| 304 | set_namelist namelist_cfg ln_read_cfg .true. |
---|
| 305 | set_namelist namelist_cfg ln_linssh .false. |
---|
| 306 | set_namelist namelist_cfg nn_fwb 0 |
---|
| 307 | set_namelist namelist_cfg jpni 4 |
---|
| 308 | set_namelist namelist_cfg jpnj 8 |
---|
| 309 | set_namelist namelist_cfg jpnij 32 |
---|
[9019] | 310 | set_namelist namelist_ice_cfg ln_icediachk .true. |
---|
| 311 | ## set_namelist namelist_ice_cfg ln_icediahsb .true. |
---|
[4147] | 312 | set_namelist namelist_top_cfg ln_trcdta .false. |
---|
[3520] | 313 | # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false |
---|
| 314 | # if not you need input files, and for tests is not necessary |
---|
[4147] | 315 | set_namelist namelist_pisces_cfg ln_presatm .false. |
---|
| 316 | set_namelist namelist_pisces_cfg ln_varpar .false. |
---|
| 317 | set_namelist namelist_pisces_cfg ln_dust .false. |
---|
| 318 | set_namelist namelist_pisces_cfg ln_solub .false. |
---|
| 319 | set_namelist namelist_pisces_cfg ln_river .false. |
---|
| 320 | set_namelist namelist_pisces_cfg ln_ndepo .false. |
---|
| 321 | set_namelist namelist_pisces_cfg ln_ironsed .false. |
---|
[7646] | 322 | set_namelist namelist_pisces_cfg ln_ironice .false. |
---|
[4147] | 323 | set_namelist namelist_pisces_cfg ln_hydrofe .false. |
---|
[4245] | 324 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 325 | set_xio_using_server iodef.xml true |
---|
| 326 | else |
---|
| 327 | set_xio_using_server iodef.xml false |
---|
| 328 | fi |
---|
[3520] | 329 | cd ${SETTE_DIR} |
---|
[7753] | 330 | . ./prepare_job.sh input_ORCA2_LIM3_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[3532] | 331 | |
---|
| 332 | cd ${SETTE_DIR} |
---|
[3520] | 333 | export TEST_NAME="SHORT" |
---|
[4252] | 334 | . ./prepare_exe_dir.sh |
---|
[3520] | 335 | cd ${EXE_DIR} |
---|
[7646] | 336 | set_namelist namelist_cfg cn_exp \"O2L3P_SHORT\" |
---|
[4147] | 337 | set_namelist namelist_cfg nn_it000 76 |
---|
| 338 | set_namelist namelist_cfg nn_itend 150 |
---|
| 339 | set_namelist namelist_cfg nn_stock 75 |
---|
| 340 | set_namelist namelist_cfg ln_rstart .true. |
---|
| 341 | set_namelist namelist_cfg nn_rstctl 2 |
---|
| 342 | set_namelist namelist_cfg ln_clobber .true. |
---|
[7646] | 343 | set_namelist namelist_cfg ln_read_cfg .true. |
---|
| 344 | set_namelist namelist_cfg ln_linssh .false. |
---|
[7715] | 345 | set_namelist namelist_cfg ln_icebergs .true. |
---|
[4316] | 346 | set_namelist namelist_cfg nn_fwb 0 |
---|
[7646] | 347 | set_namelist namelist_cfg jpni 4 |
---|
| 348 | set_namelist namelist_cfg jpnj 8 |
---|
| 349 | set_namelist namelist_cfg jpnij 32 |
---|
[9019] | 350 | set_namelist namelist_ice_cfg ln_icediachk .true. |
---|
| 351 | ## set_namelist namelist_ice_cfg ln_icediahsb .true. |
---|
[4147] | 352 | set_namelist namelist_top_cfg ln_rsttr .true. |
---|
| 353 | set_namelist namelist_top_cfg nn_rsttr 2 |
---|
[7646] | 354 | set_namelist namelist_cfg cn_ocerst_in \"O2L3P_LONG_00000075_restart\" |
---|
[9019] | 355 | set_namelist namelist_top_cfg cn_trcrst_in \"O2L3P_LONG_00000075_restart_trc\" |
---|
[7646] | 356 | set_namelist namelist_ice_cfg cn_icerst_in \"O2L3P_LONG_00000075_restart_ice\" |
---|
[3520] | 357 | # put ln_ironsed, ln_river, ln_ndepo, ln_dust |
---|
| 358 | # if not you need input files, and for tests is not necessary |
---|
[4147] | 359 | set_namelist namelist_pisces_cfg ln_presatm .false. |
---|
| 360 | set_namelist namelist_pisces_cfg ln_varpar .false. |
---|
| 361 | set_namelist namelist_pisces_cfg ln_dust .false. |
---|
| 362 | set_namelist namelist_pisces_cfg ln_solub .false. |
---|
| 363 | set_namelist namelist_pisces_cfg ln_river .false. |
---|
| 364 | set_namelist namelist_pisces_cfg ln_ndepo .false. |
---|
| 365 | set_namelist namelist_pisces_cfg ln_ironsed .false. |
---|
[7646] | 366 | set_namelist namelist_pisces_cfg ln_ironice .false. |
---|
[4147] | 367 | set_namelist namelist_pisces_cfg ln_hydrofe .false. |
---|
[3680] | 368 | # put ln_pisdmp to false : no restoring to global mean value |
---|
[4147] | 369 | set_namelist namelist_pisces_cfg ln_pisdmp .false. |
---|
[3537] | 370 | for (( i=1; i<=$NPROC; i++)) ; do |
---|
| 371 | L_NPROC=$(( $i - 1 )) |
---|
| 372 | L_NPROC=`printf "%04d\n" ${L_NPROC}` |
---|
[7646] | 373 | ln -sf ../LONG/O2L3P_LONG_00000075_restart_${L_NPROC}.nc . |
---|
| 374 | ln -sf ../LONG/O2L3P_LONG_00000075_restart_trc_${L_NPROC}.nc . |
---|
| 375 | ln -sf ../LONG/O2L3P_LONG_00000075_restart_ice_${L_NPROC}.nc . |
---|
[7715] | 376 | ln -sf ../LONG/O2L3P_LONG_icebergs_00000075_restart_${L_NPROC}.nc O2L3P_LONG_00000075_restart_icebergs_${L_NPROC}.nc |
---|
[3537] | 377 | done |
---|
[4245] | 378 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 379 | set_xio_using_server iodef.xml true |
---|
| 380 | else |
---|
| 381 | set_xio_using_server iodef.xml false |
---|
| 382 | fi |
---|
[3520] | 383 | cd ${SETTE_DIR} |
---|
[7753] | 384 | . ./prepare_job.sh input_ORCA2_LIM3_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[3520] | 385 | cd ${SETTE_DIR} |
---|
[3532] | 386 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
[3520] | 387 | |
---|
[7646] | 388 | ## Reproducibility tests for ORCA2_LIM3_PISCES |
---|
| 389 | export TEST_NAME="REPRO_4_8" |
---|
[7715] | 390 | cd ${CONFIG_DIR0} |
---|
[3520] | 391 | cd ${SETTE_DIR} |
---|
[4252] | 392 | . ./param.cfg |
---|
| 393 | . ./all_functions.sh |
---|
| 394 | . ./prepare_exe_dir.sh |
---|
[3520] | 395 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
[7646] | 396 | NPROC=32 |
---|
[4245] | 397 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
[3520] | 398 | cd ${EXE_DIR} |
---|
[9019] | 399 | set_namelist namelist_cfg cn_exp \"O2L3P_48\" |
---|
[4147] | 400 | set_namelist namelist_cfg nn_it000 1 |
---|
| 401 | set_namelist namelist_cfg nn_itend 75 |
---|
| 402 | set_namelist namelist_cfg nn_fwb 0 |
---|
| 403 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 404 | set_namelist namelist_cfg ln_clobber .true. |
---|
[7646] | 405 | set_namelist namelist_cfg ln_read_cfg .true. |
---|
| 406 | set_namelist namelist_cfg ln_linssh .false. |
---|
[7715] | 407 | set_namelist namelist_cfg ln_icebergs .true. |
---|
[4147] | 408 | set_namelist namelist_cfg jpni 4 |
---|
[7646] | 409 | set_namelist namelist_cfg jpnj 8 |
---|
| 410 | set_namelist namelist_cfg jpnij 32 |
---|
[9019] | 411 | set_namelist namelist_ice_cfg ln_icediachk .true. |
---|
| 412 | set_namelist namelist_ice_cfg ln_icediahsb .true. |
---|
[4147] | 413 | set_namelist namelist_top_cfg ln_trcdta .false. |
---|
[3520] | 414 | # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false |
---|
| 415 | # if not you need input files, and for tests is not necessary |
---|
[4147] | 416 | set_namelist namelist_pisces_cfg ln_presatm .false. |
---|
| 417 | set_namelist namelist_pisces_cfg ln_varpar .false. |
---|
| 418 | set_namelist namelist_pisces_cfg ln_dust .false. |
---|
| 419 | set_namelist namelist_pisces_cfg ln_solub .false. |
---|
| 420 | set_namelist namelist_pisces_cfg ln_river .false. |
---|
| 421 | set_namelist namelist_pisces_cfg ln_ndepo .false. |
---|
| 422 | set_namelist namelist_pisces_cfg ln_ironsed .false. |
---|
[7646] | 423 | set_namelist namelist_pisces_cfg ln_ironice .false. |
---|
[4147] | 424 | set_namelist namelist_pisces_cfg ln_hydrofe .false. |
---|
[3680] | 425 | # put ln_pisdmp to false : no restoring to global mean value |
---|
[4147] | 426 | set_namelist namelist_pisces_cfg ln_pisdmp .false. |
---|
[4245] | 427 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 428 | set_xio_using_server iodef.xml true |
---|
| 429 | else |
---|
| 430 | set_xio_using_server iodef.xml false |
---|
| 431 | fi |
---|
[3520] | 432 | cd ${SETTE_DIR} |
---|
[7753] | 433 | . ./prepare_job.sh input_ORCA2_LIM3_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[3520] | 434 | cd ${SETTE_DIR} |
---|
[3532] | 435 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
[3520] | 436 | |
---|
| 437 | cd ${SETTE_DIR} |
---|
[7646] | 438 | export TEST_NAME="REPRO_8_4" |
---|
[4252] | 439 | . ./prepare_exe_dir.sh |
---|
[3680] | 440 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
[7646] | 441 | NPROC=32 |
---|
[4245] | 442 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
[3520] | 443 | cd ${EXE_DIR} |
---|
[9019] | 444 | set_namelist namelist_cfg cn_exp \"O2L3P_84\" |
---|
[4147] | 445 | set_namelist namelist_cfg nn_it000 1 |
---|
| 446 | set_namelist namelist_cfg nn_itend 75 |
---|
| 447 | set_namelist namelist_cfg ln_clobber .true. |
---|
[7646] | 448 | set_namelist namelist_cfg ln_read_cfg .true. |
---|
[7715] | 449 | set_namelist namelist_cfg ln_linssh .false. |
---|
| 450 | set_namelist namelist_cfg ln_icebergs .true. |
---|
[4316] | 451 | set_namelist namelist_cfg nn_fwb 0 |
---|
[7646] | 452 | set_namelist namelist_cfg jpni 8 |
---|
| 453 | set_namelist namelist_cfg jpnj 4 |
---|
| 454 | set_namelist namelist_cfg jpnij 32 |
---|
[9019] | 455 | set_namelist namelist_ice_cfg ln_icediachk .true. |
---|
| 456 | set_namelist namelist_ice_cfg ln_icediahsb .true. |
---|
[4147] | 457 | set_namelist namelist_top_cfg ln_trcdta .false. |
---|
[3520] | 458 | # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false |
---|
| 459 | # if not you need input files, and for tests is not necessary |
---|
[4147] | 460 | set_namelist namelist_pisces_cfg ln_presatm .false. |
---|
| 461 | set_namelist namelist_pisces_cfg ln_varpar .false. |
---|
| 462 | set_namelist namelist_pisces_cfg ln_dust .false. |
---|
| 463 | set_namelist namelist_pisces_cfg ln_solub .false. |
---|
| 464 | set_namelist namelist_pisces_cfg ln_river .false. |
---|
| 465 | set_namelist namelist_pisces_cfg ln_ndepo .false. |
---|
| 466 | set_namelist namelist_pisces_cfg ln_ironsed .false. |
---|
[7646] | 467 | set_namelist namelist_pisces_cfg ln_ironice .false. |
---|
[4147] | 468 | set_namelist namelist_pisces_cfg ln_hydrofe .false. |
---|
[3680] | 469 | # put ln_pisdmp to false : no restoring to global mean value |
---|
[4147] | 470 | set_namelist namelist_pisces_cfg ln_pisdmp .false. |
---|
[4245] | 471 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 472 | set_xio_using_server iodef.xml true |
---|
| 473 | else |
---|
| 474 | set_xio_using_server iodef.xml false |
---|
| 475 | fi |
---|
[3520] | 476 | cd ${SETTE_DIR} |
---|
[7753] | 477 | . ./prepare_job.sh input_ORCA2_LIM3_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[3520] | 478 | cd ${SETTE_DIR} |
---|
| 479 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 480 | fi |
---|
| 481 | |
---|
| 482 | # TESTS FOR ORCA2_OFF_PISCES CONFIGURATION |
---|
[9019] | 483 | if [ ${config} -eq 3 ] ; then |
---|
[3520] | 484 | ## Restartability tests for ORCA2_OFF_PISCES |
---|
| 485 | export TEST_NAME="LONG" |
---|
[7715] | 486 | cd ${CONFIG_DIR0} |
---|
[9019] | 487 | . ./makenemo -m ${CMP_NAM} -n ORCA2OFFPIS_ST -r ORCA2_OFF_PISCES -j 8 del_key ${DEL_KEYS} |
---|
[3520] | 488 | cd ${SETTE_DIR} |
---|
[4252] | 489 | . ./param.cfg |
---|
| 490 | . ./all_functions.sh |
---|
| 491 | . ./prepare_exe_dir.sh |
---|
[3520] | 492 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
[7646] | 493 | NPROC=32 |
---|
[4245] | 494 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
[3520] | 495 | cd ${EXE_DIR} |
---|
[4147] | 496 | set_namelist namelist_cfg cn_exp \"OFFP_LONG\" |
---|
| 497 | set_namelist namelist_cfg nn_it000 1 |
---|
| 498 | set_namelist namelist_cfg nn_itend 40 |
---|
| 499 | set_namelist namelist_cfg nn_stock 20 |
---|
| 500 | set_namelist namelist_cfg ln_clobber .true. |
---|
[7646] | 501 | set_namelist namelist_cfg ln_read_cfg .true. |
---|
| 502 | set_namelist namelist_cfg ln_linssh .true. |
---|
| 503 | set_namelist namelist_cfg jpni 4 |
---|
| 504 | set_namelist namelist_cfg jpnj 8 |
---|
| 505 | set_namelist namelist_cfg jpnij 32 |
---|
[4147] | 506 | set_namelist namelist_top_cfg ln_trcdta .false. |
---|
[3520] | 507 | # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false |
---|
| 508 | # if not you need input files, and for tests is not necessary |
---|
[4147] | 509 | set_namelist namelist_pisces_cfg ln_presatm .false. |
---|
| 510 | set_namelist namelist_pisces_cfg ln_varpar .false. |
---|
| 511 | set_namelist namelist_pisces_cfg ln_dust .false. |
---|
| 512 | set_namelist namelist_pisces_cfg ln_solub .false. |
---|
| 513 | set_namelist namelist_pisces_cfg ln_river .false. |
---|
| 514 | set_namelist namelist_pisces_cfg ln_ndepo .false. |
---|
| 515 | set_namelist namelist_pisces_cfg ln_ironsed .false. |
---|
[7646] | 516 | set_namelist namelist_pisces_cfg ln_ironice .false. |
---|
[4147] | 517 | set_namelist namelist_pisces_cfg ln_hydrofe .false. |
---|
[3680] | 518 | # put ln_pisdmp to false : no restoring to global mean value |
---|
[4147] | 519 | set_namelist namelist_pisces_cfg ln_pisdmp .false. |
---|
[4245] | 520 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 521 | set_xio_using_server iodef.xml true |
---|
| 522 | else |
---|
| 523 | set_xio_using_server iodef.xml false |
---|
| 524 | fi |
---|
[3520] | 525 | cd ${SETTE_DIR} |
---|
[7753] | 526 | . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[3520] | 527 | |
---|
| 528 | cd ${SETTE_DIR} |
---|
| 529 | export TEST_NAME="SHORT" |
---|
[4252] | 530 | . ./prepare_exe_dir.sh |
---|
[3520] | 531 | cd ${EXE_DIR} |
---|
[4147] | 532 | set_namelist namelist_cfg cn_exp \"OFFP_SHORT\" |
---|
| 533 | set_namelist namelist_cfg nn_it000 21 |
---|
| 534 | set_namelist namelist_cfg nn_itend 40 |
---|
| 535 | set_namelist namelist_cfg nn_stock 20 |
---|
| 536 | set_namelist namelist_cfg ln_clobber .true. |
---|
[7646] | 537 | set_namelist namelist_cfg ln_read_cfg .true. |
---|
| 538 | set_namelist namelist_cfg ln_linssh .true. |
---|
| 539 | set_namelist namelist_cfg jpni 4 |
---|
| 540 | set_namelist namelist_cfg jpnj 8 |
---|
| 541 | set_namelist namelist_cfg jpnij 32 |
---|
[4147] | 542 | set_namelist namelist_top_cfg ln_rsttr .true. |
---|
| 543 | set_namelist namelist_top_cfg nn_rsttr 2 |
---|
| 544 | set_namelist namelist_top_cfg cn_trcrst_in \"OFFP_LONG_00000020_restart_trc\" |
---|
[3537] | 545 | for (( i=1; i<=$NPROC; i++)) ; do |
---|
| 546 | L_NPROC=$(( $i - 1 )) |
---|
| 547 | L_NPROC=`printf "%04d\n" ${L_NPROC}` |
---|
[3555] | 548 | ln -sf ../LONG/OFFP_LONG_00000020_restart_trc_${L_NPROC}.nc . |
---|
[3537] | 549 | done |
---|
[3520] | 550 | # put ln_ironsed, ln_river, ln_ndepo, ln_dust |
---|
| 551 | # if not you need input files, and for tests is not necessary |
---|
[4147] | 552 | set_namelist namelist_pisces_cfg ln_presatm .false. |
---|
| 553 | set_namelist namelist_pisces_cfg ln_varpar .false. |
---|
| 554 | set_namelist namelist_pisces_cfg ln_dust .false. |
---|
| 555 | set_namelist namelist_pisces_cfg ln_solub .false. |
---|
| 556 | set_namelist namelist_pisces_cfg ln_river .false. |
---|
| 557 | set_namelist namelist_pisces_cfg ln_ndepo .false. |
---|
| 558 | set_namelist namelist_pisces_cfg ln_ironsed .false. |
---|
[7646] | 559 | set_namelist namelist_pisces_cfg ln_ironice .false. |
---|
[4147] | 560 | set_namelist namelist_pisces_cfg ln_hydrofe .false. |
---|
[3680] | 561 | # put ln_pisdmp to false : no restoring to global mean value |
---|
[4147] | 562 | set_namelist namelist_pisces_cfg ln_pisdmp .false. |
---|
[4245] | 563 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 564 | set_xio_using_server iodef.xml true |
---|
| 565 | else |
---|
| 566 | set_xio_using_server iodef.xml false |
---|
| 567 | fi |
---|
[3520] | 568 | cd ${SETTE_DIR} |
---|
[7753] | 569 | . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[3520] | 570 | cd ${SETTE_DIR} |
---|
| 571 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 572 | |
---|
[3680] | 573 | ## Reproducibility tests for ORCA2_OFF_PISCES |
---|
[7646] | 574 | export TEST_NAME="REPRO_4_8" |
---|
[7715] | 575 | cd ${CONFIG_DIR0} |
---|
[3520] | 576 | cd ${SETTE_DIR} |
---|
[4252] | 577 | . ./param.cfg |
---|
| 578 | . ./all_functions.sh |
---|
| 579 | . ./prepare_exe_dir.sh |
---|
[3520] | 580 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
[7646] | 581 | NPROC=32 |
---|
[4245] | 582 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
[3520] | 583 | cd ${EXE_DIR} |
---|
[9019] | 584 | set_namelist namelist_cfg cn_exp \"OFFP_48\" |
---|
[4147] | 585 | set_namelist namelist_cfg nn_it000 1 |
---|
| 586 | set_namelist namelist_cfg nn_itend 40 |
---|
| 587 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 588 | set_namelist namelist_cfg ln_clobber .true. |
---|
[7646] | 589 | set_namelist namelist_cfg ln_read_cfg .true. |
---|
| 590 | set_namelist namelist_cfg ln_linssh .true. |
---|
[4147] | 591 | set_namelist namelist_cfg jpni 4 |
---|
[7646] | 592 | set_namelist namelist_cfg jpnj 8 |
---|
| 593 | set_namelist namelist_cfg jpnij 32 |
---|
[4147] | 594 | set_namelist namelist_top_cfg ln_trcdta .false. |
---|
[3520] | 595 | # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false |
---|
| 596 | # if not you need input files, and for tests is not necessary |
---|
[4147] | 597 | set_namelist namelist_pisces_cfg ln_presatm .false. |
---|
| 598 | set_namelist namelist_pisces_cfg ln_varpar .false. |
---|
| 599 | set_namelist namelist_pisces_cfg ln_dust .false. |
---|
| 600 | set_namelist namelist_pisces_cfg ln_solub .false. |
---|
| 601 | set_namelist namelist_pisces_cfg ln_river .false. |
---|
| 602 | set_namelist namelist_pisces_cfg ln_ndepo .false. |
---|
| 603 | set_namelist namelist_pisces_cfg ln_ironsed .false. |
---|
[7646] | 604 | set_namelist namelist_pisces_cfg ln_ironice .false. |
---|
[4147] | 605 | set_namelist namelist_pisces_cfg ln_hydrofe .false. |
---|
[3680] | 606 | # put ln_pisdmp to false : no restoring to global mean value |
---|
[4147] | 607 | set_namelist namelist_pisces_cfg ln_pisdmp .false. |
---|
[4245] | 608 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 609 | set_xio_using_server iodef.xml true |
---|
| 610 | else |
---|
| 611 | set_xio_using_server iodef.xml false |
---|
| 612 | fi |
---|
[3520] | 613 | cd ${SETTE_DIR} |
---|
[7753] | 614 | . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[3520] | 615 | cd ${SETTE_DIR} |
---|
[3532] | 616 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
[3520] | 617 | |
---|
| 618 | cd ${SETTE_DIR} |
---|
[7646] | 619 | export TEST_NAME="REPRO_8_4" |
---|
[4252] | 620 | . ./prepare_exe_dir.sh |
---|
[3680] | 621 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
[7646] | 622 | NPROC=32 |
---|
[4245] | 623 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
[3520] | 624 | cd ${EXE_DIR} |
---|
[9019] | 625 | set_namelist namelist_cfg cn_exp \"OFFP_84\" |
---|
[4147] | 626 | set_namelist namelist_cfg nn_it000 1 |
---|
| 627 | set_namelist namelist_cfg nn_itend 40 |
---|
| 628 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 629 | set_namelist namelist_cfg ln_clobber .true. |
---|
[7646] | 630 | set_namelist namelist_cfg ln_read_cfg .true. |
---|
| 631 | set_namelist namelist_cfg ln_linssh .true. |
---|
| 632 | set_namelist namelist_cfg jpni 8 |
---|
| 633 | set_namelist namelist_cfg jpnj 4 |
---|
| 634 | set_namelist namelist_cfg jpnij 32 |
---|
[4147] | 635 | set_namelist namelist_top_cfg ln_trcdta .false. |
---|
[3520] | 636 | # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false |
---|
| 637 | # if not you need input files, and for tests is not necessary |
---|
[4147] | 638 | set_namelist namelist_pisces_cfg ln_presatm .false. |
---|
| 639 | set_namelist namelist_pisces_cfg ln_varpar .false. |
---|
| 640 | set_namelist namelist_pisces_cfg ln_dust .false. |
---|
| 641 | set_namelist namelist_pisces_cfg ln_solub .false. |
---|
| 642 | set_namelist namelist_pisces_cfg ln_river .false. |
---|
| 643 | set_namelist namelist_pisces_cfg ln_ndepo .false. |
---|
| 644 | set_namelist namelist_pisces_cfg ln_ironsed .false. |
---|
[7646] | 645 | set_namelist namelist_pisces_cfg ln_ironice .false. |
---|
[4147] | 646 | set_namelist namelist_pisces_cfg ln_hydrofe .false. |
---|
[3680] | 647 | # put ln_pisdmp to false : no restoring to global mean value |
---|
[4147] | 648 | set_namelist namelist_pisces_cfg ln_pisdmp .false. |
---|
[4245] | 649 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 650 | set_xio_using_server iodef.xml true |
---|
| 651 | else |
---|
| 652 | set_xio_using_server iodef.xml false |
---|
| 653 | fi |
---|
[3520] | 654 | cd ${SETTE_DIR} |
---|
[7753] | 655 | . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[3520] | 656 | cd ${SETTE_DIR} |
---|
| 657 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 658 | fi |
---|
| 659 | |
---|
[3680] | 660 | # TESTS FOR AMM12 CONFIGURATION |
---|
[9019] | 661 | if [ ${config} -eq 4 ] ; then |
---|
[3532] | 662 | ## Restartability tests for AMM12 |
---|
| 663 | export TEST_NAME="LONG" |
---|
[7715] | 664 | cd ${CONFIG_DIR0} |
---|
[9019] | 665 | . ./makenemo -m ${CMP_NAM} -n AMM12_ST -r AMM12 -j 8 del_key ${DEL_KEYS} |
---|
[3520] | 666 | cd ${SETTE_DIR} |
---|
[4252] | 667 | . ./param.cfg |
---|
| 668 | . ./all_functions.sh |
---|
| 669 | . ./prepare_exe_dir.sh |
---|
[3520] | 670 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 671 | NPROC=32 |
---|
[4245] | 672 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
[3520] | 673 | cd ${EXE_DIR} |
---|
[9019] | 674 | set_namelist namelist_cfg cn_exp \"AMM12_LONG\" |
---|
[4147] | 675 | set_namelist namelist_cfg nn_it000 1 |
---|
[4252] | 676 | set_namelist namelist_cfg nn_itend 576 |
---|
| 677 | set_namelist namelist_cfg nn_stock 288 |
---|
[4147] | 678 | set_namelist namelist_cfg nn_fwb 0 |
---|
| 679 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 680 | set_namelist namelist_cfg ln_clobber .true. |
---|
[7646] | 681 | set_namelist namelist_cfg ln_read_cfg .true. |
---|
| 682 | set_namelist namelist_cfg ln_linssh .false. |
---|
[9019] | 683 | ##SF |
---|
| 684 | set_namelist namelist_cfg ln_lin .true. |
---|
| 685 | set_namelist namelist_cfg ln_loglayer .false. |
---|
| 686 | ##SF |
---|
[7646] | 687 | set_namelist namelist_cfg jpni 4 |
---|
| 688 | set_namelist namelist_cfg jpnj 8 |
---|
[4147] | 689 | set_namelist namelist_cfg jpnij 32 |
---|
[4245] | 690 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 691 | set_xio_using_server iodef.xml true |
---|
| 692 | else |
---|
| 693 | set_xio_using_server iodef.xml false |
---|
| 694 | fi |
---|
[3520] | 695 | cd ${SETTE_DIR} |
---|
[7753] | 696 | . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[3520] | 697 | |
---|
| 698 | cd ${SETTE_DIR} |
---|
[3532] | 699 | export TEST_NAME="SHORT" |
---|
[4379] | 700 | . ./prepare_exe_dir.sh |
---|
[3520] | 701 | cd ${EXE_DIR} |
---|
[9019] | 702 | set_namelist namelist_cfg cn_exp \"AMM12_SHORT\" |
---|
[4252] | 703 | set_namelist namelist_cfg nn_it000 289 |
---|
| 704 | set_namelist namelist_cfg nn_itend 576 |
---|
[4147] | 705 | set_namelist namelist_cfg nn_fwb 0 |
---|
| 706 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 707 | set_namelist namelist_cfg ln_clobber .true. |
---|
[7646] | 708 | set_namelist namelist_cfg ln_read_cfg .true. |
---|
| 709 | set_namelist namelist_cfg ln_linssh .false. |
---|
[9019] | 710 | ##SF |
---|
| 711 | set_namelist namelist_cfg ln_lin .true. |
---|
| 712 | set_namelist namelist_cfg ln_loglayer .false. |
---|
| 713 | ##SF |
---|
[7646] | 714 | set_namelist namelist_cfg jpni 4 |
---|
| 715 | set_namelist namelist_cfg jpnj 8 |
---|
[4147] | 716 | set_namelist namelist_cfg jpnij 32 |
---|
| 717 | set_namelist namelist_cfg ln_rstart .true. |
---|
| 718 | set_namelist namelist_cfg nn_rstctl 2 |
---|
[9019] | 719 | set_namelist namelist_cfg cn_ocerst_in \"AMM12_LONG_00000288_restart\" |
---|
[4252] | 720 | set_namelist namelist_cfg nn_date0 20120102 |
---|
[3537] | 721 | for (( i=1; i<=$NPROC; i++)) ; do |
---|
| 722 | L_NPROC=$(( $i - 1 )) |
---|
| 723 | L_NPROC=`printf "%04d\n" ${L_NPROC}` |
---|
[9019] | 724 | ln -sf ../LONG/AMM12_LONG_00000288_restart_${L_NPROC}.nc . |
---|
[3537] | 725 | done |
---|
[4245] | 726 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 727 | set_xio_using_server iodef.xml true |
---|
| 728 | else |
---|
| 729 | set_xio_using_server iodef.xml false |
---|
| 730 | fi |
---|
[3520] | 731 | cd ${SETTE_DIR} |
---|
[7753] | 732 | . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[3520] | 733 | cd ${SETTE_DIR} |
---|
[3532] | 734 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
[3520] | 735 | |
---|
[3680] | 736 | ## Reproducibility tests for AMM12 |
---|
| 737 | export TEST_NAME="REPRO_8_4" |
---|
[7715] | 738 | cd ${CONFIG_DIR0} |
---|
[3520] | 739 | cd ${SETTE_DIR} |
---|
[4252] | 740 | . ./param.cfg |
---|
| 741 | . ./all_functions.sh |
---|
| 742 | . ./prepare_exe_dir.sh |
---|
[3520] | 743 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 744 | NPROC=32 |
---|
[4245] | 745 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
[3520] | 746 | cd ${EXE_DIR} |
---|
[9019] | 747 | set_namelist namelist_cfg cn_exp \"AMM12_84\" |
---|
[4147] | 748 | set_namelist namelist_cfg nn_it000 1 |
---|
| 749 | set_namelist namelist_cfg nn_itend 576 |
---|
| 750 | set_namelist namelist_cfg nn_fwb 0 |
---|
| 751 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 752 | set_namelist namelist_cfg ln_clobber .true. |
---|
[7646] | 753 | set_namelist namelist_cfg ln_read_cfg .true. |
---|
| 754 | set_namelist namelist_cfg ln_linssh .false. |
---|
[9019] | 755 | ##SF |
---|
| 756 | set_namelist namelist_cfg ln_lin .true. |
---|
| 757 | set_namelist namelist_cfg ln_loglayer .false. |
---|
| 758 | ##SF |
---|
[4147] | 759 | set_namelist namelist_cfg jpni 8 |
---|
| 760 | set_namelist namelist_cfg jpnj 4 |
---|
| 761 | set_namelist namelist_cfg jpnij 32 |
---|
[4245] | 762 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 763 | set_xio_using_server iodef.xml true |
---|
| 764 | else |
---|
| 765 | set_xio_using_server iodef.xml false |
---|
| 766 | fi |
---|
[3520] | 767 | cd ${SETTE_DIR} |
---|
[7753] | 768 | . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[3520] | 769 | cd ${SETTE_DIR} |
---|
| 770 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 771 | |
---|
| 772 | cd ${SETTE_DIR} |
---|
[3680] | 773 | export TEST_NAME="REPRO_4_8" |
---|
[4252] | 774 | . ./prepare_exe_dir.sh |
---|
[5478] | 775 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 776 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
[3520] | 777 | cd ${EXE_DIR} |
---|
[9019] | 778 | set_namelist namelist_cfg cn_exp \"AMM12_48\" |
---|
[4147] | 779 | set_namelist namelist_cfg nn_it000 1 |
---|
| 780 | set_namelist namelist_cfg nn_itend 576 |
---|
| 781 | set_namelist namelist_cfg nn_fwb 0 |
---|
| 782 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 783 | set_namelist namelist_cfg ln_clobber .true. |
---|
[7646] | 784 | set_namelist namelist_cfg ln_read_cfg .true. |
---|
| 785 | set_namelist namelist_cfg ln_linssh .false. |
---|
[9019] | 786 | ##SF |
---|
| 787 | set_namelist namelist_cfg ln_lin .true. |
---|
| 788 | set_namelist namelist_cfg ln_loglayer .false. |
---|
| 789 | ##SF |
---|
[4147] | 790 | set_namelist namelist_cfg jpni 4 |
---|
| 791 | set_namelist namelist_cfg jpnj 8 |
---|
| 792 | set_namelist namelist_cfg jpnij 32 |
---|
[4245] | 793 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 794 | set_xio_using_server iodef.xml true |
---|
| 795 | else |
---|
| 796 | set_xio_using_server iodef.xml false |
---|
| 797 | fi |
---|
[3520] | 798 | cd ${SETTE_DIR} |
---|
[7753] | 799 | . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[3520] | 800 | cd ${SETTE_DIR} |
---|
[3532] | 801 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
[3520] | 802 | fi |
---|
| 803 | |
---|
| 804 | |
---|
[7646] | 805 | # TESTS FOR ORCA2_SAS_LIM3 CONFIGURATION |
---|
[9019] | 806 | if [ ${config} -eq 5 ] ; then |
---|
[4147] | 807 | ## Restartability tests for SAS |
---|
| 808 | export TEST_NAME="LONG" |
---|
[7715] | 809 | cd ${CONFIG_DIR0} |
---|
[9019] | 810 | . ./makenemo -m ${CMP_NAM} -n SAS_ST -r ORCA2_SAS_LIM3 -j 8 del_key ${DEL_KEYS} |
---|
[4147] | 811 | cd ${SETTE_DIR} |
---|
[4252] | 812 | . ./param.cfg |
---|
| 813 | . ./all_functions.sh |
---|
| 814 | . ./prepare_exe_dir.sh |
---|
[4147] | 815 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 816 | NPROC=32 |
---|
[7646] | 817 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
[4147] | 818 | cd ${EXE_DIR} |
---|
| 819 | set_namelist namelist_cfg cn_exp \"SAS\" |
---|
| 820 | set_namelist namelist_cfg nn_it000 1 |
---|
[8583] | 821 | set_namelist namelist_cfg nn_itend 240 |
---|
| 822 | set_namelist namelist_cfg nn_stock 120 |
---|
[4147] | 823 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 824 | set_namelist namelist_cfg ln_clobber .true. |
---|
[7646] | 825 | set_namelist namelist_cfg ln_read_cfg .true. |
---|
| 826 | set_namelist namelist_cfg ln_linssh .true. |
---|
[4316] | 827 | set_namelist namelist_cfg nn_fwb 0 |
---|
[7646] | 828 | set_namelist namelist_cfg jpni 4 |
---|
| 829 | set_namelist namelist_cfg jpnj 8 |
---|
[4147] | 830 | set_namelist namelist_cfg jpnij 32 |
---|
[9019] | 831 | set_namelist namelist_ice_cfg ln_icediachk .true. |
---|
[4245] | 832 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 833 | set_xio_using_server iodef.xml true |
---|
| 834 | else |
---|
| 835 | set_xio_using_server iodef.xml false |
---|
| 836 | fi |
---|
[4147] | 837 | cd ${SETTE_DIR} |
---|
[7753] | 838 | . ./prepare_job.sh input_SAS.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[4147] | 839 | |
---|
| 840 | cd ${SETTE_DIR} |
---|
| 841 | export TEST_NAME="SHORT" |
---|
[4252] | 842 | . ./prepare_exe_dir.sh |
---|
[4147] | 843 | cd ${EXE_DIR} |
---|
| 844 | set_namelist namelist_cfg cn_exp \"SAS\" |
---|
[8583] | 845 | set_namelist namelist_cfg nn_it000 121 |
---|
| 846 | set_namelist namelist_cfg nn_itend 240 |
---|
[4147] | 847 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 848 | set_namelist namelist_cfg ln_clobber .true. |
---|
[7646] | 849 | set_namelist namelist_cfg ln_read_cfg .true. |
---|
| 850 | set_namelist namelist_cfg ln_linssh .true. |
---|
[4316] | 851 | set_namelist namelist_cfg nn_fwb 0 |
---|
[7646] | 852 | set_namelist namelist_cfg jpni 4 |
---|
| 853 | set_namelist namelist_cfg jpnj 8 |
---|
[4147] | 854 | set_namelist namelist_cfg jpnij 32 |
---|
[7646] | 855 | set_namelist namelist_cfg ln_rstart .true. |
---|
[4147] | 856 | set_namelist namelist_cfg nn_rstctl 2 |
---|
[9019] | 857 | set_namelist namelist_cfg nn_date0 010109 |
---|
[8583] | 858 | set_namelist namelist_cfg cn_ocerst_in \"SAS_00000120_restart\" |
---|
| 859 | set_namelist namelist_ice_cfg cn_icerst_in \"SAS_00000120_restart_ice\" |
---|
[4245] | 860 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 861 | set_xio_using_server iodef.xml true |
---|
| 862 | else |
---|
| 863 | set_xio_using_server iodef.xml false |
---|
| 864 | fi |
---|
[7646] | 865 | for (( i=1; i<=$NPROC; i++)) ; do |
---|
| 866 | L_NPROC=$(( $i - 1 )) |
---|
| 867 | L_NPROC=`printf "%04d\n" ${L_NPROC}` |
---|
[8583] | 868 | ln -sf ../LONG/SAS_00000120_restart_${L_NPROC}.nc . |
---|
| 869 | ln -sf ../LONG/SAS_00000120_restart_ice_${L_NPROC}.nc . |
---|
[7646] | 870 | done |
---|
[4147] | 871 | cd ${SETTE_DIR} |
---|
[7753] | 872 | . ./prepare_job.sh input_SAS.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[4147] | 873 | cd ${SETTE_DIR} |
---|
| 874 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 875 | fi |
---|
| 876 | |
---|
[7646] | 877 | # TESTS FOR ISOMIP CONFIGURATION |
---|
[9019] | 878 | if [ ${config} -eq 6 ] ; then |
---|
[4990] | 879 | ## Restartability tests for ISOMIP |
---|
| 880 | export TEST_NAME="LONG" |
---|
[7715] | 881 | cd ${CONFIG_DIR0} |
---|
[9019] | 882 | . ./makenemo -m ${CMP_NAM} -n ISOMIP_ST -r ISOMIP -a TEST_CASES -j 8 del_key ${DEL_KEYS} |
---|
[4990] | 883 | cd ${SETTE_DIR} |
---|
| 884 | . ./param.cfg |
---|
| 885 | . ./all_functions.sh |
---|
| 886 | . ./prepare_exe_dir.sh |
---|
| 887 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
[7646] | 888 | NPROC=32 |
---|
[4990] | 889 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
| 890 | cd ${EXE_DIR} |
---|
| 891 | set_namelist namelist_cfg cn_exp \"ISOMIP_LONG\" |
---|
| 892 | set_namelist namelist_cfg nn_it000 1 |
---|
| 893 | set_namelist namelist_cfg nn_itend 96 |
---|
| 894 | set_namelist namelist_cfg nn_stock 48 |
---|
| 895 | set_namelist namelist_cfg ln_clobber .true. |
---|
[9019] | 896 | #SF come back to reading of domain_cfg for ISOMIP |
---|
| 897 | #SF change after merge, when usrdef_zgr will be correct |
---|
| 898 | set_namelist namelist_cfg ln_read_cfg .true. |
---|
| 899 | set_namelist namelist_cfg cn_domcfg ISOMIP_zps_domcfg |
---|
| 900 | #SF come back to reading of domain_cfg for ISOMIP |
---|
| 901 | set_namelist namelist_cfg ln_icebergs .false. |
---|
| 902 | set_namelist namelist_cfg ln_bergdia .false. |
---|
| 903 | #SF TO BE REMOVED AFTER BUG CORRECTION OF ln_not_lin drg |
---|
| 904 | set_namelist namelist_cfg ln_non_lin .false. |
---|
| 905 | set_namelist namelist_cfg ln_lin .true. |
---|
| 906 | #SF TO BE REMOVED AFTER BUG CORRECTION OF ln_not_lin drg |
---|
[7646] | 907 | set_namelist namelist_cfg jpni 4 |
---|
| 908 | set_namelist namelist_cfg jpnj 8 |
---|
| 909 | set_namelist namelist_cfg jpnij 32 |
---|
[4990] | 910 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 911 | set_xio_using_server iodef.xml true |
---|
| 912 | else |
---|
| 913 | set_xio_using_server iodef.xml false |
---|
| 914 | fi |
---|
| 915 | cd ${SETTE_DIR} |
---|
[7753] | 916 | . ./prepare_job.sh input_ISOMIP.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[4147] | 917 | |
---|
[4990] | 918 | cd ${SETTE_DIR} |
---|
| 919 | export TEST_NAME="SHORT" |
---|
| 920 | . ./prepare_exe_dir.sh |
---|
| 921 | cd ${EXE_DIR} |
---|
| 922 | set_namelist namelist_cfg cn_exp \"ISOMIP_SHORT\" |
---|
| 923 | set_namelist namelist_cfg nn_it000 49 |
---|
| 924 | set_namelist namelist_cfg nn_itend 96 |
---|
| 925 | set_namelist namelist_cfg nn_stock 48 |
---|
| 926 | set_namelist namelist_cfg ln_rstart .true. |
---|
| 927 | set_namelist namelist_cfg nn_rstctl 2 |
---|
| 928 | set_namelist namelist_cfg ln_clobber .true. |
---|
[9019] | 929 | #SF come back to reading of domain_cfg for ISOMIP |
---|
| 930 | #SF change after merge, when usrdef_zgr will be correct |
---|
| 931 | set_namelist namelist_cfg ln_read_cfg .true. |
---|
| 932 | set_namelist namelist_cfg cn_domcfg ISOMIP_zps_domcfg |
---|
| 933 | #SF come back to reading of domain_cfg for ISOMIP |
---|
| 934 | set_namelist namelist_cfg ln_bergdia .false. |
---|
| 935 | #SF TO BE REMOVED AFTER BUG CORRECTION OF ln_not_lin drg |
---|
| 936 | #SF TO BE REMOVED AFTER BUG CORRECTION OF ln_not_lin drg |
---|
| 937 | set_namelist namelist_cfg ln_non_lin .false. |
---|
| 938 | set_namelist namelist_cfg ln_lin .true. |
---|
| 939 | #SF TO BE REMOVED AFTER BUG CORRECTION OF ln_not_lin drg |
---|
[7646] | 940 | set_namelist namelist_cfg jpni 4 |
---|
| 941 | set_namelist namelist_cfg jpnj 8 |
---|
| 942 | set_namelist namelist_cfg jpnij 32 |
---|
[4990] | 943 | set_namelist namelist_cfg cn_ocerst_in \"ISOMIP_LONG_00000048_restart\" |
---|
| 944 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 945 | set_xio_using_server iodef.xml true |
---|
| 946 | else |
---|
| 947 | set_xio_using_server iodef.xml false |
---|
| 948 | fi |
---|
| 949 | for (( i=1; i<=$NPROC; i++)) ; do |
---|
| 950 | L_NPROC=$(( $i - 1 )) |
---|
| 951 | L_NPROC=`printf "%04d\n" ${L_NPROC}` |
---|
| 952 | ln -sf ../LONG/ISOMIP_LONG_00000048_restart_${L_NPROC}.nc . |
---|
| 953 | done |
---|
| 954 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 955 | set_xio_using_server iodef.xml true |
---|
| 956 | else |
---|
| 957 | set_xio_using_server iodef.xml false |
---|
| 958 | fi |
---|
| 959 | cd ${SETTE_DIR} |
---|
[7753] | 960 | . ./prepare_job.sh input_ISOMIP.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[4990] | 961 | cd ${SETTE_DIR} |
---|
| 962 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
[9019] | 963 | |
---|
[4990] | 964 | ## Reproducibility tests for ISOMIP |
---|
[7646] | 965 | export TEST_NAME="REPRO_4_8" |
---|
[7715] | 966 | cd ${CONFIG_DIR0} |
---|
[4990] | 967 | cd ${SETTE_DIR} |
---|
| 968 | . ./param.cfg |
---|
| 969 | . ./all_functions.sh |
---|
| 970 | . ./prepare_exe_dir.sh |
---|
| 971 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
[7646] | 972 | NPROC=32 |
---|
[4990] | 973 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
| 974 | cd ${EXE_DIR} |
---|
[9019] | 975 | set_namelist namelist_cfg cn_exp \"ISOMIP_48\" |
---|
[4990] | 976 | set_namelist namelist_cfg nn_it000 1 |
---|
| 977 | set_namelist namelist_cfg nn_itend 48 |
---|
| 978 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 979 | set_namelist namelist_cfg ln_clobber .true. |
---|
[9019] | 980 | #SF come back to reading of domain_cfg for ISOMIP |
---|
| 981 | #SF change after merge, when usrdef_zgr will be correct |
---|
| 982 | set_namelist namelist_cfg ln_read_cfg .true. |
---|
| 983 | set_namelist namelist_cfg cn_domcfg ISOMIP_zps_domcfg |
---|
| 984 | #SF come back to reading of domain_cfg for ISOMIP |
---|
| 985 | set_namelist namelist_cfg ln_bergdia .false. |
---|
| 986 | #SF TO BE REMOVED AFTER BUG CORRECTION OF ln_not_lin drg |
---|
| 987 | #SF TO BE REMOVED AFTER BUG CORRECTION OF ln_not_lin drg |
---|
| 988 | set_namelist namelist_cfg ln_non_lin .false. |
---|
| 989 | set_namelist namelist_cfg ln_lin .true. |
---|
| 990 | #SF TO BE REMOVED AFTER BUG CORRECTION OF ln_not_lin drg |
---|
[7646] | 991 | set_namelist namelist_cfg jpni 4 |
---|
| 992 | set_namelist namelist_cfg jpnj 8 |
---|
| 993 | set_namelist namelist_cfg jpnij 32 |
---|
[4990] | 994 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 995 | set_xio_using_server iodef.xml true |
---|
| 996 | else |
---|
| 997 | set_xio_using_server iodef.xml false |
---|
| 998 | fi |
---|
| 999 | cd ${SETTE_DIR} |
---|
[7753] | 1000 | . ./prepare_job.sh input_ISOMIP.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[4990] | 1001 | cd ${SETTE_DIR} |
---|
| 1002 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 1003 | |
---|
| 1004 | cd ${SETTE_DIR} |
---|
[7646] | 1005 | export TEST_NAME="REPRO_8_4" |
---|
[4990] | 1006 | . ./prepare_exe_dir.sh |
---|
| 1007 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
[7646] | 1008 | NPROC=32 |
---|
[4990] | 1009 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
| 1010 | cd ${EXE_DIR} |
---|
[9019] | 1011 | set_namelist namelist_cfg cn_exp \"ISOMIP_84\" |
---|
[4990] | 1012 | set_namelist namelist_cfg nn_it000 1 |
---|
| 1013 | set_namelist namelist_cfg nn_itend 48 |
---|
| 1014 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 1015 | set_namelist namelist_cfg ln_clobber .true. |
---|
[9019] | 1016 | #SF come back to reading of domain_cfg for ISOMIP |
---|
| 1017 | #SF change after merge, when usrdef_zgr will be correct |
---|
| 1018 | set_namelist namelist_cfg ln_read_cfg .true. |
---|
| 1019 | set_namelist namelist_cfg cn_domcfg ISOMIP_zps_domcfg |
---|
| 1020 | #SF come back to reading of domain_cfg for ISOMIP |
---|
| 1021 | set_namelist namelist_cfg ln_bergdia .false. |
---|
| 1022 | #SF TO BE REMOVED AFTER BUG CORRECTION OF ln_not_lin drg |
---|
| 1023 | #SF TO BE REMOVED AFTER BUG CORRECTION OF ln_not_lin drg |
---|
| 1024 | set_namelist namelist_cfg ln_non_lin .false. |
---|
| 1025 | set_namelist namelist_cfg ln_lin .true. |
---|
| 1026 | #SF TO BE REMOVED AFTER BUG CORRECTION OF ln_not_lin drg |
---|
[7646] | 1027 | set_namelist namelist_cfg jpni 8 |
---|
| 1028 | set_namelist namelist_cfg jpnj 4 |
---|
| 1029 | set_namelist namelist_cfg jpnij 32 |
---|
[4990] | 1030 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 1031 | set_xio_using_server iodef.xml true |
---|
| 1032 | else |
---|
| 1033 | set_xio_using_server iodef.xml false |
---|
| 1034 | fi |
---|
| 1035 | cd ${SETTE_DIR} |
---|
[7753] | 1036 | . ./prepare_job.sh input_ISOMIP.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[4990] | 1037 | cd ${SETTE_DIR} |
---|
| 1038 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 1039 | |
---|
| 1040 | fi |
---|
| 1041 | |
---|
| 1042 | ## Test assimilation interface code, OBS and ASM for reproducibility |
---|
| 1043 | ## Restartability not tested (ASM code not restartable while increments are being applied) |
---|
[9019] | 1044 | if [ ${config} -eq 7 ] ; then |
---|
[7715] | 1045 | ## Reproducibility tests for ORCA2_LIM3_OBS |
---|
[7646] | 1046 | export TEST_NAME="REPRO_4_8" |
---|
[7715] | 1047 | cd ${CONFIG_DIR0} |
---|
[9019] | 1048 | . ./makenemo -m ${CMP_NAM} -n ORCA2_LIM3_OBS_ST -r ORCA2_LIM3_PISCES -d "OPA_SRC LIM_SRC_3" -j 8 add_key "key_asminc" del_key "key_top" |
---|
[4990] | 1049 | cd ${SETTE_DIR} |
---|
| 1050 | . ./param.cfg |
---|
| 1051 | . ./all_functions.sh |
---|
| 1052 | . ./prepare_exe_dir.sh |
---|
| 1053 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
[7646] | 1054 | NPROC=32 |
---|
[4990] | 1055 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
| 1056 | cd ${EXE_DIR} |
---|
[9019] | 1057 | set_namelist namelist_cfg cn_exp \"O2L3OBS_48\" |
---|
[4990] | 1058 | set_namelist namelist_cfg nn_it000 1 |
---|
| 1059 | set_namelist namelist_cfg nn_itend 75 |
---|
| 1060 | set_namelist namelist_cfg nn_fwb 0 |
---|
| 1061 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 1062 | set_namelist namelist_cfg ln_clobber .true. |
---|
[7646] | 1063 | set_namelist namelist_cfg ln_read_cfg .true. |
---|
| 1064 | set_namelist namelist_cfg ln_linssh .false. |
---|
[7722] | 1065 | set_namelist namelist_cfg ln_icebergs .false. |
---|
[4990] | 1066 | set_namelist namelist_cfg jpni 4 |
---|
[7646] | 1067 | set_namelist namelist_cfg jpnj 8 |
---|
| 1068 | set_namelist namelist_cfg jpnij 32 |
---|
[6140] | 1069 | set_namelist namelist_cfg ln_diaobs .true. |
---|
[4990] | 1070 | set_namelist namelist_cfg ln_t3d .true. |
---|
| 1071 | set_namelist namelist_cfg ln_s3d .true. |
---|
| 1072 | set_namelist namelist_cfg ln_sst .true. |
---|
| 1073 | set_namelist namelist_cfg ln_sla .true. |
---|
[6140] | 1074 | set_namelist namelist_cfg ln_sic .true. |
---|
| 1075 | set_namelist namelist_cfg ln_vel3d .true. |
---|
[4990] | 1076 | set_namelist namelist_cfg ln_bkgwri .true. |
---|
| 1077 | set_namelist namelist_cfg ln_trainc .true. |
---|
| 1078 | set_namelist namelist_cfg ln_dyninc .true. |
---|
| 1079 | set_namelist namelist_cfg ln_sshinc .true. |
---|
| 1080 | set_namelist namelist_cfg ln_asmiau .true. |
---|
[7722] | 1081 | #remove all useless options for pisces (due to ORCA2_LIM3_PISCES reference configuration) |
---|
| 1082 | set_namelist namelist_top_cfg ln_trcdta .false. |
---|
| 1083 | # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false |
---|
| 1084 | # if not you need input files, and for tests is not necessary |
---|
| 1085 | set_namelist namelist_pisces_cfg ln_presatm .false. |
---|
| 1086 | set_namelist namelist_pisces_cfg ln_varpar .false. |
---|
| 1087 | set_namelist namelist_pisces_cfg ln_dust .false. |
---|
| 1088 | set_namelist namelist_pisces_cfg ln_solub .false. |
---|
| 1089 | set_namelist namelist_pisces_cfg ln_river .false. |
---|
| 1090 | set_namelist namelist_pisces_cfg ln_ndepo .false. |
---|
| 1091 | set_namelist namelist_pisces_cfg ln_ironsed .false. |
---|
| 1092 | set_namelist namelist_pisces_cfg ln_ironice .false. |
---|
| 1093 | set_namelist namelist_pisces_cfg ln_hydrofe .false. |
---|
[4990] | 1094 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 1095 | set_xio_using_server iodef.xml true |
---|
| 1096 | else |
---|
| 1097 | set_xio_using_server iodef.xml false |
---|
| 1098 | fi |
---|
| 1099 | cd ${SETTE_DIR} |
---|
[7753] | 1100 | . ./prepare_job.sh input_ORCA2_LIM3_OBS.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[4990] | 1101 | cd ${SETTE_DIR} |
---|
| 1102 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 1103 | |
---|
| 1104 | cd ${SETTE_DIR} |
---|
[7646] | 1105 | export TEST_NAME="REPRO_8_4" |
---|
[4990] | 1106 | . ./prepare_exe_dir.sh |
---|
| 1107 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
[7646] | 1108 | NPROC=32 |
---|
[4990] | 1109 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
| 1110 | cd ${EXE_DIR} |
---|
[9019] | 1111 | set_namelist namelist_cfg cn_exp \"O2L3OBS_84\" |
---|
[4990] | 1112 | set_namelist namelist_cfg nn_it000 1 |
---|
| 1113 | set_namelist namelist_cfg nn_itend 75 |
---|
| 1114 | set_namelist namelist_cfg nn_fwb 0 |
---|
| 1115 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 1116 | set_namelist namelist_cfg ln_clobber .true. |
---|
[7646] | 1117 | set_namelist namelist_cfg ln_read_cfg .true. |
---|
| 1118 | set_namelist namelist_cfg ln_linssh .false. |
---|
[7722] | 1119 | set_namelist namelist_cfg ln_icebergs .false. |
---|
[7646] | 1120 | set_namelist namelist_cfg jpni 8 |
---|
| 1121 | set_namelist namelist_cfg jpnj 4 |
---|
| 1122 | set_namelist namelist_cfg jpnij 32 |
---|
[6140] | 1123 | set_namelist namelist_cfg ln_diaobs .true. |
---|
[4990] | 1124 | set_namelist namelist_cfg ln_t3d .true. |
---|
| 1125 | set_namelist namelist_cfg ln_s3d .true. |
---|
| 1126 | set_namelist namelist_cfg ln_sst .true. |
---|
| 1127 | set_namelist namelist_cfg ln_sla .true. |
---|
[6140] | 1128 | set_namelist namelist_cfg ln_sic .true. |
---|
| 1129 | set_namelist namelist_cfg ln_vel3d .true. |
---|
[4990] | 1130 | set_namelist namelist_cfg ln_bkgwri .true. |
---|
| 1131 | set_namelist namelist_cfg ln_trainc .true. |
---|
| 1132 | set_namelist namelist_cfg ln_dyninc .true. |
---|
| 1133 | set_namelist namelist_cfg ln_sshinc .true. |
---|
| 1134 | set_namelist namelist_cfg ln_asmiau .true. |
---|
[7722] | 1135 | #remove all useless options for pisces (due to ORCA2_LIM3_PISCES reference configuration) |
---|
| 1136 | set_namelist namelist_top_cfg ln_trcdta .false. |
---|
| 1137 | # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false |
---|
| 1138 | # if not you need input files, and for tests is not necessary |
---|
| 1139 | set_namelist namelist_pisces_cfg ln_presatm .false. |
---|
| 1140 | set_namelist namelist_pisces_cfg ln_varpar .false. |
---|
| 1141 | set_namelist namelist_pisces_cfg ln_dust .false. |
---|
| 1142 | set_namelist namelist_pisces_cfg ln_solub .false. |
---|
| 1143 | set_namelist namelist_pisces_cfg ln_river .false. |
---|
| 1144 | set_namelist namelist_pisces_cfg ln_ndepo .false. |
---|
| 1145 | set_namelist namelist_pisces_cfg ln_ironsed .false. |
---|
| 1146 | set_namelist namelist_pisces_cfg ln_ironice .false. |
---|
| 1147 | set_namelist namelist_pisces_cfg ln_hydrofe .false. |
---|
[4990] | 1148 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 1149 | set_xio_using_server iodef.xml true |
---|
| 1150 | else |
---|
| 1151 | set_xio_using_server iodef.xml false |
---|
| 1152 | fi |
---|
| 1153 | cd ${SETTE_DIR} |
---|
[7753] | 1154 | . ./prepare_job.sh input_ORCA2_LIM3_OBS.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[4990] | 1155 | cd ${SETTE_DIR} |
---|
| 1156 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 1157 | fi |
---|
[9019] | 1158 | # TEST FOR ORCA2_LIM3_AGRIF : AGULHAS AGRIF |
---|
| 1159 | if [ ${config} -eq 8 ] ; then |
---|
| 1160 | ## Restartability tests |
---|
[5589] | 1161 | export TEST_NAME="LONG" |
---|
[7715] | 1162 | cd ${CONFIG_DIR0} |
---|
[9019] | 1163 | . ./makenemo -m ${CMP_NAM} -n ORCA2AGR_ST -r ORCA2_LIM3_PISCES -d "OPA_SRC LIM_SRC_3 NST_SRC" -j 8 add_key "key_agrif" del_key "key_top" |
---|
[5589] | 1164 | cd ${SETTE_DIR} |
---|
| 1165 | . ./param.cfg |
---|
| 1166 | . ./all_functions.sh |
---|
| 1167 | . ./prepare_exe_dir.sh |
---|
| 1168 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 1169 | NPROC=4 |
---|
| 1170 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
| 1171 | cd ${EXE_DIR} |
---|
[9019] | 1172 | set_namelist namelist_cfg cn_exp \"O2AGRIF_LONG\" |
---|
[5589] | 1173 | set_namelist namelist_cfg nn_it000 1 |
---|
| 1174 | set_namelist namelist_cfg nn_itend 150 |
---|
| 1175 | set_namelist namelist_cfg nn_stock 75 |
---|
| 1176 | set_namelist namelist_cfg ln_clobber .true. |
---|
[7646] | 1177 | set_namelist namelist_cfg ln_read_cfg .true. |
---|
[5589] | 1178 | set_namelist namelist_cfg nn_fwb 0 |
---|
| 1179 | set_namelist namelist_cfg jpni 2 |
---|
| 1180 | set_namelist namelist_cfg jpnj 2 |
---|
| 1181 | set_namelist namelist_cfg jpnij 4 |
---|
[9019] | 1182 | set_namelist 1_namelist_cfg cn_exp \"O2AGRIF_LONG\" |
---|
[5589] | 1183 | set_namelist 1_namelist_cfg nn_it000 1 |
---|
| 1184 | set_namelist 1_namelist_cfg nn_itend 300 |
---|
| 1185 | set_namelist 1_namelist_cfg nn_stock 150 |
---|
[8284] | 1186 | set_namelist 1_namelist_cfg nn_fsbc 1 |
---|
[5589] | 1187 | set_namelist 1_namelist_cfg ln_ctl .false. |
---|
| 1188 | set_namelist 1_namelist_cfg ln_clobber .true. |
---|
[7646] | 1189 | set_namelist 1_namelist_cfg ln_read_cfg .true. |
---|
[9028] | 1190 | set_namelist 1_namelist_cfg ln_linssh .false. |
---|
[9019] | 1191 | set_namelist 1_namelist_cfg ln_zdfiwm .false. |
---|
[9028] | 1192 | set_namelist 1_namelist_cfg ln_hpg_sco .true. |
---|
| 1193 | set_namelist 1_namelist_cfg ln_hpg_zps .false. |
---|
[5589] | 1194 | # |
---|
| 1195 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 1196 | set_xio_using_server iodef.xml true |
---|
| 1197 | else |
---|
| 1198 | set_xio_using_server iodef.xml false |
---|
| 1199 | fi |
---|
| 1200 | cd ${SETTE_DIR} |
---|
[7753] | 1201 | . ./prepare_job.sh input_ORCA2_LIM3_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[5589] | 1202 | |
---|
| 1203 | cd ${SETTE_DIR} |
---|
| 1204 | export TEST_NAME="SHORT" |
---|
| 1205 | . ./prepare_exe_dir.sh |
---|
| 1206 | cd ${EXE_DIR} |
---|
[9019] | 1207 | set_namelist namelist_cfg cn_exp \"O2AGRIF_SHORT\" |
---|
[5589] | 1208 | set_namelist namelist_cfg nn_it000 76 |
---|
| 1209 | set_namelist namelist_cfg nn_itend 150 |
---|
| 1210 | set_namelist namelist_cfg nn_stock 75 |
---|
| 1211 | set_namelist namelist_cfg ln_rstart .true. |
---|
| 1212 | set_namelist namelist_cfg nn_rstctl 2 |
---|
| 1213 | set_namelist namelist_cfg ln_clobber .true. |
---|
[7646] | 1214 | set_namelist namelist_cfg ln_read_cfg .true. |
---|
[9025] | 1215 | set_namelist namelist_cfg ln_linssh .false. |
---|
[5589] | 1216 | set_namelist namelist_cfg nn_fwb 0 |
---|
| 1217 | set_namelist namelist_cfg jpni 2 |
---|
| 1218 | set_namelist namelist_cfg jpnj 2 |
---|
| 1219 | set_namelist namelist_cfg jpnij 4 |
---|
[9019] | 1220 | set_namelist 1_namelist_cfg cn_exp \"O2AGRIF_SHORT\" |
---|
[5589] | 1221 | set_namelist 1_namelist_cfg nn_it000 151 |
---|
| 1222 | set_namelist 1_namelist_cfg nn_itend 300 |
---|
| 1223 | set_namelist 1_namelist_cfg nn_stock 150 |
---|
[8284] | 1224 | set_namelist 1_namelist_cfg nn_fsbc 1 |
---|
[5589] | 1225 | set_namelist 1_namelist_cfg ln_rstart .true. |
---|
| 1226 | set_namelist 1_namelist_cfg nn_rstctl 2 |
---|
| 1227 | set_namelist 1_namelist_cfg ln_clobber .true. |
---|
[7646] | 1228 | set_namelist 1_namelist_cfg ln_read_cfg .true. |
---|
[9019] | 1229 | set_namelist 1_namelist_cfg ln_zdfiwm .false. |
---|
[9028] | 1230 | set_namelist 1_namelist_cfg ln_hpg_sco .true. |
---|
| 1231 | set_namelist 1_namelist_cfg ln_hpg_zps .false. |
---|
[9019] | 1232 | set_namelist namelist_cfg cn_ocerst_in \"O2AGRIF_LONG_00000075_restart\" |
---|
| 1233 | set_namelist namelist_ice_cfg cn_icerst_in \"O2AGRIF_LONG_00000075_restart_ice\" |
---|
| 1234 | set_namelist 1_namelist_cfg cn_ocerst_in \"O2AGRIF_LONG_00000150_restart\" |
---|
| 1235 | set_namelist 1_namelist_ice_cfg cn_icerst_in \"O2AGRIF_LONG_00000150_restart_ice\" |
---|
[5589] | 1236 | |
---|
| 1237 | for (( i=1; i<=$NPROC; i++)) ; do |
---|
| 1238 | L_NPROC=$(( $i - 1 )) |
---|
| 1239 | L_NPROC=`printf "%04d\n" ${L_NPROC}` |
---|
[9019] | 1240 | ln -sf ../LONG/O2AGRIF_LONG_00000075_restart_${L_NPROC}.nc . |
---|
| 1241 | ln -sf ../LONG/O2AGRIF_LONG_00000075_restart_ice_${L_NPROC}.nc . |
---|
| 1242 | ln -sf ../LONG/1_O2AGRIF_LONG_00000150_restart_${L_NPROC}.nc . |
---|
| 1243 | ln -sf ../LONG/1_O2AGRIF_LONG_00000150_restart_ice_${L_NPROC}.nc . |
---|
[5589] | 1244 | done |
---|
| 1245 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 1246 | set_xio_using_server iodef.xml true |
---|
| 1247 | else |
---|
| 1248 | set_xio_using_server iodef.xml false |
---|
| 1249 | fi |
---|
| 1250 | cd ${SETTE_DIR} |
---|
[7753] | 1251 | . ./prepare_job.sh input_ORCA2_LIM3_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[5589] | 1252 | cd ${SETTE_DIR} |
---|
| 1253 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 1254 | |
---|
[9019] | 1255 | |
---|
[7715] | 1256 | ## Reproducibility tests for ORCA2_LIM3_AGRIF |
---|
[5589] | 1257 | export TEST_NAME="REPRO_4_4" |
---|
[7715] | 1258 | cd ${CONFIG_DIR0} |
---|
[5589] | 1259 | cd ${SETTE_DIR} |
---|
| 1260 | . ./param.cfg |
---|
| 1261 | . ./all_functions.sh |
---|
| 1262 | . ./prepare_exe_dir.sh |
---|
| 1263 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 1264 | NPROC=16 |
---|
| 1265 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
| 1266 | cd ${EXE_DIR} |
---|
[9019] | 1267 | set_namelist namelist_cfg cn_exp \"O2AGRIF_44\" |
---|
[5589] | 1268 | set_namelist namelist_cfg nn_it000 1 |
---|
| 1269 | set_namelist namelist_cfg nn_itend 75 |
---|
| 1270 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 1271 | set_namelist namelist_cfg ln_clobber .true. |
---|
[7646] | 1272 | set_namelist namelist_cfg ln_read_cfg .true. |
---|
[9025] | 1273 | set_namelist namelist_cfg ln_linssh .false. |
---|
[5589] | 1274 | set_namelist namelist_cfg nn_fwb 0 |
---|
| 1275 | set_namelist namelist_cfg jpni 4 |
---|
| 1276 | set_namelist namelist_cfg jpnj 4 |
---|
| 1277 | set_namelist namelist_cfg jpnij 16 |
---|
| 1278 | set_namelist 1_namelist_cfg nn_it000 1 |
---|
| 1279 | set_namelist 1_namelist_cfg nn_itend 150 |
---|
[8284] | 1280 | set_namelist 1_namelist_cfg nn_fsbc 1 |
---|
[5589] | 1281 | set_namelist 1_namelist_cfg ln_ctl .false. |
---|
| 1282 | set_namelist 1_namelist_cfg ln_clobber .true. |
---|
[7646] | 1283 | set_namelist 1_namelist_cfg ln_read_cfg .true. |
---|
[9019] | 1284 | set_namelist 1_namelist_cfg ln_zdfiwm .false. |
---|
[9028] | 1285 | set_namelist 1_namelist_cfg ln_hpg_sco .true. |
---|
| 1286 | set_namelist 1_namelist_cfg ln_hpg_zps .false. |
---|
[5589] | 1287 | |
---|
| 1288 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 1289 | set_xio_using_server iodef.xml true |
---|
| 1290 | else |
---|
| 1291 | set_xio_using_server iodef.xml false |
---|
| 1292 | fi |
---|
| 1293 | cd ${SETTE_DIR} |
---|
[7753] | 1294 | . ./prepare_job.sh input_ORCA2_LIM3_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[5589] | 1295 | cd ${SETTE_DIR} |
---|
| 1296 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 1297 | |
---|
| 1298 | cd ${SETTE_DIR} |
---|
| 1299 | export TEST_NAME="REPRO_2_8" |
---|
| 1300 | . ./prepare_exe_dir.sh |
---|
| 1301 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 1302 | NPROC=16 |
---|
| 1303 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
| 1304 | cd ${EXE_DIR} |
---|
[9019] | 1305 | set_namelist namelist_cfg cn_exp \"O2AGRIF_28\" |
---|
[5589] | 1306 | set_namelist namelist_cfg nn_it000 1 |
---|
| 1307 | set_namelist namelist_cfg nn_itend 75 |
---|
| 1308 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 1309 | set_namelist namelist_cfg ln_clobber .true. |
---|
[7646] | 1310 | set_namelist namelist_cfg ln_read_cfg .true. |
---|
[9025] | 1311 | set_namelist namelist_cfg ln_linssh .false. |
---|
[5589] | 1312 | set_namelist namelist_cfg nn_fwb 0 |
---|
| 1313 | set_namelist namelist_cfg jpni 2 |
---|
| 1314 | set_namelist namelist_cfg jpnj 8 |
---|
| 1315 | set_namelist namelist_cfg jpnij 16 |
---|
| 1316 | set_namelist 1_namelist_cfg nn_it000 1 |
---|
| 1317 | set_namelist 1_namelist_cfg nn_itend 150 |
---|
[8284] | 1318 | set_namelist 1_namelist_cfg nn_fsbc 1 |
---|
[5589] | 1319 | set_namelist 1_namelist_cfg ln_ctl .false. |
---|
[9019] | 1320 | set_namelist 1_namelist_cfg nn_fsbc 1 |
---|
[5589] | 1321 | set_namelist 1_namelist_cfg ln_clobber .true. |
---|
[7646] | 1322 | set_namelist 1_namelist_cfg ln_read_cfg .true. |
---|
[9019] | 1323 | set_namelist 1_namelist_cfg ln_zdfiwm .false. |
---|
[9028] | 1324 | set_namelist 1_namelist_cfg ln_hpg_sco .true. |
---|
| 1325 | set_namelist 1_namelist_cfg ln_hpg_zps .false. |
---|
[5589] | 1326 | |
---|
| 1327 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 1328 | set_xio_using_server iodef.xml true |
---|
| 1329 | else |
---|
| 1330 | set_xio_using_server iodef.xml false |
---|
| 1331 | fi |
---|
| 1332 | cd ${SETTE_DIR} |
---|
[7753] | 1333 | . ./prepare_job.sh input_ORCA2_LIM3_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[5589] | 1334 | cd ${SETTE_DIR} |
---|
| 1335 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 1336 | fi |
---|
| 1337 | |
---|
[9019] | 1338 | # test code corruption with AGRIF |
---|
| 1339 | if [ ${config} -eq 9 ] ; then |
---|
| 1340 | |
---|
| 1341 | # Compile with AGRIF but run with no zoom |
---|
| 1342 | export TEST_NAME="AGRIFNOZ" |
---|
| 1343 | cd ${CONFIG_DIR0} |
---|
| 1344 | . ./makenemo -m ${CMP_NAM} -n ORCA2AGUL_NOZOOM_ST -r ORCA2_LIM3_PISCES -d "OPA_SRC LIM_SRC_3 NST_SRC" -j 8 add_key "key_agrif" del_key "key_top" |
---|
| 1345 | cd ${SETTE_DIR} |
---|
| 1346 | . ./param.cfg |
---|
| 1347 | . ./all_functions.sh |
---|
| 1348 | . ./prepare_exe_dir.sh |
---|
| 1349 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 1350 | NPROC=4 |
---|
| 1351 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
| 1352 | cd ${EXE_DIR} |
---|
| 1353 | set_namelist namelist_cfg cn_exp \"AGRIFNOZ_SHORT\" |
---|
| 1354 | set_namelist namelist_cfg nn_it000 1 |
---|
| 1355 | set_namelist namelist_cfg nn_itend 75 |
---|
| 1356 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 1357 | set_namelist namelist_cfg ln_clobber .true. |
---|
| 1358 | set_namelist namelist_cfg ln_read_cfg .true. |
---|
[9028] | 1359 | set_namelist namelist_cfg ln_linssh .false. |
---|
| 1360 | set_namelist namelist_cfg ln_hpg_sco .true. |
---|
| 1361 | set_namelist namelist_cfg ln_hpg_zps .false. |
---|
[9019] | 1362 | set_namelist namelist_cfg nn_fwb 0 |
---|
| 1363 | set_namelist namelist_cfg jpni 2 |
---|
| 1364 | set_namelist namelist_cfg jpnj 2 |
---|
| 1365 | set_namelist namelist_cfg jpnij 4 |
---|
| 1366 | set_namelist namelist_cfg ln_icebergs .false. |
---|
| 1367 | # |
---|
| 1368 | # Set the number of fine grids to zero: |
---|
| 1369 | sed -i "1s/.*/0/" ${EXE_DIR}/AGRIF_FixedGrids.in |
---|
| 1370 | |
---|
| 1371 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 1372 | set_xio_using_server iodef.xml true |
---|
| 1373 | else |
---|
| 1374 | set_xio_using_server iodef.xml false |
---|
| 1375 | fi |
---|
| 1376 | cd ${SETTE_DIR} |
---|
| 1377 | . ./prepare_job.sh input_ORCA2_LIM3_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
| 1378 | cd ${SETTE_DIR} |
---|
| 1379 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 1380 | |
---|
| 1381 | fi |
---|
| 1382 | |
---|
| 1383 | if [ ${config} -eq 10 ] ; then |
---|
| 1384 | # Compile with same option as 9 = ORCA2AGUL_NOZOOM, except ne key_agrif to check AGRIF does not hurt... |
---|
| 1385 | export TEST_NAME="AGRIFNO" |
---|
| 1386 | cd ${CONFIG_DIR0} |
---|
| 1387 | . ./makenemo -m ${CMP_NAM} -n ORCA2AGUL_NOAGR_ST -r ORCA2_LIM3_PISCES -d "OPA_SRC LIM_SRC_3 NST_SRC" -j 8 del_key "key_top" |
---|
| 1388 | cd ${SETTE_DIR} |
---|
| 1389 | . ./param.cfg |
---|
| 1390 | . ./all_functions.sh |
---|
| 1391 | . ./prepare_exe_dir.sh |
---|
| 1392 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 1393 | NPROC=4 |
---|
| 1394 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
| 1395 | cd ${EXE_DIR} |
---|
| 1396 | set_namelist namelist_cfg cn_exp \"AGRIFNO_SHORT\" |
---|
| 1397 | set_namelist namelist_cfg nn_it000 1 |
---|
| 1398 | set_namelist namelist_cfg nn_itend 75 |
---|
| 1399 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 1400 | set_namelist namelist_cfg ln_clobber .true. |
---|
| 1401 | set_namelist namelist_cfg ln_read_cfg .true. |
---|
[9028] | 1402 | set_namelist namelist_cfg ln_linssh .false. |
---|
| 1403 | set_namelist namelist_cfg ln_hpg_sco .true. |
---|
| 1404 | set_namelist namelist_cfg ln_hpg_zps .false. |
---|
[9019] | 1405 | set_namelist namelist_cfg nn_fwb 0 |
---|
| 1406 | set_namelist namelist_cfg jpni 2 |
---|
| 1407 | set_namelist namelist_cfg jpnj 2 |
---|
| 1408 | set_namelist namelist_cfg jpnij 4 |
---|
| 1409 | set_namelist namelist_cfg ln_icebergs .false. |
---|
| 1410 | # |
---|
| 1411 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 1412 | set_xio_using_server iodef.xml true |
---|
| 1413 | else |
---|
| 1414 | set_xio_using_server iodef.xml false |
---|
| 1415 | fi |
---|
| 1416 | cd ${SETTE_DIR} |
---|
| 1417 | . ./prepare_job.sh input_ORCA2_LIM3_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
| 1418 | cd ${SETTE_DIR} |
---|
| 1419 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 1420 | |
---|
| 1421 | fi |
---|
| 1422 | |
---|
[3520] | 1423 | done |
---|