[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 |
---|
| 90 | COMPILER=x3750_ADA |
---|
| 91 | export BATCH_COMMAND_PAR="llsubmit" |
---|
| 92 | export BATCH_COMMAND_SEQ=$BATCH_COMMAND_PAR |
---|
| 93 | export INTERACT_FLAG="no" |
---|
| 94 | export MPIRUN_FLAG="yes" |
---|
| 95 | export USING_XIOS="yes" |
---|
[3520] | 96 | # |
---|
[4245] | 97 | export DEL_KEYS="key_iomput" |
---|
| 98 | if [ ${USING_XIOS} == "yes" ] |
---|
| 99 | then |
---|
| 100 | export DEL_KEYS="" |
---|
| 101 | fi |
---|
[3520] | 102 | # |
---|
[4245] | 103 | # Settings which control the use of stand alone servers (only relevant if using xios) |
---|
[3520] | 104 | # |
---|
[4245] | 105 | export USING_MPMD="no" |
---|
| 106 | export NUM_XIOSERVERS=4 |
---|
| 107 | export JOB_PREFIX=batch-mpmd |
---|
[3520] | 108 | # |
---|
[4245] | 109 | if [ ${USING_MPMD} == "no" ] |
---|
| 110 | then |
---|
| 111 | export NUM_XIOSERVERS=0 |
---|
| 112 | export JOB_PREFIX=batch |
---|
| 113 | fi |
---|
[3520] | 114 | # |
---|
| 115 | # |
---|
[4245] | 116 | if [ ${USING_MPMD} == "yes" ] && [ ${USING_XIOS} == "no"] |
---|
| 117 | then |
---|
| 118 | echo "Incompatible choices. MPMD mode requires the XIOS server" |
---|
| 119 | exit |
---|
| 120 | fi |
---|
[3520] | 121 | # |
---|
| 122 | |
---|
| 123 | # Directory to run the tests |
---|
| 124 | SETTE_DIR=$(cd $(dirname "$0"); pwd) |
---|
| 125 | MAIN_DIR=${SETTE_DIR%/SETTE} |
---|
| 126 | CONFIG_DIR=${MAIN_DIR}/CONFIG |
---|
| 127 | TOOLS_DIR=${MAIN_DIR}/TOOLS |
---|
| 128 | COMPIL_DIR=${TOOLS_DIR}/COMPILE |
---|
| 129 | |
---|
| 130 | CMP_NAM=${1:-$COMPILER} |
---|
| 131 | # Copy job_batch_COMPILER file for specific compiler into job_batch_template |
---|
| 132 | cd ${SETTE_DIR} |
---|
[4245] | 133 | cp BATCH_TEMPLATE/${JOB_PREFIX}-${COMPILER} job_batch_template || exit |
---|
[3520] | 134 | |
---|
[4147] | 135 | for config in 1 2 3 4 5 6 7 8 9 10 11 |
---|
| 136 | |
---|
[3520] | 137 | do |
---|
| 138 | |
---|
[3680] | 139 | # TESTS FOR GYRE CONFIGURATION |
---|
[3520] | 140 | if [ ${config} -eq 1 ] ; then |
---|
[3680] | 141 | ## Restartability tests for GYRE |
---|
[3520] | 142 | export TEST_NAME="LONG" |
---|
[4147] | 143 | cd ${CONFIG_DIR} |
---|
[4245] | 144 | . ./makenemo -m ${CMP_NAM} -n GYRE_LONG -r GYRE -j 8 del_key ${DEL_KEYS} |
---|
[3520] | 145 | cd ${SETTE_DIR} |
---|
[4252] | 146 | . ./param.cfg |
---|
| 147 | . ./all_functions.sh |
---|
| 148 | . ./prepare_exe_dir.sh |
---|
[3520] | 149 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
[3532] | 150 | NPROC=4 |
---|
[4245] | 151 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
[4147] | 152 | cd ${EXE_DIR} |
---|
| 153 | set_namelist namelist_cfg cn_exp \"GYRE_LONG\" |
---|
| 154 | set_namelist namelist_cfg nn_it000 1 |
---|
| 155 | set_namelist namelist_cfg nn_itend 120 |
---|
| 156 | set_namelist namelist_cfg nn_stock 60 |
---|
| 157 | set_namelist namelist_cfg ln_clobber .true. |
---|
| 158 | set_namelist namelist_cfg nn_solv 2 |
---|
| 159 | set_namelist namelist_cfg jpni 2 |
---|
| 160 | set_namelist namelist_cfg jpnj 2 |
---|
| 161 | set_namelist namelist_cfg jpnij 4 |
---|
[4245] | 162 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 163 | set_xio_using_server iodef.xml true |
---|
| 164 | else |
---|
| 165 | set_xio_using_server iodef.xml false |
---|
| 166 | fi |
---|
| 167 | cd ${SETTE_DIR} |
---|
| 168 | . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[3520] | 169 | |
---|
| 170 | cd ${SETTE_DIR} |
---|
| 171 | export TEST_NAME="SHORT" |
---|
[4252] | 172 | . ./prepare_exe_dir.sh |
---|
[3520] | 173 | cd ${EXE_DIR} |
---|
[4147] | 174 | set_namelist namelist_cfg cn_exp \"GYRE_SHORT\" |
---|
| 175 | set_namelist namelist_cfg nn_it000 61 |
---|
| 176 | set_namelist namelist_cfg nn_itend 120 |
---|
| 177 | set_namelist namelist_cfg nn_stock 60 |
---|
| 178 | set_namelist namelist_cfg ln_rstart .true. |
---|
| 179 | set_namelist namelist_cfg nn_rstctl 2 |
---|
| 180 | set_namelist namelist_cfg ln_clobber .true. |
---|
| 181 | set_namelist namelist_cfg nn_solv 2 |
---|
| 182 | set_namelist namelist_cfg jpni 2 |
---|
| 183 | set_namelist namelist_cfg jpnj 2 |
---|
| 184 | set_namelist namelist_cfg jpnij 4 |
---|
| 185 | set_namelist namelist_cfg cn_ocerst_in \"GYRE_LONG_00000060_restart\" |
---|
[4245] | 186 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 187 | set_xio_using_server iodef.xml true |
---|
| 188 | else |
---|
| 189 | set_xio_using_server iodef.xml false |
---|
| 190 | fi |
---|
[3537] | 191 | for (( i=1; i<=$NPROC; i++)) ; do |
---|
| 192 | L_NPROC=$(( $i - 1 )) |
---|
| 193 | L_NPROC=`printf "%04d\n" ${L_NPROC}` |
---|
[3680] | 194 | ln -sf ../LONG/GYRE_LONG_00000060_restart_${L_NPROC}.nc . |
---|
[3537] | 195 | done |
---|
[4245] | 196 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 197 | set_xio_using_server iodef.xml true |
---|
| 198 | else |
---|
| 199 | set_xio_using_server iodef.xml false |
---|
| 200 | fi |
---|
[3520] | 201 | cd ${SETTE_DIR} |
---|
[4245] | 202 | . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[3520] | 203 | cd ${SETTE_DIR} |
---|
[3532] | 204 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
[3520] | 205 | fi |
---|
| 206 | |
---|
| 207 | if [ ${config} -eq 2 ] ; then |
---|
[3680] | 208 | ## Reproducibility tests for GYRE |
---|
[3520] | 209 | export TEST_NAME="REPRO_1_4" |
---|
[4147] | 210 | cd ${CONFIG_DIR} |
---|
[4245] | 211 | . ./makenemo -m ${CMP_NAM} -n GYRE_4 -r GYRE -j 8 add_key "key_mpp_rep" del_key ${DEL_KEYS} |
---|
[3520] | 212 | cd ${SETTE_DIR} |
---|
[4252] | 213 | . ./param.cfg |
---|
| 214 | . ./all_functions.sh |
---|
| 215 | . ./prepare_exe_dir.sh |
---|
[3520] | 216 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 217 | NPROC=4 |
---|
[4245] | 218 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
[3520] | 219 | cd ${EXE_DIR} |
---|
[4147] | 220 | set_namelist namelist_cfg cn_exp \"GYRE_14\" |
---|
| 221 | set_namelist namelist_cfg nn_it000 1 |
---|
| 222 | set_namelist namelist_cfg nn_itend 60 |
---|
| 223 | set_namelist namelist_cfg nn_fwb 0 |
---|
| 224 | set_namelist namelist_cfg nn_bench 0 |
---|
| 225 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 226 | set_namelist namelist_cfg ln_clobber .true. |
---|
| 227 | set_namelist namelist_cfg nn_solv 2 |
---|
| 228 | set_namelist namelist_cfg jpni 1 |
---|
| 229 | set_namelist namelist_cfg jpnj 4 |
---|
| 230 | set_namelist namelist_cfg jpnij 4 |
---|
[4245] | 231 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 232 | set_xio_using_server iodef.xml true |
---|
| 233 | else |
---|
| 234 | set_xio_using_server iodef.xml false |
---|
| 235 | fi |
---|
[3520] | 236 | cd ${SETTE_DIR} |
---|
[4245] | 237 | . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[3520] | 238 | cd ${SETTE_DIR} |
---|
| 239 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 240 | |
---|
| 241 | cd ${SETTE_DIR} |
---|
| 242 | export TEST_NAME="REPRO_2_2" |
---|
[4252] | 243 | . ./prepare_exe_dir.sh |
---|
[3680] | 244 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 245 | NPROC=4 |
---|
[4245] | 246 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
[3520] | 247 | cd ${EXE_DIR} |
---|
[4147] | 248 | set_namelist namelist_cfg cn_exp \"GYRE_22\" |
---|
| 249 | set_namelist namelist_cfg nn_it000 1 |
---|
| 250 | set_namelist namelist_cfg nn_itend 60 |
---|
| 251 | set_namelist namelist_cfg nn_fwb 0 |
---|
| 252 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 253 | set_namelist namelist_cfg ln_clobber .true. |
---|
| 254 | set_namelist namelist_cfg nn_solv 2 |
---|
| 255 | set_namelist namelist_cfg jpni 2 |
---|
| 256 | set_namelist namelist_cfg jpnj 2 |
---|
| 257 | set_namelist namelist_cfg jpnij 4 |
---|
[4245] | 258 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 259 | set_xio_using_server iodef.xml true |
---|
| 260 | else |
---|
| 261 | set_xio_using_server iodef.xml false |
---|
| 262 | fi |
---|
[3520] | 263 | cd ${SETTE_DIR} |
---|
[4245] | 264 | . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[3520] | 265 | cd ${SETTE_DIR} |
---|
| 266 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
[3532] | 267 | |
---|
[3520] | 268 | fi |
---|
| 269 | |
---|
| 270 | # TESTS FOR ORCA2_LIM_PISCES CONFIGURATION |
---|
| 271 | if [ ${config} -eq 3 ] ; then |
---|
| 272 | ## Restartability tests for ORCA2_LIM_PISCES |
---|
| 273 | export TEST_NAME="LONG" |
---|
[4147] | 274 | cd ${CONFIG_DIR} |
---|
[4245] | 275 | . ./makenemo -m ${CMP_NAM} -n ORCA2LIMPIS_LONG -r ORCA2_LIM_PISCES -j 8 del_key ${DEL_KEYS} |
---|
[3520] | 276 | cd ${SETTE_DIR} |
---|
[4252] | 277 | . ./param.cfg |
---|
| 278 | . ./all_functions.sh |
---|
| 279 | . ./prepare_exe_dir.sh |
---|
[3520] | 280 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
[3532] | 281 | NPROC=4 |
---|
[4245] | 282 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
[3520] | 283 | cd ${EXE_DIR} |
---|
[4147] | 284 | set_namelist namelist_cfg cn_exp \"O2LP_LONG\" |
---|
| 285 | set_namelist namelist_cfg nn_it000 1 |
---|
| 286 | set_namelist namelist_cfg nn_itend 150 |
---|
| 287 | set_namelist namelist_cfg nn_stock 75 |
---|
| 288 | set_namelist namelist_cfg ln_clobber .true. |
---|
| 289 | set_namelist namelist_cfg jpni 2 |
---|
| 290 | set_namelist namelist_cfg jpnj 2 |
---|
| 291 | set_namelist namelist_cfg jpnij 4 |
---|
| 292 | set_namelist namelist_cfg nn_solv 2 |
---|
| 293 | set_namelist namelist_top_cfg ln_trcdta .false. |
---|
| 294 | set_namelist namelist_top_cfg ln_diatrc .false. |
---|
[3520] | 295 | # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false |
---|
| 296 | # if not you need input files, and for tests is not necessary |
---|
[4147] | 297 | set_namelist namelist_pisces_cfg ln_presatm .false. |
---|
| 298 | set_namelist namelist_pisces_cfg ln_varpar .false. |
---|
| 299 | set_namelist namelist_pisces_cfg ln_dust .false. |
---|
| 300 | set_namelist namelist_pisces_cfg ln_solub .false. |
---|
| 301 | set_namelist namelist_pisces_cfg ln_river .false. |
---|
| 302 | set_namelist namelist_pisces_cfg ln_ndepo .false. |
---|
| 303 | set_namelist namelist_pisces_cfg ln_ironsed .false. |
---|
| 304 | set_namelist namelist_pisces_cfg ln_hydrofe .false. |
---|
[4245] | 305 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 306 | set_xio_using_server iodef.xml true |
---|
| 307 | else |
---|
| 308 | set_xio_using_server iodef.xml false |
---|
| 309 | fi |
---|
[3520] | 310 | cd ${SETTE_DIR} |
---|
[4245] | 311 | . ./prepare_job.sh input_ORCA2_LIM_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[3532] | 312 | |
---|
| 313 | cd ${SETTE_DIR} |
---|
[3520] | 314 | export TEST_NAME="SHORT" |
---|
[4252] | 315 | . ./prepare_exe_dir.sh |
---|
[3520] | 316 | cd ${EXE_DIR} |
---|
[4147] | 317 | set_namelist namelist_cfg cn_exp \"O2LP_SHORT\" |
---|
| 318 | set_namelist namelist_cfg nn_it000 76 |
---|
| 319 | set_namelist namelist_cfg nn_itend 150 |
---|
| 320 | set_namelist namelist_cfg nn_stock 75 |
---|
| 321 | set_namelist namelist_cfg ln_rstart .true. |
---|
| 322 | set_namelist namelist_cfg nn_rstctl 2 |
---|
| 323 | set_namelist namelist_cfg ln_clobber .true. |
---|
| 324 | set_namelist namelist_cfg jpni 2 |
---|
| 325 | set_namelist namelist_cfg jpnj 2 |
---|
| 326 | set_namelist namelist_cfg jpnij 4 |
---|
| 327 | set_namelist namelist_cfg nn_solv 2 |
---|
| 328 | set_namelist namelist_top_cfg ln_diatrc .false. |
---|
| 329 | set_namelist namelist_top_cfg ln_rsttr .true. |
---|
| 330 | set_namelist namelist_top_cfg nn_rsttr 2 |
---|
| 331 | set_namelist namelist_cfg cn_ocerst_in \"O2LP_LONG_00000075_restart\" |
---|
| 332 | set_namelist namelist_ice_cfg cn_icerst_in \"O2LP_LONG_00000075_restart_ice\" |
---|
| 333 | set_namelist namelist_top_cfg cn_trcrst_in \"O2LP_LONG_00000075_restart_trc\" |
---|
[3520] | 334 | # put ln_ironsed, ln_river, ln_ndepo, ln_dust |
---|
| 335 | # if not you need input files, and for tests is not necessary |
---|
[4147] | 336 | set_namelist namelist_pisces_cfg ln_presatm .false. |
---|
| 337 | set_namelist namelist_pisces_cfg ln_varpar .false. |
---|
| 338 | set_namelist namelist_pisces_cfg ln_dust .false. |
---|
| 339 | set_namelist namelist_pisces_cfg ln_solub .false. |
---|
| 340 | set_namelist namelist_pisces_cfg ln_river .false. |
---|
| 341 | set_namelist namelist_pisces_cfg ln_ndepo .false. |
---|
| 342 | set_namelist namelist_pisces_cfg ln_ironsed .false. |
---|
| 343 | set_namelist namelist_pisces_cfg ln_hydrofe .false. |
---|
[3680] | 344 | # put ln_pisdmp to false : no restoring to global mean value |
---|
[4147] | 345 | set_namelist namelist_pisces_cfg ln_pisdmp .false. |
---|
[3537] | 346 | for (( i=1; i<=$NPROC; i++)) ; do |
---|
| 347 | L_NPROC=$(( $i - 1 )) |
---|
| 348 | L_NPROC=`printf "%04d\n" ${L_NPROC}` |
---|
[3555] | 349 | ln -sf ../LONG/O2LP_LONG_00000075_restart_${L_NPROC}.nc . |
---|
| 350 | ln -sf ../LONG/O2LP_LONG_00000075_restart_trc_${L_NPROC}.nc . |
---|
| 351 | ln -sf ../LONG/O2LP_LONG_00000075_restart_ice_${L_NPROC}.nc . |
---|
[3537] | 352 | done |
---|
[4245] | 353 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 354 | set_xio_using_server iodef.xml true |
---|
| 355 | else |
---|
| 356 | set_xio_using_server iodef.xml false |
---|
| 357 | fi |
---|
[3520] | 358 | cd ${SETTE_DIR} |
---|
[4245] | 359 | . ./prepare_job.sh input_ORCA2_LIM_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[3520] | 360 | cd ${SETTE_DIR} |
---|
[3532] | 361 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
[3520] | 362 | fi |
---|
| 363 | |
---|
| 364 | if [ ${config} -eq 4 ] ; then |
---|
[3680] | 365 | ## Reproducibility tests for ORCA2_LIM_PISCES |
---|
[3520] | 366 | export TEST_NAME="REPRO_4_4" |
---|
[4147] | 367 | cd ${CONFIG_DIR} |
---|
[4245] | 368 | . ./makenemo -m ${CMP_NAM} -n ORCA2LIMPIS_16 -r ORCA2_LIM_PISCES -j 8 add_key "key_mpp_rep" del_key ${DEL_KEYS} |
---|
[3520] | 369 | cd ${SETTE_DIR} |
---|
[4252] | 370 | . ./param.cfg |
---|
| 371 | . ./all_functions.sh |
---|
| 372 | . ./prepare_exe_dir.sh |
---|
[3520] | 373 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 374 | NPROC=16 |
---|
[4245] | 375 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
[3520] | 376 | cd ${EXE_DIR} |
---|
[4147] | 377 | set_namelist namelist_cfg nn_it000 1 |
---|
| 378 | set_namelist namelist_cfg nn_itend 75 |
---|
| 379 | set_namelist namelist_cfg nn_fwb 0 |
---|
| 380 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 381 | set_namelist namelist_cfg ln_clobber .true. |
---|
| 382 | set_namelist namelist_cfg jpni 4 |
---|
| 383 | set_namelist namelist_cfg jpnj 4 |
---|
| 384 | set_namelist namelist_cfg jpnij 16 |
---|
| 385 | set_namelist namelist_cfg nn_solv 2 |
---|
| 386 | set_namelist namelist_top_cfg ln_trcdta .false. |
---|
| 387 | set_namelist namelist_top_cfg ln_diatrc .false. |
---|
[3520] | 388 | # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false |
---|
| 389 | # if not you need input files, and for tests is not necessary |
---|
[4147] | 390 | set_namelist namelist_pisces_cfg ln_presatm .false. |
---|
| 391 | set_namelist namelist_pisces_cfg ln_varpar .false. |
---|
| 392 | set_namelist namelist_pisces_cfg ln_dust .false. |
---|
| 393 | set_namelist namelist_pisces_cfg ln_solub .false. |
---|
| 394 | set_namelist namelist_pisces_cfg ln_river .false. |
---|
| 395 | set_namelist namelist_pisces_cfg ln_ndepo .false. |
---|
| 396 | set_namelist namelist_pisces_cfg ln_ironsed .false. |
---|
| 397 | set_namelist namelist_pisces_cfg ln_hydrofe .false. |
---|
[3680] | 398 | # put ln_pisdmp to false : no restoring to global mean value |
---|
[4147] | 399 | set_namelist namelist_pisces_cfg ln_pisdmp .false. |
---|
[4245] | 400 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 401 | set_xio_using_server iodef.xml true |
---|
| 402 | else |
---|
| 403 | set_xio_using_server iodef.xml false |
---|
| 404 | fi |
---|
[3520] | 405 | cd ${SETTE_DIR} |
---|
[4245] | 406 | . ./prepare_job.sh input_ORCA2_LIM_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[3520] | 407 | cd ${SETTE_DIR} |
---|
[3532] | 408 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
[3520] | 409 | |
---|
| 410 | cd ${SETTE_DIR} |
---|
| 411 | export TEST_NAME="REPRO_2_8" |
---|
[4252] | 412 | . ./prepare_exe_dir.sh |
---|
[3680] | 413 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 414 | NPROC=16 |
---|
[4245] | 415 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
[3520] | 416 | cd ${EXE_DIR} |
---|
[4147] | 417 | set_namelist namelist_cfg nn_it000 1 |
---|
| 418 | set_namelist namelist_cfg nn_itend 75 |
---|
| 419 | set_namelist namelist_cfg nn_fwb 0 |
---|
| 420 | set_namelist namelist_cfg ln_clobber .true. |
---|
| 421 | set_namelist namelist_cfg jpni 2 |
---|
| 422 | set_namelist namelist_cfg jpnj 8 |
---|
| 423 | set_namelist namelist_cfg jpnij 16 |
---|
| 424 | set_namelist namelist_cfg nn_solv 2 |
---|
| 425 | set_namelist namelist_top_cfg ln_trcdta .false. |
---|
| 426 | set_namelist namelist_top_cfg ln_diatrc .false. |
---|
[3520] | 427 | # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false |
---|
| 428 | # if not you need input files, and for tests is not necessary |
---|
[4147] | 429 | set_namelist namelist_pisces_cfg ln_presatm .false. |
---|
| 430 | set_namelist namelist_pisces_cfg ln_varpar .false. |
---|
| 431 | set_namelist namelist_pisces_cfg ln_dust .false. |
---|
| 432 | set_namelist namelist_pisces_cfg ln_solub .false. |
---|
| 433 | set_namelist namelist_pisces_cfg ln_river .false. |
---|
| 434 | set_namelist namelist_pisces_cfg ln_ndepo .false. |
---|
| 435 | set_namelist namelist_pisces_cfg ln_ironsed .false. |
---|
| 436 | set_namelist namelist_pisces_cfg ln_hydrofe .false. |
---|
[3680] | 437 | # put ln_pisdmp to false : no restoring to global mean value |
---|
[4147] | 438 | set_namelist namelist_pisces_cfg ln_pisdmp .false. |
---|
[4245] | 439 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 440 | set_xio_using_server iodef.xml true |
---|
| 441 | else |
---|
| 442 | set_xio_using_server iodef.xml false |
---|
| 443 | fi |
---|
[3520] | 444 | cd ${SETTE_DIR} |
---|
[4245] | 445 | . ./prepare_job.sh input_ORCA2_LIM_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[3520] | 446 | cd ${SETTE_DIR} |
---|
| 447 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 448 | fi |
---|
| 449 | |
---|
| 450 | # TESTS FOR ORCA2_OFF_PISCES CONFIGURATION |
---|
| 451 | if [ ${config} -eq 5 ] ; then |
---|
| 452 | ## Restartability tests for ORCA2_OFF_PISCES |
---|
| 453 | export TEST_NAME="LONG" |
---|
[4147] | 454 | cd ${CONFIG_DIR} |
---|
[4245] | 455 | . ./makenemo -m ${CMP_NAM} -n ORCA2OFFPIS_LONG -r ORCA2_OFF_PISCES -j 8 add_key "key_mpp_rep" del_key ${DEL_KEYS} |
---|
[3520] | 456 | cd ${SETTE_DIR} |
---|
[4252] | 457 | . ./param.cfg |
---|
| 458 | . ./all_functions.sh |
---|
| 459 | . ./prepare_exe_dir.sh |
---|
[3520] | 460 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
[3532] | 461 | NPROC=4 |
---|
[4245] | 462 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
[3520] | 463 | cd ${EXE_DIR} |
---|
[4147] | 464 | set_namelist namelist_cfg cn_exp \"OFFP_LONG\" |
---|
| 465 | set_namelist namelist_cfg nn_it000 1 |
---|
| 466 | set_namelist namelist_cfg nn_itend 40 |
---|
| 467 | set_namelist namelist_cfg nn_stock 20 |
---|
| 468 | set_namelist namelist_cfg ln_clobber .true. |
---|
| 469 | set_namelist namelist_cfg jpni 2 |
---|
| 470 | set_namelist namelist_cfg jpnj 2 |
---|
| 471 | set_namelist namelist_cfg jpnij 4 |
---|
| 472 | set_namelist namelist_top_cfg ln_trcdta .false. |
---|
| 473 | set_namelist namelist_top_cfg ln_diatrc .false. |
---|
[3520] | 474 | # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false |
---|
| 475 | # if not you need input files, and for tests is not necessary |
---|
[4147] | 476 | set_namelist namelist_pisces_cfg ln_presatm .false. |
---|
| 477 | set_namelist namelist_pisces_cfg ln_varpar .false. |
---|
| 478 | set_namelist namelist_pisces_cfg ln_dust .false. |
---|
| 479 | set_namelist namelist_pisces_cfg ln_solub .false. |
---|
| 480 | set_namelist namelist_pisces_cfg ln_river .false. |
---|
| 481 | set_namelist namelist_pisces_cfg ln_ndepo .false. |
---|
| 482 | set_namelist namelist_pisces_cfg ln_ironsed .false. |
---|
| 483 | set_namelist namelist_pisces_cfg ln_hydrofe .false. |
---|
[3680] | 484 | # put ln_pisdmp to false : no restoring to global mean value |
---|
[4147] | 485 | set_namelist namelist_pisces_cfg ln_pisdmp .false. |
---|
[4245] | 486 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 487 | set_xio_using_server iodef.xml true |
---|
| 488 | else |
---|
| 489 | set_xio_using_server iodef.xml false |
---|
| 490 | fi |
---|
[3520] | 491 | cd ${SETTE_DIR} |
---|
[4245] | 492 | . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[3520] | 493 | |
---|
| 494 | cd ${SETTE_DIR} |
---|
| 495 | export TEST_NAME="SHORT" |
---|
[4252] | 496 | . ./prepare_exe_dir.sh |
---|
[3520] | 497 | cd ${EXE_DIR} |
---|
[4147] | 498 | set_namelist namelist_cfg cn_exp \"OFFP_SHORT\" |
---|
| 499 | set_namelist namelist_cfg nn_it000 21 |
---|
| 500 | set_namelist namelist_cfg nn_itend 40 |
---|
| 501 | set_namelist namelist_cfg nn_stock 20 |
---|
| 502 | set_namelist namelist_cfg ln_clobber .true. |
---|
| 503 | set_namelist namelist_cfg jpni 2 |
---|
| 504 | set_namelist namelist_cfg jpnj 2 |
---|
| 505 | set_namelist namelist_cfg jpnij 4 |
---|
| 506 | set_namelist namelist_top_cfg ln_diatrc .false. |
---|
| 507 | set_namelist namelist_top_cfg ln_rsttr .true. |
---|
| 508 | set_namelist namelist_top_cfg nn_rsttr 2 |
---|
| 509 | set_namelist namelist_top_cfg cn_trcrst_in \"OFFP_LONG_00000020_restart_trc\" |
---|
[3537] | 510 | for (( i=1; i<=$NPROC; i++)) ; do |
---|
| 511 | L_NPROC=$(( $i - 1 )) |
---|
| 512 | L_NPROC=`printf "%04d\n" ${L_NPROC}` |
---|
[3555] | 513 | ln -sf ../LONG/OFFP_LONG_00000020_restart_trc_${L_NPROC}.nc . |
---|
[3537] | 514 | done |
---|
[3520] | 515 | # put ln_ironsed, ln_river, ln_ndepo, ln_dust |
---|
| 516 | # if not you need input files, and for tests is not necessary |
---|
[4147] | 517 | set_namelist namelist_pisces_cfg ln_presatm .false. |
---|
| 518 | set_namelist namelist_pisces_cfg ln_varpar .false. |
---|
| 519 | set_namelist namelist_pisces_cfg ln_dust .false. |
---|
| 520 | set_namelist namelist_pisces_cfg ln_solub .false. |
---|
| 521 | set_namelist namelist_pisces_cfg ln_river .false. |
---|
| 522 | set_namelist namelist_pisces_cfg ln_ndepo .false. |
---|
| 523 | set_namelist namelist_pisces_cfg ln_ironsed .false. |
---|
| 524 | set_namelist namelist_pisces_cfg ln_hydrofe .false. |
---|
[3680] | 525 | # put ln_pisdmp to false : no restoring to global mean value |
---|
[4147] | 526 | set_namelist namelist_pisces_cfg ln_pisdmp .false. |
---|
[4245] | 527 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 528 | set_xio_using_server iodef.xml true |
---|
| 529 | else |
---|
| 530 | set_xio_using_server iodef.xml false |
---|
| 531 | fi |
---|
[3520] | 532 | cd ${SETTE_DIR} |
---|
[4245] | 533 | . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[3520] | 534 | cd ${SETTE_DIR} |
---|
| 535 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 536 | fi |
---|
| 537 | |
---|
| 538 | if [ ${config} -eq 6 ] ; then |
---|
[3680] | 539 | ## Reproducibility tests for ORCA2_OFF_PISCES |
---|
[3520] | 540 | export TEST_NAME="REPRO_4_4" |
---|
[4147] | 541 | cd ${CONFIG_DIR} |
---|
[4245] | 542 | . ./makenemo -m ${CMP_NAM} -n ORCA2OFFPIS_16 -r ORCA2_OFF_PISCES -j 8 add_key "key_mpp_rep" del_key ${DEL_KEYS} |
---|
[3520] | 543 | cd ${SETTE_DIR} |
---|
[4252] | 544 | . ./param.cfg |
---|
| 545 | . ./all_functions.sh |
---|
| 546 | . ./prepare_exe_dir.sh |
---|
[3520] | 547 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 548 | NPROC=16 |
---|
[4245] | 549 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
[3520] | 550 | cd ${EXE_DIR} |
---|
[4147] | 551 | set_namelist namelist_cfg nn_it000 1 |
---|
| 552 | set_namelist namelist_cfg nn_itend 40 |
---|
| 553 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 554 | set_namelist namelist_cfg ln_clobber .true. |
---|
| 555 | set_namelist namelist_cfg jpni 4 |
---|
| 556 | set_namelist namelist_cfg jpnj 4 |
---|
| 557 | set_namelist namelist_cfg jpnij 16 |
---|
| 558 | set_namelist namelist_top_cfg ln_trcdta .false. |
---|
| 559 | set_namelist namelist_top_cfg ln_diatrc .false. |
---|
[3520] | 560 | # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false |
---|
| 561 | # if not you need input files, and for tests is not necessary |
---|
[4147] | 562 | set_namelist namelist_pisces_cfg ln_presatm .false. |
---|
| 563 | set_namelist namelist_pisces_cfg ln_varpar .false. |
---|
| 564 | set_namelist namelist_pisces_cfg ln_dust .false. |
---|
| 565 | set_namelist namelist_pisces_cfg ln_solub .false. |
---|
| 566 | set_namelist namelist_pisces_cfg ln_river .false. |
---|
| 567 | set_namelist namelist_pisces_cfg ln_ndepo .false. |
---|
| 568 | set_namelist namelist_pisces_cfg ln_ironsed .false. |
---|
| 569 | set_namelist namelist_pisces_cfg ln_hydrofe .false. |
---|
[3680] | 570 | # put ln_pisdmp to false : no restoring to global mean value |
---|
[4147] | 571 | set_namelist namelist_pisces_cfg ln_pisdmp .false. |
---|
[4245] | 572 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 573 | set_xio_using_server iodef.xml true |
---|
| 574 | else |
---|
| 575 | set_xio_using_server iodef.xml false |
---|
| 576 | fi |
---|
[3520] | 577 | cd ${SETTE_DIR} |
---|
[4245] | 578 | . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[3520] | 579 | cd ${SETTE_DIR} |
---|
[3532] | 580 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
[3520] | 581 | |
---|
| 582 | cd ${SETTE_DIR} |
---|
| 583 | export TEST_NAME="REPRO_2_8" |
---|
[4252] | 584 | . ./prepare_exe_dir.sh |
---|
[3680] | 585 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 586 | NPROC=16 |
---|
[4245] | 587 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
[3520] | 588 | cd ${EXE_DIR} |
---|
[4147] | 589 | set_namelist namelist_cfg nn_it000 1 |
---|
| 590 | set_namelist namelist_cfg nn_itend 40 |
---|
| 591 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 592 | set_namelist namelist_cfg ln_clobber .true. |
---|
| 593 | set_namelist namelist_cfg jpni 2 |
---|
| 594 | set_namelist namelist_cfg jpnj 8 |
---|
| 595 | set_namelist namelist_cfg jpnij 16 |
---|
| 596 | set_namelist namelist_top_cfg ln_trcdta .false. |
---|
| 597 | set_namelist namelist_top_cfg ln_diatrc .false. |
---|
[3520] | 598 | # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false |
---|
| 599 | # if not you need input files, and for tests is not necessary |
---|
[4147] | 600 | set_namelist namelist_pisces_cfg ln_presatm .false. |
---|
| 601 | set_namelist namelist_pisces_cfg ln_varpar .false. |
---|
| 602 | set_namelist namelist_pisces_cfg ln_dust .false. |
---|
| 603 | set_namelist namelist_pisces_cfg ln_solub .false. |
---|
| 604 | set_namelist namelist_pisces_cfg ln_river .false. |
---|
| 605 | set_namelist namelist_pisces_cfg ln_ndepo .false. |
---|
| 606 | set_namelist namelist_pisces_cfg ln_ironsed .false. |
---|
| 607 | set_namelist namelist_pisces_cfg ln_hydrofe .false. |
---|
[3680] | 608 | # put ln_pisdmp to false : no restoring to global mean value |
---|
[4147] | 609 | set_namelist namelist_pisces_cfg ln_pisdmp .false. |
---|
[4245] | 610 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 611 | set_xio_using_server iodef.xml true |
---|
| 612 | else |
---|
| 613 | set_xio_using_server iodef.xml false |
---|
| 614 | fi |
---|
[3520] | 615 | cd ${SETTE_DIR} |
---|
[4245] | 616 | . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[3520] | 617 | cd ${SETTE_DIR} |
---|
| 618 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 619 | fi |
---|
| 620 | |
---|
[3680] | 621 | # TESTS FOR AMM12 CONFIGURATION |
---|
[3520] | 622 | if [ ${config} -eq 7 ] ; then |
---|
[3532] | 623 | ## Restartability tests for AMM12 |
---|
| 624 | export TEST_NAME="LONG" |
---|
[4147] | 625 | cd ${CONFIG_DIR} |
---|
[4245] | 626 | . ./makenemo -m ${CMP_NAM} -n AMM12_LONG -r AMM12 -j 8 add_key "key_tide" del_key ${DEL_KEYS} |
---|
[3520] | 627 | cd ${SETTE_DIR} |
---|
[4252] | 628 | . ./param.cfg |
---|
| 629 | . ./all_functions.sh |
---|
| 630 | . ./prepare_exe_dir.sh |
---|
[3520] | 631 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 632 | NPROC=32 |
---|
[4245] | 633 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
[3520] | 634 | cd ${EXE_DIR} |
---|
[4147] | 635 | set_namelist namelist_cfg nn_it000 1 |
---|
[4252] | 636 | set_namelist namelist_cfg nn_itend 576 |
---|
| 637 | set_namelist namelist_cfg nn_stock 288 |
---|
[4147] | 638 | set_namelist namelist_cfg nn_fwb 0 |
---|
| 639 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 640 | set_namelist namelist_cfg ln_clobber .true. |
---|
| 641 | set_namelist namelist_cfg nn_dyn2d 2 |
---|
| 642 | set_namelist namelist_cfg nn_tra_dta 0 |
---|
[4273] | 643 | set_namelist namelist_cfg cn_ocerst_in \"amm12_restart_oce\" |
---|
| 644 | ln -s restarts/amm12_restart_oce.nc amm12_restart_oce.nc |
---|
[4147] | 645 | set_namelist namelist_cfg jpni 8 |
---|
| 646 | set_namelist namelist_cfg jpnj 4 |
---|
| 647 | set_namelist namelist_cfg jpnij 32 |
---|
[4245] | 648 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 649 | set_xio_using_server iodef.xml true |
---|
| 650 | else |
---|
| 651 | set_xio_using_server iodef.xml false |
---|
| 652 | fi |
---|
[3520] | 653 | cd ${SETTE_DIR} |
---|
[4245] | 654 | . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[3520] | 655 | |
---|
| 656 | cd ${SETTE_DIR} |
---|
[3532] | 657 | export TEST_NAME="SHORT" |
---|
[3520] | 658 | . prepare_exe_dir.sh |
---|
| 659 | cd ${EXE_DIR} |
---|
[4252] | 660 | set_namelist namelist_cfg nn_it000 289 |
---|
| 661 | set_namelist namelist_cfg nn_itend 576 |
---|
[4147] | 662 | set_namelist namelist_cfg nn_fwb 0 |
---|
| 663 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 664 | set_namelist namelist_cfg ln_clobber .true. |
---|
| 665 | set_namelist namelist_cfg nn_dyn2d 2 |
---|
| 666 | set_namelist namelist_cfg nn_tra_dta 0 |
---|
| 667 | set_namelist namelist_cfg jpni 8 |
---|
| 668 | set_namelist namelist_cfg jpnj 4 |
---|
| 669 | set_namelist namelist_cfg jpnij 32 |
---|
| 670 | set_namelist namelist_cfg ln_rstart .true. |
---|
| 671 | set_namelist namelist_cfg nn_rstctl 2 |
---|
[4252] | 672 | set_namelist namelist_cfg cn_ocerst_in \"AMM12_00000288_restart_oce_out\" |
---|
| 673 | set_namelist namelist_cfg nn_date0 20120102 |
---|
[3537] | 674 | for (( i=1; i<=$NPROC; i++)) ; do |
---|
| 675 | L_NPROC=$(( $i - 1 )) |
---|
| 676 | L_NPROC=`printf "%04d\n" ${L_NPROC}` |
---|
[4252] | 677 | ln -sf ../LONG/AMM12_00000288_restart_oce_out_${L_NPROC}.nc . |
---|
[3537] | 678 | done |
---|
[4245] | 679 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 680 | set_xio_using_server iodef.xml true |
---|
| 681 | else |
---|
| 682 | set_xio_using_server iodef.xml false |
---|
| 683 | fi |
---|
[3520] | 684 | cd ${SETTE_DIR} |
---|
[4245] | 685 | . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[3520] | 686 | cd ${SETTE_DIR} |
---|
[3532] | 687 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
[3520] | 688 | fi |
---|
| 689 | |
---|
| 690 | if [ ${config} -eq 8 ] ; then |
---|
[3680] | 691 | ## Reproducibility tests for AMM12 |
---|
| 692 | export TEST_NAME="REPRO_8_4" |
---|
[4147] | 693 | cd ${CONFIG_DIR} |
---|
[4245] | 694 | . ./makenemo -m ${CMP_NAM} -n AMM12_32 -r AMM12 -j 8 add_key "key_mpp_rep key_tide" del_key ${DEL_KEYS} |
---|
[3520] | 695 | cd ${SETTE_DIR} |
---|
[4252] | 696 | . ./param.cfg |
---|
| 697 | . ./all_functions.sh |
---|
| 698 | . ./prepare_exe_dir.sh |
---|
[3520] | 699 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 700 | NPROC=32 |
---|
[4245] | 701 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
[3520] | 702 | cd ${EXE_DIR} |
---|
[4147] | 703 | set_namelist namelist_cfg nn_it000 1 |
---|
| 704 | set_namelist namelist_cfg nn_itend 576 |
---|
| 705 | set_namelist namelist_cfg nn_fwb 0 |
---|
| 706 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 707 | set_namelist namelist_cfg ln_clobber .true. |
---|
| 708 | set_namelist namelist_cfg nn_dyn2d 2 |
---|
| 709 | set_namelist namelist_cfg nn_tra_dta 0 |
---|
[4273] | 710 | set_namelist namelist_cfg cn_ocerst_in \"amm12_restart_oce\" |
---|
[4249] | 711 | ln -s restarts/amm12_restart_oce.nc amm12_restart_oce.nc |
---|
[4147] | 712 | set_namelist namelist_cfg jpni 8 |
---|
| 713 | set_namelist namelist_cfg jpnj 4 |
---|
| 714 | set_namelist namelist_cfg jpnij 32 |
---|
[4245] | 715 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 716 | set_xio_using_server iodef.xml true |
---|
| 717 | else |
---|
| 718 | set_xio_using_server iodef.xml false |
---|
| 719 | fi |
---|
[3520] | 720 | cd ${SETTE_DIR} |
---|
[4245] | 721 | . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[3520] | 722 | cd ${SETTE_DIR} |
---|
| 723 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 724 | |
---|
| 725 | cd ${SETTE_DIR} |
---|
[3680] | 726 | export TEST_NAME="REPRO_4_8" |
---|
[4252] | 727 | . ./prepare_exe_dir.sh |
---|
[3520] | 728 | cd ${EXE_DIR} |
---|
[4147] | 729 | set_namelist namelist_cfg nn_it000 1 |
---|
| 730 | set_namelist namelist_cfg nn_itend 576 |
---|
| 731 | set_namelist namelist_cfg nn_fwb 0 |
---|
| 732 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 733 | set_namelist namelist_cfg nn_dyn2d 2 |
---|
| 734 | set_namelist namelist_cfg nn_tra_dta 0 |
---|
| 735 | set_namelist namelist_cfg ln_clobber .true. |
---|
| 736 | set_namelist namelist_cfg cn_ocerst_in \"amm12_restart_oce\" |
---|
[4249] | 737 | ln -s restarts/amm12_restart_oce.nc amm12_restart_oce.nc |
---|
[4147] | 738 | set_namelist namelist_cfg jpni 4 |
---|
| 739 | set_namelist namelist_cfg jpnj 8 |
---|
| 740 | set_namelist namelist_cfg jpnij 32 |
---|
[4245] | 741 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 742 | set_xio_using_server iodef.xml true |
---|
| 743 | else |
---|
| 744 | set_xio_using_server iodef.xml false |
---|
| 745 | fi |
---|
[3520] | 746 | cd ${SETTE_DIR} |
---|
[4245] | 747 | . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[3520] | 748 | cd ${SETTE_DIR} |
---|
[3532] | 749 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
[3520] | 750 | fi |
---|
| 751 | |
---|
| 752 | |
---|
[4147] | 753 | # TESTS FOR ORCA2_SAS_LIM CONFIGURATION |
---|
[4245] | 754 | if [ ${config} -eq 9 ] ; then |
---|
[4147] | 755 | ## Restartability tests for SAS |
---|
| 756 | export TEST_NAME="LONG" |
---|
| 757 | cd ${CONFIG_DIR} |
---|
[4260] | 758 | . ./makenemo -m ${CMP_NAM} -n SAS_LONG -r ORCA2_SAS_LIM -j 8 add_key "key_mpp_rep" del_key ${DEL_KEYS} |
---|
[4147] | 759 | cd ${SETTE_DIR} |
---|
[4252] | 760 | . ./param.cfg |
---|
| 761 | . ./all_functions.sh |
---|
| 762 | . ./prepare_exe_dir.sh |
---|
[4147] | 763 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 764 | NPROC=32 |
---|
| 765 | \rm $JOB_FILE |
---|
| 766 | cd ${EXE_DIR} |
---|
| 767 | set_namelist namelist_cfg cn_exp \"SAS\" |
---|
| 768 | set_namelist namelist_cfg nn_it000 1 |
---|
| 769 | set_namelist namelist_cfg nn_itend 100 |
---|
| 770 | set_namelist namelist_cfg nn_stock 50 |
---|
| 771 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 772 | set_namelist namelist_cfg ln_clobber .true. |
---|
| 773 | set_namelist namelist_cfg jpni 8 |
---|
| 774 | set_namelist namelist_cfg jpnj 4 |
---|
| 775 | set_namelist namelist_cfg jpnij 32 |
---|
[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 |
---|
[4147] | 781 | cd ${SETTE_DIR} |
---|
[4245] | 782 | . ./prepare_job.sh input_SAS.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[4147] | 783 | |
---|
| 784 | cd ${SETTE_DIR} |
---|
| 785 | export TEST_NAME="SHORT" |
---|
[4252] | 786 | . ./prepare_exe_dir.sh |
---|
[4147] | 787 | cd ${EXE_DIR} |
---|
| 788 | set_namelist namelist_cfg cn_exp \"SAS\" |
---|
| 789 | set_namelist namelist_cfg nn_it000 51 |
---|
| 790 | set_namelist namelist_cfg nn_itend 100 |
---|
| 791 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 792 | set_namelist namelist_cfg ln_clobber .true. |
---|
| 793 | set_namelist namelist_cfg jpni 8 |
---|
| 794 | set_namelist namelist_cfg jpnj 4 |
---|
| 795 | set_namelist namelist_cfg jpnij 32 |
---|
| 796 | set_namelist namelist_cfg nn_rstctl 2 |
---|
| 797 | set_namelist namelist_cfg cn_ocerst_in \"SAS_00000050_restart\" |
---|
| 798 | for (( i=1; i<=$NPROC; i++)) ; do |
---|
| 799 | L_NPROC=$(( $i - 1 )) |
---|
| 800 | L_NPROC=`printf "%04d\n" ${L_NPROC}` |
---|
| 801 | ln -sf ../LONG/SAS_00000050_restart_${L_NPROC}.nc . |
---|
| 802 | done |
---|
[4245] | 803 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 804 | set_xio_using_server iodef.xml true |
---|
| 805 | else |
---|
| 806 | set_xio_using_server iodef.xml false |
---|
| 807 | fi |
---|
[4147] | 808 | cd ${SETTE_DIR} |
---|
[4245] | 809 | . ./prepare_job.sh input_SAS.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[4147] | 810 | cd ${SETTE_DIR} |
---|
| 811 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 812 | fi |
---|
| 813 | |
---|
[4245] | 814 | if [ ${config} -eq 10 ] ; then |
---|
[4147] | 815 | ## Reproducibility tests for ORCA2_SAS_LIM |
---|
| 816 | export TEST_NAME="REPRO_8_4" |
---|
| 817 | cd ${CONFIG_DIR} |
---|
[4245] | 818 | . ./makenemo -m ${CMP_NAM} -n SAS_32 -r ORCA2_SAS_LIM -j 8 add_key "key_mpp_rep" del_key ${DEL_KEYS} |
---|
[4147] | 819 | cd ${SETTE_DIR} |
---|
[4252] | 820 | . ./param.cfg |
---|
| 821 | . ./all_functions.sh |
---|
| 822 | . ./prepare_exe_dir.sh |
---|
[4147] | 823 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 824 | NPROC=32 |
---|
| 825 | \rm ${JOB_FILE} |
---|
| 826 | cd ${EXE_DIR} |
---|
| 827 | set_namelist namelist_cfg cn_exp \"SAS\" |
---|
| 828 | set_namelist namelist_cfg nn_it000 51 |
---|
| 829 | set_namelist namelist_cfg nn_itend 100 |
---|
| 830 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 831 | set_namelist namelist_cfg ln_clobber .true. |
---|
| 832 | set_namelist namelist_cfg jpni 8 |
---|
| 833 | set_namelist namelist_cfg jpnj 4 |
---|
| 834 | set_namelist namelist_cfg jpnij 32 |
---|
[4245] | 835 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 836 | set_xio_using_server iodef.xml true |
---|
| 837 | else |
---|
| 838 | set_xio_using_server iodef.xml false |
---|
| 839 | fi |
---|
[4147] | 840 | cd ${SETTE_DIR} |
---|
[4245] | 841 | . ./prepare_job.sh input_SAS.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[4147] | 842 | cd ${SETTE_DIR} |
---|
| 843 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 844 | cd ${SETTE_DIR} |
---|
| 845 | export TEST_NAME="REPRO_4_8" |
---|
[4252] | 846 | . ./prepare_exe_dir.sh |
---|
[4147] | 847 | cd ${EXE_DIR} |
---|
| 848 | set_namelist namelist_cfg cn_exp \"SAS\" |
---|
| 849 | set_namelist namelist_cfg nn_it000 51 |
---|
| 850 | set_namelist namelist_cfg nn_itend 100 |
---|
| 851 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 852 | set_namelist namelist_cfg ln_clobber .true. |
---|
| 853 | set_namelist namelist_cfg jpni 4 |
---|
| 854 | set_namelist namelist_cfg jpnj 8 |
---|
| 855 | set_namelist namelist_cfg jpnij 32 |
---|
[4245] | 856 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 857 | set_xio_using_server iodef.xml true |
---|
| 858 | else |
---|
| 859 | set_xio_using_server iodef.xml false |
---|
| 860 | fi |
---|
[4147] | 861 | cd ${SETTE_DIR} |
---|
[4245] | 862 | . ./prepare_job.sh input_SAS.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
[4147] | 863 | cd ${SETTE_DIR} |
---|
| 864 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 865 | fi |
---|
| 866 | |
---|
[4245] | 867 | # TEST FOR ORCA2_LIM_AGRIF : simple test of running AGRIF (no restartability neither reproducibility tests) |
---|
| 868 | if [ ${config} -eq 11 ] ; then |
---|
| 869 | ## ORCA2_LIM with Agulhas AGRIF zoom in MPI |
---|
| 870 | export TEST_NAME="SHORT" |
---|
| 871 | cd ${CONFIG_DIR} |
---|
| 872 | . ./makenemo -m ${CMP_NAM} -n ORCA2AGUL_1_2 -r ORCA2_LIM -j 8 add_key "key_mpp_rep key_agrif" del_key "key_zdftmx" del_key ${DEL_KEYS} |
---|
| 873 | cd ${SETTE_DIR} |
---|
[4252] | 874 | . ./param.cfg |
---|
| 875 | . ./all_functions.sh |
---|
| 876 | . ./prepare_exe_dir.sh |
---|
[4245] | 877 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 878 | NPROC=2 |
---|
| 879 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
| 880 | cd ${EXE_DIR} |
---|
| 881 | set_namelist namelist_cfg nn_it000 1 |
---|
| 882 | set_namelist namelist_cfg nn_itend 75 |
---|
| 883 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 884 | set_namelist namelist_cfg ln_clobber .true. |
---|
| 885 | set_namelist namelist_cfg jpni 1 |
---|
| 886 | set_namelist namelist_cfg jpnj 2 |
---|
| 887 | set_namelist namelist_cfg jpnij 2 |
---|
| 888 | set_namelist 1_namelist_cfg nn_it000 1 |
---|
| 889 | set_namelist 1_namelist_cfg nn_itend 150 |
---|
| 890 | set_namelist 1_namelist_cfg ln_ctl .false. |
---|
| 891 | set_namelist 1_namelist_cfg ln_clobber .true. |
---|
| 892 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 893 | set_xio_using_server iodef.xml true |
---|
| 894 | else |
---|
| 895 | set_xio_using_server iodef.xml false |
---|
| 896 | fi |
---|
| 897 | cd ${SETTE_DIR} |
---|
| 898 | . ./prepare_job.sh input_ORCA2_LIM_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} |
---|
| 899 | cd ${SETTE_DIR} |
---|
| 900 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 901 | fi |
---|
| 902 | |
---|
| 903 | |
---|
[3520] | 904 | done |
---|