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