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