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