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