New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 13559 for utils/CI – NEMO

Changeset 13559 for utils/CI


Ignore:
Timestamp:
2020-10-02T17:36:24+02:00 (4 years ago)
Author:
smasson
Message:

sette: update sette for DEBUG mode, see #2535

Location:
utils/CI/sette
Files:
2 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • utils/CI/sette/BATCH_TEMPLATE/batch-X64_IRENE_DEBUG

    r12128 r13559  
    11#!/bin/bash 
    2 #MSUB -T 3600                # elapsed time limit in seconds   (60 minutes) 
     2#MSUB -T 1790                # elapsed time limit in seconds   (60 minutes) 
    33#MSUB -r SETTE_JOB           # Job name 
    44#MSUB -o sette.jobid_%I.txt  # standard output 
  • utils/CI/sette/BATCH_TEMPLATE/batch-X64_IRENE_GCC_DEBUG

    r12653 r13559  
    11#!/bin/bash 
    2 #MSUB -T 4000                # elapsed time limit in seconds   (60 minutes) 
     2#MSUB -T 1790                # elapsed time limit in seconds   (60 minutes) 
    33#MSUB -r SETTE_JOB           # Job name 
    44#MSUB -o sette.jobid_%I.txt  # standard output 
  • utils/CI/sette/BATCH_TEMPLATE/batch-X64_JEANZAY_DEBUG

    r11645 r13559  
    88# de Slurm "multithread" fait bien référence à l'hyperthreading. 
    99#SBATCH --hint=nomultithread       # 1 processus MPI par coeur physique (pas d'hyperthreading) 
    10 #SBATCH --time=00:59:00            # Temps d’exécution maximum demande (HH:MM:SS) 
     10#SBATCH --time=00:29:00            # Temps d’exécution maximum demande (HH:MM:SS) 
    1111#SBATCH --output=sette.jobid_%j.out  # Nom du fichier de sortie 
    1212#SBATCH --error=sette.jobid_%j.out   # Nom du fichier d'erreur (ici commun avec la sortie) 
  • utils/CI/sette/sette_reference-configurations.sh

    r13507 r13559  
    160160if [ ${config} == "GYRE_PISCES" ] ;  then 
    161161## Restartability tests for GYRE_PISCES 
     162    if [ $( echo ${CMP_NAM} | grep -ic debug ) -eq 1 ] 
     163    then 
     164   ITEND=12    # 1 day 
     165    else 
     166   ITEND=1080  # 90 days 
     167    fi 
     168    ITRST=$( printf "%08d" $(( ${ITEND} / 2 )) ) 
    162169    export TEST_NAME="LONG" 
    163170    cd ${MAIN_DIR} 
     
    181188    set_namelist namelist_cfg cn_exp \"GYREPIS_LONG\" 
    182189    set_namelist namelist_cfg nn_it000 1 
    183     set_namelist namelist_cfg nn_itend 1080 
    184     set_namelist namelist_cfg nn_stock  540 
     190    set_namelist namelist_cfg nn_itend ${ITEND} 
     191    set_namelist namelist_cfg nn_stock $(( ${ITEND} / 2 )) 
    185192    set_namelist namelist_cfg ln_linssh .true. 
    186193    set_namelist namelist_cfg jpni 2 
     
    203210    cd ${EXE_DIR} 
    204211    set_namelist namelist_cfg cn_exp \"GYREPIS_SHORT\" 
    205     set_namelist namelist_cfg nn_it000 541 
    206     set_namelist namelist_cfg nn_itend 1080 
    207     set_namelist namelist_cfg nn_stock 540 
     212    set_namelist namelist_cfg nn_it000 $(( ${ITEND} / 2 + 1 )) 
     213    set_namelist namelist_cfg nn_itend ${ITEND} 
     214    set_namelist namelist_cfg nn_stock $(( ${ITEND} / 2 )) 
    208215    set_namelist namelist_cfg ln_rstart .true. 
    209216    set_namelist namelist_cfg nn_rstctl 2 
     
    215222    set_namelist namelist_top_cfg ln_rsttr .true. 
    216223    set_namelist namelist_top_cfg nn_rsttr 2 
    217     set_namelist namelist_cfg cn_ocerst_in \"GYREPIS_LONG_00000540_restart\" 
    218     set_namelist namelist_top_cfg cn_trcrst_in \"GYREPIS_LONG_00000540_restart_trc\" 
     224    set_namelist namelist_cfg cn_ocerst_in \"GYREPIS_LONG_${ITRST}_restart\" 
     225    set_namelist namelist_top_cfg cn_trcrst_in \"GYREPIS_LONG_${ITRST}_restart_trc\" 
    219226    if [ ${USING_MPMD} == "yes" ] ; then 
    220227       set_xio_using_server iodef.xml true 
     
    225232        L_NPROC=$(( $i - 1 )) 
    226233        L_NPROC=`printf "%04d\n" ${L_NPROC}` 
    227         ln -sf ../LONG/GYREPIS_LONG_00000540_restart_${L_NPROC}.nc . 
    228         ln -sf ../LONG/GYREPIS_LONG_00000540_restart_trc_${L_NPROC}.nc . 
     234        ln -sf ../LONG/GYREPIS_LONG_${ITRST}_restart_${L_NPROC}.nc . 
     235        ln -sf ../LONG/GYREPIS_LONG_${ITRST}_restart_trc_${L_NPROC}.nc . 
    229236    done 
    230237    cd ${SETTE_DIR} 
     
    248255    set_namelist namelist_cfg cn_exp \"GYREPIS_48\" 
    249256    set_namelist namelist_cfg nn_it000 1 
    250     set_namelist namelist_cfg nn_itend 1080 
     257    set_namelist namelist_cfg nn_itend ${ITEND} 
    251258    set_namelist namelist_cfg ln_linssh .true. 
    252259    set_namelist namelist_cfg jpni 2 
     
    275282    set_namelist namelist_cfg cn_exp \"GYREPIS_84\" 
    276283    set_namelist namelist_cfg nn_it000 1 
    277     set_namelist namelist_cfg nn_itend 1080 
     284    set_namelist namelist_cfg nn_itend ${ITEND} 
    278285    set_namelist namelist_cfg ln_linssh .true. 
    279286    set_namelist namelist_cfg jpni 4 
     
    298305if [ ${config} == "ORCA2_ICE_PISCES" ] ;  then 
    299306## Restartability tests for ORCA2_ICE_PISCES 
     307    if [ $( echo ${CMP_NAM} | grep -ic debug ) -eq 1 ] 
     308    then 
     309   ITEND=16   # 1 day 
     310    else 
     311   ITEND=992  # 62 days 
     312    fi 
     313    ITRST=$( printf "%08d" $(( ${ITEND} / 2 )) ) 
    300314    export TEST_NAME="LONG" 
    301315    cd ${MAIN_DIR} 
     
    319333    set_namelist namelist_cfg cn_exp \"O2L3P_LONG\" 
    320334    set_namelist namelist_cfg nn_it000 1 
    321     set_namelist namelist_cfg nn_itend 992 
    322     set_namelist namelist_cfg nn_stock 496 
     335    set_namelist namelist_cfg nn_itend ${ITEND} 
     336    set_namelist namelist_cfg nn_stock $(( ${ITEND} / 2 )) 
    323337    set_namelist namelist_cfg jpni 4 
    324338    set_namelist namelist_cfg jpnj 8 
     
    362376    cd ${EXE_DIR} 
    363377    set_namelist namelist_cfg cn_exp \"O2L3P_SHORT\" 
    364     set_namelist namelist_cfg nn_it000 497 
    365     set_namelist namelist_cfg nn_itend 992 
    366     set_namelist namelist_cfg nn_stock 496 
     378    set_namelist namelist_cfg nn_it000 $(( ${ITEND} / 2 + 1 )) 
     379    set_namelist namelist_cfg nn_itend ${ITEND} 
     380    set_namelist namelist_cfg nn_stock $(( ${ITEND} / 2 )) 
    367381    set_namelist namelist_cfg ln_rstart .true. 
    368382    set_namelist namelist_cfg nn_rstctl 2 
     
    385399    set_namelist namelist_top_cfg ln_rsttr .true. 
    386400    set_namelist namelist_top_cfg nn_rsttr 2 
    387     set_namelist namelist_cfg cn_ocerst_in \"O2L3P_LONG_00000496_restart\" 
    388     set_namelist namelist_cfg cn_icbrst_in \"O2L3P_LONG_00000496_restart_icb\" 
    389     set_namelist namelist_top_cfg cn_trcrst_in \"O2L3P_LONG_00000496_restart_trc\" 
    390     set_namelist namelist_ice_cfg cn_icerst_in \"O2L3P_LONG_00000496_restart_ice\" 
     401    set_namelist namelist_cfg cn_ocerst_in \"O2L3P_LONG_${ITRST}_restart\" 
     402    set_namelist namelist_cfg cn_icbrst_in \"O2L3P_LONG_${ITRST}_restart_icb\" 
     403    set_namelist namelist_top_cfg cn_trcrst_in \"O2L3P_LONG_${ITRST}_restart_trc\" 
     404    set_namelist namelist_ice_cfg cn_icerst_in \"O2L3P_LONG_${ITRST}_restart_ice\" 
    391405    set_namelist namelist_top_cfg ln_trcbc  .false. 
    392406    # put ln_ironsed, ln_hydrofe to false 
     
    401415        L_NPROC=$(( $i - 1 )) 
    402416        L_NPROC=`printf "%04d\n" ${L_NPROC}` 
    403         ln -sf ../LONG/O2L3P_LONG_00000496_restart_${L_NPROC}.nc . 
    404         ln -sf ../LONG/O2L3P_LONG_00000496_restart_trc_${L_NPROC}.nc . 
    405         ln -sf ../LONG/O2L3P_LONG_00000496_restart_ice_${L_NPROC}.nc . 
     417        ln -sf ../LONG/O2L3P_LONG_${ITRST}_restart_${L_NPROC}.nc . 
     418        ln -sf ../LONG/O2L3P_LONG_${ITRST}_restart_trc_${L_NPROC}.nc . 
     419        ln -sf ../LONG/O2L3P_LONG_${ITRST}_restart_ice_${L_NPROC}.nc . 
    406420        if [ ${USING_ICEBERGS} == "yes" ] 
    407421            then 
    408              ln -sf ../LONG/O2L3P_LONG_00000496_restart_icb_${L_NPROC}.nc O2L3P_LONG_00000496_restart_icb_${L_NPROC}.nc 
     422             ln -sf ../LONG/O2L3P_LONG_${ITRST}_restart_icb_${L_NPROC}.nc O2L3P_LONG_${ITRST}_restart_icb_${L_NPROC}.nc 
    409423        fi 
    410424    done 
     
    434448    set_namelist namelist_cfg cn_exp \"O2L3P_48\" 
    435449    set_namelist namelist_cfg nn_it000 1 
    436     set_namelist namelist_cfg nn_itend 992 
     450    set_namelist namelist_cfg nn_itend ${ITEND} 
    437451    set_namelist namelist_cfg jpni 4 
    438452    set_namelist namelist_cfg jpnj 8 
     
    480494    set_namelist namelist_cfg cn_exp \"O2L3P_84\" 
    481495    set_namelist namelist_cfg nn_it000 1 
    482     set_namelist namelist_cfg nn_itend 992 
     496    set_namelist namelist_cfg nn_itend ${ITEND} 
    483497    set_namelist namelist_cfg jpni 8 
    484498    set_namelist namelist_cfg jpnj 4 
     
    521535if [ ${config} == "ORCA2_OFF_PISCES" ] ;  then 
    522536## Restartability tests for ORCA2_OFF_PISCES 
     537    if [ $( echo ${CMP_NAM} | grep -ic debug ) -eq 1 ] 
     538    then 
     539   ITEND=16   # 4 days 
     540    else 
     541   ITEND=380  # 95 days 
     542    fi 
     543    ITRST=$( printf "%08d" $(( ${ITEND} / 2 )) ) 
    523544    export TEST_NAME="LONG" 
    524545    cd ${MAIN_DIR} 
     
    542563    set_namelist namelist_cfg cn_exp \"OFFP_LONG\" 
    543564    set_namelist namelist_cfg nn_it000 1 
    544     set_namelist namelist_cfg nn_itend 380 
    545     set_namelist namelist_cfg nn_stock 190 
     565    set_namelist namelist_cfg nn_itend ${ITEND} 
     566    set_namelist namelist_cfg nn_stock $(( ${ITEND} / 2 )) 
    546567    set_namelist namelist_cfg jpni 4 
    547568    set_namelist namelist_cfg jpnj 8 
     
    574595    cd ${EXE_DIR} 
    575596    set_namelist namelist_cfg cn_exp \"OFFP_SHORT\" 
    576     set_namelist namelist_cfg nn_it000 191 
    577     set_namelist namelist_cfg nn_itend 380 
    578     set_namelist namelist_cfg nn_stock 190 
     597    set_namelist namelist_cfg nn_it000 $(( ${ITEND} / 2 + 1 )) 
     598    set_namelist namelist_cfg nn_itend ${ITEND} 
     599    set_namelist namelist_cfg nn_stock $(( ${ITEND} / 2 )) 
    579600    set_namelist namelist_cfg jpni 4 
    580601    set_namelist namelist_cfg jpnj 8 
     
    584605    set_namelist namelist_top_cfg ln_rsttr .true. 
    585606    set_namelist namelist_top_cfg nn_rsttr 2 
    586     set_namelist namelist_top_cfg cn_trcrst_in \"OFFP_LONG_00000190_restart_trc\" 
     607    set_namelist namelist_top_cfg cn_trcrst_in \"OFFP_LONG_${ITRST}_restart_trc\" 
    587608    for (( i=1; i<=$NPROC; i++)) ; do 
    588609        L_NPROC=$(( $i - 1 )) 
    589610        L_NPROC=`printf "%04d\n" ${L_NPROC}` 
    590         ln -sf ../LONG/OFFP_LONG_00000190_restart_trc_${L_NPROC}.nc . 
     611        ln -sf ../LONG/OFFP_LONG_${ITRST}_restart_trc_${L_NPROC}.nc . 
    591612    done 
    592613    set_namelist namelist_top_cfg ln_trcbc  .false. 
     
    624645    set_namelist namelist_cfg cn_exp \"OFFP_48\" 
    625646    set_namelist namelist_cfg nn_it000 1 
    626     set_namelist namelist_cfg nn_itend 380 
     647    set_namelist namelist_cfg nn_itend ${ITEND} 
    627648    set_namelist namelist_cfg jpni 4 
    628649    set_namelist namelist_cfg jpnj 8 
     
    661682    set_namelist namelist_cfg cn_exp \"OFFP_84\" 
    662683    set_namelist namelist_cfg nn_it000 1 
    663     set_namelist namelist_cfg nn_itend 380 
     684    set_namelist namelist_cfg nn_itend ${ITEND} 
    664685    set_namelist namelist_cfg jpni 8 
    665686    set_namelist namelist_cfg jpnj 4 
     
    693714if [ ${config} == "AMM12" ] ;  then 
    694715    ## Restartability tests for AMM12 
     716    if [ $( echo ${CMP_NAM} | grep -ic debug ) -eq 1 ] 
     717    then 
     718   ITEND=12   # 3 h 
     719    else 
     720   ITEND=576  # 4 days 
     721    fi 
     722    ITRST=$( printf "%08d" $(( ${ITEND} / 2 )) ) 
    695723    export TEST_NAME="LONG" 
    696724    cd ${MAIN_DIR} 
     
    714742    set_namelist namelist_cfg cn_exp \"AMM12_LONG\" 
    715743    set_namelist namelist_cfg nn_it000 1 
    716     set_namelist namelist_cfg nn_itend 576 
    717     set_namelist namelist_cfg nn_stock 288 
     744    set_namelist namelist_cfg nn_itend ${ITEND} 
     745    set_namelist namelist_cfg nn_stock $(( ${ITEND} / 2 )) 
    718746    set_namelist namelist_cfg jpni 4 
    719747    set_namelist namelist_cfg jpnj 8 
     
    734762    cd ${EXE_DIR} 
    735763    set_namelist namelist_cfg cn_exp \"AMM12_SHORT\" 
    736     set_namelist namelist_cfg nn_it000 289 
    737     set_namelist namelist_cfg nn_itend 576 
     764    set_namelist namelist_cfg nn_it000 $(( ${ITEND} / 2 + 1 )) 
     765    set_namelist namelist_cfg nn_itend ${ITEND} 
     766    set_namelist namelist_cfg nn_stock $(( ${ITEND} / 2 )) 
    738767    set_namelist namelist_cfg jpni 4 
    739768    set_namelist namelist_cfg jpnj 8 
     
    741770    set_namelist namelist_cfg ln_rstart .true. 
    742771    set_namelist namelist_cfg nn_rstctl 2 
    743     set_namelist namelist_cfg cn_ocerst_in \"AMM12_LONG_00000288_restart\" 
     772    set_namelist namelist_cfg cn_ocerst_in \"AMM12_LONG_${ITRST}_restart\" 
    744773    set_namelist namelist_cfg nn_date0 20120102 
    745774    for (( i=1; i<=$NPROC; i++)) ; do 
    746775        L_NPROC=$(( $i - 1 )) 
    747776        L_NPROC=`printf "%04d\n" ${L_NPROC}` 
    748         ln -sf ../LONG/AMM12_LONG_00000288_restart_${L_NPROC}.nc . 
     777        ln -sf ../LONG/AMM12_LONG_${ITRST}_restart_${L_NPROC}.nc . 
    749778    done 
    750779    if [ ${USING_MPMD} == "yes" ] ; then 
     
    773802    set_namelist namelist_cfg cn_exp \"AMM12_84\" 
    774803    set_namelist namelist_cfg nn_it000 1 
    775     set_namelist namelist_cfg nn_itend 576 
     804    set_namelist namelist_cfg nn_itend ${ITEND} 
    776805    set_namelist namelist_cfg jpni 8 
    777806    set_namelist namelist_cfg jpnj 4 
     
    797826    set_namelist namelist_cfg cn_exp \"AMM12_48\" 
    798827    set_namelist namelist_cfg nn_it000 1 
    799     set_namelist namelist_cfg nn_itend 576 
     828    set_namelist namelist_cfg nn_itend ${ITEND} 
    800829    set_namelist namelist_cfg jpni 4 
    801830    set_namelist namelist_cfg jpnj 8 
     
    818847if [ ${config} == "SAS" ] ;  then 
    819848## Restartability tests 
     849    if [ $( echo ${CMP_NAM} | grep -ic debug ) -eq 1 ] 
     850    then 
     851   ITEND=16   # 1 day 
     852    else 
     853   ITEND=256  # 16 days 
     854    fi 
     855    ITRST=$( printf "%08d" $(( ${ITEND} / 2 )) ) 
    820856    export TEST_NAME="LONG" 
    821857    cd ${MAIN_DIR} 
     
    839875    set_namelist namelist_cfg cn_exp \"SAS\" 
    840876    set_namelist namelist_cfg nn_it000 1 
    841     set_namelist namelist_cfg nn_itend 256 
    842     set_namelist namelist_cfg nn_stock 128 
     877    set_namelist namelist_cfg nn_itend ${ITEND} 
     878    set_namelist namelist_cfg nn_stock $(( ${ITEND} / 2 )) 
    843879    set_namelist namelist_cfg jpni 4 
    844880    set_namelist namelist_cfg jpnj 8 
     
    860896    cd ${EXE_DIR} 
    861897    set_namelist namelist_cfg cn_exp \"SAS\" 
    862     set_namelist namelist_cfg nn_it000 129 
    863     set_namelist namelist_cfg nn_itend 256 
     898    set_namelist namelist_cfg nn_it000 $(( ${ITEND} / 2 + 1 )) 
     899    set_namelist namelist_cfg nn_itend ${ITEND} 
     900    set_namelist namelist_cfg nn_stock $(( ${ITEND} / 2 )) 
    864901    set_namelist namelist_cfg jpni 4 
    865902    set_namelist namelist_cfg jpnj 8 
     
    868905    set_namelist namelist_cfg nn_rstctl 2 
    869906    set_namelist namelist_cfg nn_date0 010109 
    870     set_namelist namelist_cfg cn_ocerst_in \"SAS_00000128_restart\" 
    871     set_namelist namelist_ice_cfg cn_icerst_in \"SAS_00000128_restart_ice\" 
     907    set_namelist namelist_cfg cn_ocerst_in \"SAS_${ITRST}_restart\" 
     908    set_namelist namelist_ice_cfg cn_icerst_in \"SAS_${ITRST}_restart_ice\" 
    872909    if [ ${USING_MPMD} == "yes" ] ; then 
    873910       set_xio_using_server iodef.xml true 
     
    878915        L_NPROC=$(( $i - 1 )) 
    879916        L_NPROC=`printf "%04d\n" ${L_NPROC}` 
    880         ln -sf ../LONG/SAS_00000128_restart_${L_NPROC}.nc . 
    881         ln -sf ../LONG/SAS_00000128_restart_ice_${L_NPROC}.nc . 
     917        ln -sf ../LONG/SAS_${ITRST}_restart_${L_NPROC}.nc . 
     918        ln -sf ../LONG/SAS_${ITRST}_restart_ice_${L_NPROC}.nc . 
    882919    done 
    883920    cd ${SETTE_DIR} 
     
    887924 
    888925## Reproducibility tests 
     926    if [ $( echo ${CMP_NAM} | grep -ic debug ) -eq 1 ] 
     927    then 
     928   ITEND=16  # 1 day 
     929    else 
     930   ITEND=80  # 5 days 
     931    fi 
    889932    export TEST_NAME="REPRO_4_8" 
    890933    cd ${MAIN_DIR} 
     
    901944    set_namelist namelist_cfg cn_exp \"SAS_48\" 
    902945    set_namelist namelist_cfg nn_it000 1 
    903     set_namelist namelist_cfg nn_itend 80 
     946    set_namelist namelist_cfg nn_itend ${ITEND} 
    904947    set_namelist namelist_cfg jpni 4 
    905948    set_namelist namelist_cfg jpnj 8 
     
    926969    set_namelist namelist_cfg cn_exp \"SAS_84\" 
    927970    set_namelist namelist_cfg nn_it000 1 
    928     set_namelist namelist_cfg nn_itend 80 
     971    set_namelist namelist_cfg nn_itend ${ITEND} 
    929972    set_namelist namelist_cfg jpni 8 
    930973    set_namelist namelist_cfg jpnj 4 
     
    950993if [ ${config} == "ORCA2_ICE_OBS" ] ; then 
    951994## Reproducibility tests 
     995    if [ $( echo ${CMP_NAM} | grep -ic debug ) -eq 1 ] 
     996    then 
     997   ITEND=16  # 1 day 
     998    else 
     999   ITEND=80  # 5 days 
     1000    fi 
    9521001    export TEST_NAME="REPRO_4_8" 
    9531002    cd ${MAIN_DIR} 
     
    9711020    set_namelist namelist_cfg cn_exp \"O2L3OBS_48\" 
    9721021    set_namelist namelist_cfg nn_it000 1 
    973     set_namelist namelist_cfg nn_itend 80 
     1022    set_namelist namelist_cfg nn_itend ${ITEND} 
    9741023    set_namelist namelist_cfg ln_read_cfg .true. 
    9751024    set_namelist namelist_cfg jpni 4 
     
    10191068    set_namelist namelist_cfg cn_exp \"O2L3OBS_84\" 
    10201069    set_namelist namelist_cfg nn_it000 1 
    1021     set_namelist namelist_cfg nn_itend 80 
     1070    set_namelist namelist_cfg nn_itend ${ITEND} 
    10221071    set_namelist namelist_cfg ln_read_cfg .true. 
    10231072    set_namelist namelist_cfg jpni 8 
     
    10621111if [ ${config} == "AGRIF" ] ;  then 
    10631112## Restartability tests 
     1113    if [ $( echo ${CMP_NAM} | grep -ic debug ) -eq 1 ] 
     1114    then 
     1115   ITEND=4   # 6h 
     1116    else 
     1117   ITEND=20  # 1d and 6h 
     1118    fi 
     1119    ITRST=$(   printf "%08d" $(( ${ITEND} / 2 )) ) 
     1120    ITRST_1=$( printf "%08d" $(( ${ITEND} / 2 )) ) 
     1121    ITRST_2=$( printf "%08d" $(( ${ITEND} * 4 / 2 )) ) 
     1122    ITRST_3=$( printf "%08d" $(( ${ITEND} * 4 * 3 / 2 )) ) 
    10641123    export TEST_NAME="LONG" 
    10651124    cd ${MAIN_DIR} 
     
    10831142    set_namelist namelist_cfg cn_exp \"AGRIF_LONG\" 
    10841143    set_namelist namelist_cfg nn_it000 1 
    1085     set_namelist namelist_cfg nn_itend 20 
    1086     set_namelist namelist_cfg nn_stock 10 
     1144    set_namelist namelist_cfg nn_itend ${ITEND} 
     1145    set_namelist namelist_cfg nn_stock $(( ${ITEND} / 2 )) 
    10871146    set_namelist namelist_cfg sn_cfctl%l_runstat .true. 
    10881147    set_namelist 1_namelist_cfg cn_exp \"AGRIF_LONG\" 
    10891148    set_namelist 1_namelist_cfg nn_it000 1 
    1090     set_namelist 1_namelist_cfg nn_itend 20 
    1091     set_namelist 1_namelist_cfg nn_stock 10 
     1149    set_namelist 1_namelist_cfg nn_itend ${ITEND} 
     1150    set_namelist 1_namelist_cfg nn_stock $(( ${ITEND} / 2 )) 
    10921151    set_namelist 1_namelist_cfg sn_cfctl%l_runstat .true. 
    10931152    set_namelist 2_namelist_cfg cn_exp \"AGRIF_LONG\" 
    10941153    set_namelist 2_namelist_cfg nn_it000 1 
    1095     set_namelist 2_namelist_cfg nn_itend 80 
    1096     set_namelist 2_namelist_cfg nn_stock 40 
     1154    set_namelist 2_namelist_cfg nn_itend $(( ${ITEND} * 4 )) 
     1155    set_namelist 2_namelist_cfg nn_stock $(( ${ITEND} * 4 / 2 )) 
    10971156    set_namelist 2_namelist_cfg sn_cfctl%l_runstat .true. 
    10981157    set_namelist 3_namelist_cfg cn_exp \"AGRIF_LONG\" 
    10991158    set_namelist 3_namelist_cfg nn_it000 1 
    1100     set_namelist 3_namelist_cfg nn_itend 240 
    1101     set_namelist 3_namelist_cfg nn_stock 120 
     1159    set_namelist 3_namelist_cfg nn_itend $(( ${ITEND} * 4 * 3 )) 
     1160    set_namelist 3_namelist_cfg nn_stock $(( ${ITEND} * 4 * 3 / 2 )) 
    11021161    set_namelist 3_namelist_cfg sn_cfctl%l_runstat .true. 
    11031162 
     
    11171176    cd ${EXE_DIR} 
    11181177    set_namelist namelist_cfg cn_exp \"AGRIF_SHORT\" 
    1119     set_namelist namelist_cfg nn_it000 11 
    1120     set_namelist namelist_cfg nn_itend 20 
    1121     set_namelist namelist_cfg nn_stock 10 
     1178    set_namelist namelist_cfg nn_it000 $(( ${ITEND} / 2 + 1 )) 
     1179    set_namelist namelist_cfg nn_itend ${ITEND} 
     1180    set_namelist namelist_cfg nn_stock $(( ${ITEND} / 2 )) 
    11221181    set_namelist namelist_cfg sn_cfctl%l_runstat .true. 
    11231182    set_namelist namelist_cfg ln_rstart .true. 
    11241183    set_namelist namelist_cfg nn_rstctl 2 
    11251184    set_namelist 1_namelist_cfg cn_exp \"AGRIF_SHORT\" 
    1126     set_namelist 1_namelist_cfg nn_it000 11 
    1127     set_namelist 1_namelist_cfg nn_itend 20 
    1128     set_namelist 1_namelist_cfg nn_stock 10 
     1185    set_namelist 1_namelist_cfg nn_it000 $(( ${ITEND} / 2 + 1 )) 
     1186    set_namelist 1_namelist_cfg nn_itend ${ITEND} 
     1187    set_namelist 1_namelist_cfg nn_stock $(( ${ITEND} / 2 )) 
    11291188    set_namelist 1_namelist_cfg sn_cfctl%l_runstat .true. 
    11301189    set_namelist 1_namelist_cfg ln_rstart .true. 
    11311190    set_namelist 1_namelist_cfg nn_rstctl 2 
    11321191    set_namelist 2_namelist_cfg cn_exp \"AGRIF_SHORT\" 
    1133     set_namelist 2_namelist_cfg nn_it000 41 
    1134     set_namelist 2_namelist_cfg nn_itend 80 
    1135     set_namelist 2_namelist_cfg nn_stock 40 
     1192    set_namelist 2_namelist_cfg nn_it000 $(( ${ITEND} * 4 / 2 + 1 )) 
     1193    set_namelist 2_namelist_cfg nn_itend $(( ${ITEND} * 4 )) 
     1194    set_namelist 2_namelist_cfg nn_stock $(( ${ITEND} * 4 / 2 )) 
    11361195    set_namelist 2_namelist_cfg sn_cfctl%l_runstat .true. 
    11371196    set_namelist 2_namelist_cfg ln_rstart .true. 
    11381197    set_namelist 2_namelist_cfg nn_rstctl 2 
    11391198    set_namelist 3_namelist_cfg cn_exp \"AGRIF_SHORT\" 
    1140     set_namelist 3_namelist_cfg nn_it000 121 
    1141     set_namelist 3_namelist_cfg nn_itend 240 
    1142     set_namelist 3_namelist_cfg nn_stock 120 
     1199    set_namelist 3_namelist_cfg nn_it000 $(( ${ITEND} * 4 * 3 / 2 + 1 )) 
     1200    set_namelist 3_namelist_cfg nn_itend $(( ${ITEND} * 4 * 3 )) 
     1201    set_namelist 3_namelist_cfg nn_stock $(( ${ITEND} * 4 * 3 / 2 )) 
    11431202    set_namelist 3_namelist_cfg sn_cfctl%l_runstat .true. 
    11441203    set_namelist 3_namelist_cfg ln_rstart .true. 
    11451204    set_namelist 3_namelist_cfg nn_rstctl 2 
    1146     set_namelist namelist_cfg cn_ocerst_in \"AGRIF_LONG_00000010_restart\" 
    1147     set_namelist namelist_ice_cfg cn_icerst_in \"AGRIF_LONG_00000010_restart_ice\" 
    1148     set_namelist 1_namelist_cfg cn_ocerst_in \"AGRIF_LONG_00000010_restart\" 
    1149     set_namelist 1_namelist_ice_cfg cn_icerst_in \"AGRIF_LONG_00000010_restart_ice\" 
    1150     set_namelist 2_namelist_cfg cn_ocerst_in \"AGRIF_LONG_00000040_restart\" 
    1151     set_namelist 2_namelist_ice_cfg cn_icerst_in \"AGRIF_LONG_00000040_restart_ice\" 
    1152     set_namelist 3_namelist_cfg cn_ocerst_in \"AGRIF_LONG_00000120_restart\" 
    1153     set_namelist 3_namelist_ice_cfg cn_icerst_in \"AGRIF_LONG_00000120_restart_ice\" 
     1205    set_namelist namelist_cfg cn_ocerst_in \"AGRIF_LONG_${ITRST}_restart\" 
     1206    set_namelist namelist_ice_cfg cn_icerst_in \"AGRIF_LONG_${ITRST}_restart_ice\" 
     1207    set_namelist 1_namelist_cfg cn_ocerst_in \"AGRIF_LONG_${ITRST_1}_restart\" 
     1208    set_namelist 1_namelist_ice_cfg cn_icerst_in \"AGRIF_LONG_${ITRST_1}_restart_ice\" 
     1209    set_namelist 2_namelist_cfg cn_ocerst_in \"AGRIF_LONG_${ITRST_2}_restart\" 
     1210    set_namelist 2_namelist_ice_cfg cn_icerst_in \"AGRIF_LONG_${ITRST_2}_restart_ice\" 
     1211    set_namelist 3_namelist_cfg cn_ocerst_in \"AGRIF_LONG_${ITRST_3}_restart\" 
     1212    set_namelist 3_namelist_ice_cfg cn_icerst_in \"AGRIF_LONG_${ITRST_3}_restart_ice\" 
    11541213 
    11551214    for (( i=1; i<=$NPROC; i++)) ; do 
    11561215        L_NPROC=$(( $i - 1 )) 
    11571216        L_NPROC=`printf "%04d\n" ${L_NPROC}` 
    1158         ln -sf ../LONG/AGRIF_LONG_00000010_restart_${L_NPROC}.nc . 
    1159         ln -sf ../LONG/AGRIF_LONG_00000010_restart_ice_${L_NPROC}.nc . 
    1160         ln -sf ../LONG/1_AGRIF_LONG_00000010_restart_${L_NPROC}.nc . 
    1161         ln -sf ../LONG/1_AGRIF_LONG_00000010_restart_ice_${L_NPROC}.nc . 
    1162         ln -sf ../LONG/2_AGRIF_LONG_00000040_restart_${L_NPROC}.nc . 
    1163         ln -sf ../LONG/2_AGRIF_LONG_00000040_restart_ice_${L_NPROC}.nc . 
    1164         ln -sf ../LONG/3_AGRIF_LONG_00000120_restart_${L_NPROC}.nc . 
    1165         ln -sf ../LONG/3_AGRIF_LONG_00000120_restart_ice_${L_NPROC}.nc . 
     1217        ln -sf ../LONG/AGRIF_LONG_${ITRST}_restart_${L_NPROC}.nc . 
     1218        ln -sf ../LONG/AGRIF_LONG_${ITRST}_restart_ice_${L_NPROC}.nc . 
     1219        ln -sf ../LONG/1_AGRIF_LONG_${ITRST_1}_restart_${L_NPROC}.nc . 
     1220        ln -sf ../LONG/1_AGRIF_LONG_${ITRST_1}_restart_ice_${L_NPROC}.nc . 
     1221        ln -sf ../LONG/2_AGRIF_LONG_${ITRST_2}_restart_${L_NPROC}.nc . 
     1222        ln -sf ../LONG/2_AGRIF_LONG_${ITRST_2}_restart_ice_${L_NPROC}.nc . 
     1223        ln -sf ../LONG/3_AGRIF_LONG_${ITRST_3}_restart_${L_NPROC}.nc . 
     1224        ln -sf ../LONG/3_AGRIF_LONG_${ITRST_3}_restart_ice_${L_NPROC}.nc . 
    11661225    done 
    11671226    if [ ${USING_MPMD} == "yes" ] ; then 
     
    11901249    set_namelist namelist_cfg cn_exp \"AGRIF_28\" 
    11911250    set_namelist namelist_cfg nn_it000 1 
    1192     set_namelist namelist_cfg nn_itend 20 
     1251    set_namelist namelist_cfg nn_itend ${ITEND} 
    11931252    set_namelist namelist_cfg jpni 2 
    11941253    set_namelist namelist_cfg jpnj 8 
     
    11961255    set_namelist 1_namelist_cfg cn_exp \"AGRIF_28\" 
    11971256    set_namelist 1_namelist_cfg nn_it000 1 
    1198     set_namelist 1_namelist_cfg nn_itend 20 
     1257    set_namelist 1_namelist_cfg nn_itend ${ITEND} 
    11991258    set_namelist 1_namelist_cfg jpni 2 
    12001259    set_namelist 1_namelist_cfg jpnj 8 
     
    12021261    set_namelist 2_namelist_cfg cn_exp \"AGRIF_28\" 
    12031262    set_namelist 2_namelist_cfg nn_it000 1 
    1204     set_namelist 2_namelist_cfg nn_itend 80 
     1263    set_namelist 2_namelist_cfg nn_itend $(( ${ITEND} * 4 )) 
    12051264    set_namelist 2_namelist_cfg jpni 2 
    12061265    set_namelist 2_namelist_cfg jpnj 8 
     
    12081267    set_namelist 3_namelist_cfg cn_exp \"AGRIF_28\" 
    12091268    set_namelist 3_namelist_cfg nn_it000 1 
    1210     set_namelist 3_namelist_cfg nn_itend 240 
     1269    set_namelist 3_namelist_cfg nn_itend $(( ${ITEND} * 4 * 3 )) 
    12111270    set_namelist 3_namelist_cfg jpni 2 
    12121271    set_namelist 3_namelist_cfg jpnj 8 
     
    12341293    set_namelist namelist_cfg cn_exp \"AGRIF_44\" 
    12351294    set_namelist namelist_cfg nn_it000 1 
    1236     set_namelist namelist_cfg nn_itend 20 
     1295    set_namelist namelist_cfg nn_itend ${ITEND} 
    12371296    set_namelist namelist_cfg jpni 4 
    12381297    set_namelist namelist_cfg jpnj 4 
     
    12401299    set_namelist 1_namelist_cfg cn_exp \"AGRIF_44\" 
    12411300    set_namelist 1_namelist_cfg nn_it000 1 
    1242     set_namelist 1_namelist_cfg nn_itend 20 
     1301    set_namelist 1_namelist_cfg nn_itend ${ITEND} 
    12431302    set_namelist 1_namelist_cfg jpni 4 
    12441303    set_namelist 1_namelist_cfg jpnj 4 
     
    12461305    set_namelist 2_namelist_cfg cn_exp \"AGRIF_44\" 
    12471306    set_namelist 2_namelist_cfg nn_it000 1 
    1248     set_namelist 2_namelist_cfg nn_itend 80 
     1307    set_namelist 2_namelist_cfg nn_itend $(( ${ITEND} * 4 )) 
    12491308    set_namelist 2_namelist_cfg jpni 4 
    12501309    set_namelist 2_namelist_cfg jpnj 4 
     
    12521311    set_namelist 3_namelist_cfg cn_exp \"AGRIF_44\" 
    12531312    set_namelist 3_namelist_cfg nn_it000 1 
    1254     set_namelist 3_namelist_cfg nn_itend 240 
     1313    set_namelist 3_namelist_cfg nn_itend $(( ${ITEND} * 4 * 3 )) 
    12551314    set_namelist 3_namelist_cfg jpni 4 
    12561315    set_namelist 3_namelist_cfg jpnj 4 
     
    12681327 
    12691328## test code corruption with AGRIF (phase 1) ==> Compile with key_agrif but run with no zoom 
     1329    if [ $( echo ${CMP_NAM} | grep -ic debug ) -eq 1 ] 
     1330    then 
     1331   ITEND=16   # 1d 
     1332    else 
     1333   ITEND=150  # 5d and 9h  
     1334    fi 
    12701335    export TEST_NAME="ORCA2" 
    12711336    cd ${MAIN_DIR} 
     
    12821347    set_namelist namelist_cfg cn_exp \"ORCA2\" 
    12831348    set_namelist namelist_cfg nn_it000 1 
    1284     set_namelist namelist_cfg nn_itend 150 
     1349    set_namelist namelist_cfg nn_itend ${ITEND} 
    12851350    set_namelist namelist_cfg sn_cfctl%l_runstat .true. 
    12861351 
     
    13241389    set_namelist namelist_cfg cn_exp \"ORCA2\" 
    13251390    set_namelist namelist_cfg nn_it000 1 
    1326     set_namelist namelist_cfg nn_itend 150 
     1391    set_namelist namelist_cfg nn_itend ${ITEND} 
    13271392    set_namelist namelist_cfg sn_cfctl%l_runstat .true. 
    13281393# 
     
    13441409if [ ${config} == "WED025" ] ;  then 
    13451410## Restartability tests 
     1411    if [ $( echo ${CMP_NAM} | grep -ic debug ) -eq 1 ] 
     1412    then 
     1413   ITEND=12   # 4h 
     1414    else 
     1415   ITEND=720  # 10 days 
     1416    fi 
     1417    ITRST=$( printf "%08d" $(( ${ITEND} / 2 )) ) 
    13461418    export TEST_NAME="LONG" 
    13471419    cd ${MAIN_DIR} 
     
    13651437    set_namelist namelist_cfg cn_exp \"WED025_LONG\" 
    13661438    set_namelist namelist_cfg nn_it000 1 
    1367     set_namelist namelist_cfg nn_itend 720 
    1368     set_namelist namelist_cfg nn_stock 360 
     1439    set_namelist namelist_cfg nn_itend ${ITEND} 
     1440    set_namelist namelist_cfg nn_stock $(( ${ITEND} / 2 )) 
    13691441    set_namelist namelist_cfg nn_date0 20000115 
    13701442    set_namelist namelist_cfg jpni 4 
     
    13871459    cd ${EXE_DIR} 
    13881460    set_namelist namelist_cfg cn_exp \"WED025_SHORT\" 
    1389     set_namelist namelist_cfg nn_it000 361 
    1390     set_namelist namelist_cfg nn_itend 720 
    1391     set_namelist namelist_cfg nn_stock 360 
     1461    set_namelist namelist_cfg nn_it000 $(( ${ITEND} / 2 + 1 )) 
     1462    set_namelist namelist_cfg nn_itend ${ITEND} 
     1463    set_namelist namelist_cfg nn_stock $(( ${ITEND} / 2 )) 
    13921464    set_namelist namelist_cfg ln_rstart .true. 
    13931465    set_namelist namelist_cfg nn_rstctl 2 
     
    13951467    set_namelist namelist_cfg jpnj 8 
    13961468    set_namelist namelist_cfg sn_cfctl%l_runstat .true. 
    1397     set_namelist namelist_cfg cn_ocerst_in \"WED025_LONG_00000360_restart\" 
    1398     set_namelist namelist_ice_cfg cn_icerst_in \"WED025_LONG_00000360_restart_ice\" 
     1469    set_namelist namelist_cfg cn_ocerst_in \"WED025_LONG_${ITRST}_restart\" 
     1470    set_namelist namelist_ice_cfg cn_icerst_in \"WED025_LONG_${ITRST}_restart_ice\" 
    13991471    for (( i=1; i<=$NPROC; i++)) ; do 
    14001472        L_NPROC=$(( $i - 1 )) 
    14011473        L_NPROC=`printf "%04d\n" ${L_NPROC}` 
    1402         ln -sf ../LONG/WED025_LONG_00000360_restart_${L_NPROC}.nc . 
    1403         ln -sf ../LONG/WED025_LONG_00000360_restart_ice_${L_NPROC}.nc . 
     1474        ln -sf ../LONG/WED025_LONG_${ITRST}_restart_${L_NPROC}.nc . 
     1475        ln -sf ../LONG/WED025_LONG_${ITRST}_restart_ice_${L_NPROC}.nc . 
    14041476    done 
    14051477    if [ ${USING_MPMD} == "yes" ] ; then 
     
    14281500    set_namelist namelist_cfg cn_exp \"WED025_56\" 
    14291501    set_namelist namelist_cfg nn_it000 1 
    1430     set_namelist namelist_cfg nn_itend 720 
     1502    set_namelist namelist_cfg nn_itend ${ITEND} 
    14311503    set_namelist namelist_cfg nn_date0 20000115 
    14321504    set_namelist namelist_cfg jpni 6 
     
    14541526    set_namelist namelist_cfg cn_exp \"WED025_84\" 
    14551527    set_namelist namelist_cfg nn_it000 1 
    1456     set_namelist namelist_cfg nn_itend 720 
     1528    set_namelist namelist_cfg nn_itend ${ITEND} 
    14571529    set_namelist namelist_cfg nn_date0 20000115 
    14581530    set_namelist namelist_cfg jpni 8 
  • utils/CI/sette/sette_test-cases.sh

    r13382 r13559  
    162162if [ ${config} == "OVERFLOW" ] ;  then 
    163163    ## Restartability tests for OVERFLOW 
     164    if [ $( echo ${CMP_NAM} | grep -ic debug ) -eq 1 ] 
     165    then 
     166   ITEND=12 
     167    else 
     168   ITEND=120 
     169    fi 
     170    ITRST=$( printf "%08d" $(( ${ITEND} / 2 )) ) 
    164171    export TEST_NAME="LONG" 
    165172    cd ${MAIN_DIR} 
     
    184191    set_namelist namelist_cfg cn_exp \"OVF_LONG\" 
    185192    set_namelist namelist_cfg nn_it000 1 
    186     set_namelist namelist_cfg nn_itend 120 
    187     set_namelist namelist_cfg nn_stock 60 
     193    set_namelist namelist_cfg nn_itend ${ITEND} 
     194    set_namelist namelist_cfg nn_stock $(( ${ITEND} / 2 )) 
    188195    set_namelist namelist_cfg sn_cfctl%l_runstat .true. 
    189196    if [ ${USING_MPMD} == "yes" ] ; then 
     
    202209    cd ${EXE_DIR} 
    203210    set_namelist namelist_cfg cn_exp \"OVF_SHORT\" 
    204     set_namelist namelist_cfg nn_it000 61 
    205     set_namelist namelist_cfg nn_itend 120 
    206     set_namelist namelist_cfg nn_stock 60 
     211    set_namelist namelist_cfg nn_it000 $(( ${ITEND} / 2 + 1 )) 
     212    set_namelist namelist_cfg nn_itend ${ITEND} 
     213    set_namelist namelist_cfg nn_stock $(( ${ITEND} / 2 )) 
    207214    set_namelist namelist_cfg sn_cfctl%l_runstat .true. 
    208215    set_namelist namelist_cfg ln_rstart .true. 
    209216    set_namelist namelist_cfg nn_rstctl 2 
    210     set_namelist namelist_cfg cn_ocerst_in \"OVF_LONG_00000060_restart\" 
    211     if [ ${USING_MPMD} == "yes" ] ; then 
    212        set_xio_using_server iodef.xml true 
    213     else 
    214        set_xio_using_server iodef.xml false 
    215     fi 
    216     ln -sf ../LONG/OVF_LONG_00000060_restart.nc . 
     217    set_namelist namelist_cfg cn_ocerst_in \"OVF_LONG_${ITRST}_restart\" 
     218    if [ ${USING_MPMD} == "yes" ] ; then 
     219       set_xio_using_server iodef.xml true 
     220    else 
     221       set_xio_using_server iodef.xml false 
     222    fi 
     223    ln -sf ../LONG/OVF_LONG_${ITRST}_restart.nc . 
    217224 
    218225    cd ${SETTE_DIR} 
     
    224231    ## Test for all advection, vert. coordinates, vector form, flux form: test runability and complete all time steps 
    225232    ## Needed namelist-xxxx for every type of run tested 
     233    if [ $( echo ${CMP_NAM} | grep -ic debug ) -eq 1 ] 
     234    then 
     235   ITEND=12 
     236    else 
     237   ITEND=6120 
     238    fi 
    226239    cd ${CONFIG_DIR}/${NEW_CONF}/EXP00 
    227240 
     
    244257        rm namelist_*_*_*_* 
    245258        cp -pL ${CONFIG_DIR}/${NEW_CONF}/EXP00/$file namelist_cfg 
     259   set_namelist namelist_cfg nn_it000 1 
     260   set_namelist namelist_cfg nn_itend ${ITEND} 
    246261        if [ ${USING_MPMD} == "yes" ] ; then 
    247262           set_xio_using_server iodef.xml true 
     
    262277if [ ${config} == "LOCK_EXCHANGE" ] ;  then 
    263278    ## Restartability tests for LOCK_EXCHANGE 
     279    if [ $( echo ${CMP_NAM} | grep -ic debug ) -eq 1 ] 
     280    then 
     281   ITEND=12 
     282    else 
     283   ITEND=120 
     284    fi 
     285    ITRST=$( printf "%08d" $(( ${ITEND} / 2 )) ) 
    264286    export TEST_NAME="LONG" 
    265287    cd ${MAIN_DIR} 
     
    285307    set_namelist namelist_cfg cn_exp \"LOCK_LONG\" 
    286308    set_namelist namelist_cfg nn_it000 1 
    287     set_namelist namelist_cfg nn_stock 60 
    288     set_namelist namelist_cfg sn_cfctl%l_runstat .true. 
    289     set_namelist namelist_cfg nn_itend 120 
     309    set_namelist namelist_cfg nn_itend ${ITEND} 
     310    set_namelist namelist_cfg nn_stock $(( ${ITEND} / 2 )) 
     311    set_namelist namelist_cfg sn_cfctl%l_runstat .true. 
    290312    if [ ${USING_MPMD} == "yes" ] ; then 
    291313       set_xio_using_server iodef.xml true 
     
    303325    cd ${EXE_DIR} 
    304326    set_namelist namelist_cfg cn_exp \"LOCK_SHORT\" 
    305     set_namelist namelist_cfg nn_it000 61 
    306     set_namelist namelist_cfg nn_itend 120 
    307     set_namelist namelist_cfg nn_stock 60 
     327    set_namelist namelist_cfg nn_it000 $(( ${ITEND} / 2 + 1 )) 
     328    set_namelist namelist_cfg nn_itend ${ITEND} 
     329    set_namelist namelist_cfg nn_stock $(( ${ITEND} / 2 )) 
    308330    set_namelist namelist_cfg sn_cfctl%l_runstat .true. 
    309331    set_namelist namelist_cfg ln_rstart .true. 
    310332    set_namelist namelist_cfg nn_rstctl 2 
    311     set_namelist namelist_cfg cn_ocerst_in \"LOCK_LONG_00000060_restart\" 
    312     if [ ${USING_MPMD} == "yes" ] ; then 
    313        set_xio_using_server iodef.xml true 
    314     else 
    315        set_xio_using_server iodef.xml false 
    316     fi 
    317     ln -sf ../LONG/LOCK_LONG_00000060_restart.nc . 
     333    set_namelist namelist_cfg cn_ocerst_in \"LOCK_LONG_${ITRST}_restart\" 
     334    if [ ${USING_MPMD} == "yes" ] ; then 
     335       set_xio_using_server iodef.xml true 
     336    else 
     337       set_xio_using_server iodef.xml false 
     338    fi 
     339    ln -sf ../LONG/LOCK_LONG_${ITRST}_restart.nc . 
    318340 
    319341    cd ${SETTE_DIR} 
     
    364386if [ ${config} == "VORTEX" ] ;  then  
    365387## Restartability tests for VORTEX 
     388    if [ $( echo ${CMP_NAM} | grep -ic debug ) -eq 1 ] 
     389    then 
     390   ITEND=12 
     391    else 
     392   ITEND=240 
     393    fi 
     394    ITRST=$(   printf "%08d" $(( ${ITEND} / 2 )) ) 
     395    ITRST_1=$( printf "%08d" $(( ${ITEND} * 3 / 2 )) ) 
    366396    export TEST_NAME="LONG" 
    367397    cd ${MAIN_DIR} 
     
    387417    set_namelist namelist_cfg cn_exp \"VORTEX_LONG\" 
    388418    set_namelist namelist_cfg nn_it000 1 
    389     set_namelist namelist_cfg nn_itend 240 
    390     set_namelist namelist_cfg nn_stock 120 
    391     set_namelist namelist_cfg sn_cfctl%l_runstat .true. 
     419    set_namelist namelist_cfg nn_itend ${ITEND} 
     420    set_namelist namelist_cfg nn_stock $(( ${ITEND} / 2 )) 
     421    set_namelist namelist_cfg sn_cfctl%l_runstat .true.   
    392422 
    393423    set_namelist 1_namelist_cfg cn_exp \"VORTEX_LONG\" 
    394424    set_namelist 1_namelist_cfg nn_it000 1 
    395     set_namelist 1_namelist_cfg nn_itend 720 
    396     set_namelist 1_namelist_cfg nn_stock 360 
     425    set_namelist 1_namelist_cfg nn_itend $(( ${ITEND} * 3 )) 
     426    set_namelist 1_namelist_cfg nn_stock $(( ${ITEND} * 3 / 2 )) 
    397427    set_namelist 1_namelist_cfg sn_cfctl%l_runstat .true. 
    398428    
     
    412442    cd ${EXE_DIR} 
    413443    set_namelist namelist_cfg cn_exp \"VORTEX_SHORT\" 
    414     set_namelist namelist_cfg nn_it000 121 
    415     set_namelist namelist_cfg nn_itend 240 
    416     set_namelist namelist_cfg nn_stock 120 
     444    set_namelist namelist_cfg nn_it000 $(( ${ITEND} / 2 + 1 )) 
     445    set_namelist namelist_cfg nn_itend ${ITEND} 
     446    set_namelist namelist_cfg nn_stock $(( ${ITEND} / 2 )) 
    417447    set_namelist namelist_cfg sn_cfctl%l_runstat .true. 
    418448    set_namelist namelist_cfg ln_rstart .true. 
    419449    set_namelist namelist_cfg nn_rstctl 2 
    420     set_namelist namelist_cfg cn_ocerst_in \"VORTEX_LONG_00000120_restart\" 
     450    set_namelist namelist_cfg cn_ocerst_in \"VORTEX_LONG_${ITRST}_restart\" 
    421451     
    422452    set_namelist 1_namelist_cfg cn_exp \"VORTEX_SHORT\" 
    423     set_namelist 1_namelist_cfg nn_it000 361 
    424     set_namelist 1_namelist_cfg nn_itend 720 
     453    set_namelist 1_namelist_cfg nn_it000 $(( ${ITEND} * 3 / 2 + 1 )) 
     454    set_namelist 1_namelist_cfg nn_itend $(( ${ITEND} * 3 )) 
     455    set_namelist 1_namelist_cfg nn_stock $(( ${ITEND} * 3 / 2 )) 
    425456    set_namelist 1_namelist_cfg sn_cfctl%l_runstat .true. 
    426     set_namelist 1_namelist_cfg nn_stock 360 
    427457    set_namelist 1_namelist_cfg ln_rstart .true. 
    428458    set_namelist 1_namelist_cfg nn_rstctl 2 
    429     set_namelist 1_namelist_cfg cn_ocerst_in \"VORTEX_LONG_00000360_restart\" 
     459    set_namelist 1_namelist_cfg cn_ocerst_in \"VORTEX_LONG_${ITRST_1}_restart\" 
    430460       
    431461    if [ ${USING_MPMD} == "yes" ] ; then 
     
    435465    fi 
    436466    if [ $NPROC -eq 1 ] ;  then 
    437         ln -sf ../LONG/VORTEX_LONG_00000120_restart.nc . 
    438         ln -sf ../LONG/1_VORTEX_LONG_00000360_restart.nc . 
     467        ln -sf ../LONG/VORTEX_LONG_${ITRST}_restart.nc . 
     468        ln -sf ../LONG/1_VORTEX_LONG_${ITRST_1}_restart.nc . 
    439469    else 
    440470        for (( i=1; i<=$NPROC; i++)) ; do 
    441471            L_NPROC=$(( $i - 1 )) 
    442472            L_NPROC=`printf "%04d\n" ${L_NPROC}` 
    443             ln -sf ../LONG/VORTEX_LONG_00000120_restart_${L_NPROC}.nc . 
    444             ln -sf ../LONG/1_VORTEX_LONG_00000360_restart_${L_NPROC}.nc . 
     473            ln -sf ../LONG/VORTEX_LONG_${ITRST}_restart_${L_NPROC}.nc . 
     474            ln -sf ../LONG/1_VORTEX_LONG_${ITRST_1}_restart_${L_NPROC}.nc . 
    445475        done 
    446476    fi 
     
    465495    set_namelist namelist_cfg cn_exp \"VORTEX_23\" 
    466496    set_namelist namelist_cfg nn_it000 1 
    467     set_namelist namelist_cfg nn_itend 240 
    468     set_namelist namelist_cfg nn_stock 120 
     497    set_namelist namelist_cfg nn_itend ${ITEND} 
     498    set_namelist namelist_cfg nn_stock ${ITEND} 
    469499    set_namelist namelist_cfg jpni 2 
    470500    set_namelist namelist_cfg jpnj 3 
     
    473503    set_namelist 1_namelist_cfg cn_exp \"VORTEX_23\" 
    474504    set_namelist 1_namelist_cfg nn_it000 1 
    475     set_namelist 1_namelist_cfg nn_itend 720 
    476     set_namelist 1_namelist_cfg nn_stock 360 
     505    set_namelist 1_namelist_cfg nn_itend $(( ${ITEND} * 3 )) 
     506    set_namelist 1_namelist_cfg nn_stock $(( ${ITEND} * 3 )) 
    477507    set_namelist 1_namelist_cfg jpni 2 
    478508    set_namelist 1_namelist_cfg jpnj 3 
     
    501531    set_namelist namelist_cfg cn_exp \"VORTEX_32\" 
    502532    set_namelist namelist_cfg nn_it000 1 
    503     set_namelist namelist_cfg nn_itend 240 
    504     set_namelist namelist_cfg nn_stock 120 
     533    set_namelist namelist_cfg nn_itend ${ITEND} 
     534    set_namelist namelist_cfg nn_stock ${ITEND} 
    505535    set_namelist namelist_cfg jpni 3 
    506536    set_namelist namelist_cfg jpnj 2 
     
    509539    set_namelist 1_namelist_cfg cn_exp \"VORTEX_32\" 
    510540    set_namelist 1_namelist_cfg nn_it000 1 
    511     set_namelist 1_namelist_cfg nn_itend 720 
    512     set_namelist 1_namelist_cfg nn_stock 360 
     541    set_namelist 1_namelist_cfg nn_itend $(( ${ITEND} * 3 )) 
     542    set_namelist 1_namelist_cfg nn_stock $(( ${ITEND} * 3 )) 
    513543    set_namelist 1_namelist_cfg jpni 3 
    514544    set_namelist 1_namelist_cfg jpnj 2 
     
    533563if [ ${config} == "ICE_AGRIF" ] ;  then  
    534564## Restartability tests for ICE_AGRIF 
     565    if [ $( echo ${CMP_NAM} | grep -ic debug ) -eq 1 ] 
     566    then 
     567   ITEND=10 
     568    else 
     569   ITEND=200 
     570    fi 
     571    ITRST=$(   printf "%08d" $(( ${ITEND} / 2 )) ) 
     572    ITRST_1=$( printf "%08d" $(( ${ITEND} * 3 / 2 )) ) 
    535573    export TEST_NAME="LONG" 
    536574    cd ${MAIN_DIR} 
     
    556594    set_namelist namelist_cfg cn_exp \"ICE_AGRIF_LONG\" 
    557595    set_namelist namelist_cfg nn_it000 1 
    558     set_namelist namelist_cfg nn_itend 200 
    559     set_namelist namelist_cfg sn_cfctl%l_runstat .true. 
    560     set_namelist namelist_cfg nn_stock 100 
     596    set_namelist namelist_cfg nn_itend ${ITEND} 
     597    set_namelist namelist_cfg nn_stock $(( ${ITEND} / 2 )) 
     598    set_namelist namelist_cfg sn_cfctl%l_runstat .true. 
    561599     
    562600    set_namelist 1_namelist_cfg cn_exp \"ICE_AGRIF_LONG\" 
    563601    set_namelist 1_namelist_cfg nn_it000 1 
    564     set_namelist 1_namelist_cfg nn_itend 600 
     602    set_namelist 1_namelist_cfg nn_itend $(( ${ITEND} * 3 )) 
     603    set_namelist 1_namelist_cfg nn_stock $(( ${ITEND} * 3 / 2 )) 
    565604    set_namelist 1_namelist_cfg sn_cfctl%l_runstat .true. 
    566     set_namelist 1_namelist_cfg nn_stock 300 
    567605     
    568606    if [ ${USING_MPMD} == "yes" ] ; then 
     
    581619    cd ${EXE_DIR} 
    582620    set_namelist namelist_cfg cn_exp \"ICE_AGRIF_SHORT\" 
    583     set_namelist namelist_cfg nn_it000 101 
    584     set_namelist namelist_cfg nn_itend 200 
    585     set_namelist namelist_cfg sn_cfctl%l_runstat .true. 
    586     set_namelist namelist_cfg nn_stock 100 
     621    set_namelist namelist_cfg nn_it000 $(( ${ITEND} / 2 + 1 )) 
     622    set_namelist namelist_cfg nn_itend ${ITEND} 
     623    set_namelist namelist_cfg nn_stock $(( ${ITEND} / 2 )) 
     624    set_namelist namelist_cfg sn_cfctl%l_runstat .true. 
    587625    set_namelist namelist_cfg ln_rstart .true. 
    588626    set_namelist namelist_cfg nn_rstctl 2 
    589     set_namelist namelist_cfg cn_ocerst_in \"ICE_AGRIF_LONG_00000100_restart\" 
    590     set_namelist namelist_ice_cfg cn_icerst_in \"ICE_AGRIF_LONG_00000100_restart_ice\" 
     627    set_namelist namelist_cfg cn_ocerst_in \"ICE_AGRIF_LONG_${ITRST}_restart\" 
     628    set_namelist namelist_ice_cfg cn_icerst_in \"ICE_AGRIF_LONG_${ITRST}_restart_ice\" 
    591629     
    592630    set_namelist 1_namelist_cfg cn_exp \"ICE_AGRIF_SHORT\" 
    593     set_namelist 1_namelist_cfg nn_it000 301 
    594     set_namelist 1_namelist_cfg nn_itend 600 
     631    set_namelist 1_namelist_cfg nn_it000 $(( ${ITEND} * 3 / 2 + 1 )) 
     632    set_namelist 1_namelist_cfg nn_itend $(( ${ITEND} * 3 )) 
     633    set_namelist 1_namelist_cfg nn_stock $(( ${ITEND} * 3 / 2 )) 
    595634    set_namelist 1_namelist_cfg sn_cfctl%l_runstat .true. 
    596     set_namelist 1_namelist_cfg nn_stock 300 
    597635    set_namelist 1_namelist_cfg ln_rstart .true. 
    598636    set_namelist 1_namelist_cfg nn_rstctl 2 
    599     set_namelist 1_namelist_cfg cn_ocerst_in \"ICE_AGRIF_LONG_00000300_restart\" 
    600     set_namelist 1_namelist_ice_cfg cn_icerst_in \"ICE_AGRIF_LONG_00000300_restart_ice\" 
     637    set_namelist 1_namelist_cfg cn_ocerst_in \"ICE_AGRIF_LONG_${ITRST_1}_restart\" 
     638    set_namelist 1_namelist_ice_cfg cn_icerst_in \"ICE_AGRIF_LONG_${ITRST_1}_restart_ice\" 
    601639     
    602640     
     
    607645    fi 
    608646    if [ $NPROC -eq 1 ] ;  then 
    609         ln -sf ../LONG/ICE_AGRIF_LONG_00000100_restart.nc . 
    610         ln -sf ../LONG/ICE_AGRIF_LONG_00000100_restart_ice.nc . 
    611         ln -sf ../LONG/1_ICE_AGRIF_LONG_00000300_restart.nc . 
    612         ln -sf ../LONG/1_ICE_AGRIF_LONG_00000300_restart_ice.nc . 
     647        ln -sf ../LONG/ICE_AGRIF_LONG_${ITRST}_restart.nc . 
     648        ln -sf ../LONG/ICE_AGRIF_LONG_${ITRST}_restart_ice.nc . 
     649        ln -sf ../LONG/1_ICE_AGRIF_LONG_${ITRST_1}_restart.nc . 
     650        ln -sf ../LONG/1_ICE_AGRIF_LONG_${ITRST_1}_restart_ice.nc . 
    613651    else 
    614652        for (( i=1; i<=$NPROC; i++)) ; do 
    615653            L_NPROC=$(( $i - 1 )) 
    616654            L_NPROC=`printf "%04d\n" ${L_NPROC}` 
    617             ln -sf ../LONG/ICE_AGRIF_LONG_00000100_restart_${L_NPROC}.nc . 
    618             ln -sf ../LONG/ICE_AGRIF_LONG_00000100_restart_ice_${L_NPROC}.nc . 
    619             ln -sf ../LONG/1_ICE_AGRIF_LONG_00000300_restart_${L_NPROC}.nc . 
    620             ln -sf ../LONG/1_ICE_AGRIF_LONG_00000300_restart_ice_${L_NPROC}.nc . 
     655            ln -sf ../LONG/ICE_AGRIF_LONG_${ITRST}_restart_${L_NPROC}.nc . 
     656            ln -sf ../LONG/ICE_AGRIF_LONG_${ITRST}_restart_ice_${L_NPROC}.nc . 
     657            ln -sf ../LONG/1_ICE_AGRIF_LONG_${ITRST_1}_restart_${L_NPROC}.nc . 
     658            ln -sf ../LONG/1_ICE_AGRIF_LONG_${ITRST_1}_restart_ice_${L_NPROC}.nc . 
    621659        done 
    622660    fi 
     
    643681    set_namelist namelist_cfg cn_exp \"ICE_AGRIF_23\" 
    644682    set_namelist namelist_cfg nn_it000 1 
    645     set_namelist namelist_cfg nn_itend 200 
    646     set_namelist namelist_cfg nn_stock 100 
     683    set_namelist namelist_cfg nn_itend ${ITEND} 
     684    set_namelist namelist_cfg nn_stock $(( ${ITEND} / 2 )) 
    647685    set_namelist namelist_cfg jpni 2 
    648686    set_namelist namelist_cfg jpnj 3 
     
    651689    set_namelist 1_namelist_cfg cn_exp \"ICE_AGRIF_23\" 
    652690    set_namelist 1_namelist_cfg nn_it000 1 
    653     set_namelist 1_namelist_cfg nn_itend 600 
    654     set_namelist 1_namelist_cfg nn_stock 300 
     691    set_namelist 1_namelist_cfg nn_itend $(( ${ITEND} * 3 )) 
     692    set_namelist 1_namelist_cfg nn_stock $(( ${ITEND} * 3 / 2 )) 
    655693    set_namelist 1_namelist_cfg jpni 2 
    656694    set_namelist 1_namelist_cfg jpnj 3 
     
    679717    set_namelist namelist_cfg cn_exp \"ICE_AGRIF_32\" 
    680718    set_namelist namelist_cfg nn_it000 1 
    681     set_namelist namelist_cfg nn_itend 200 
    682     set_namelist namelist_cfg nn_stock 100 
     719    set_namelist namelist_cfg nn_itend ${ITEND} 
     720    set_namelist namelist_cfg nn_stock $(( ${ITEND} / 2 )) 
    683721    set_namelist namelist_cfg jpni 3 
    684722    set_namelist namelist_cfg jpnj 2 
     
    687725    set_namelist 1_namelist_cfg cn_exp \"ICE_AGRIF_32\" 
    688726    set_namelist 1_namelist_cfg nn_it000 1 
    689     set_namelist 1_namelist_cfg nn_itend 600 
    690     set_namelist 1_namelist_cfg nn_stock 300 
     727    set_namelist 1_namelist_cfg nn_itend $(( ${ITEND} * 3 )) 
     728    set_namelist 1_namelist_cfg nn_stock $(( ${ITEND} * 3 / 2 )) 
    691729    set_namelist 1_namelist_cfg jpni 3 
    692730    set_namelist 1_namelist_cfg jpnj 2 
     
    710748if [ ${config} == "ISOMIP+" ] ;  then 
    711749## Restartability tests 
     750    if [ $( echo ${CMP_NAM} | grep -ic debug ) -eq 1 ] 
     751    then 
     752   ITEND=12 
     753    else 
     754   ITEND=1200 
     755    fi 
     756    ITRST=$( printf "%08d" $(( ${ITEND} / 2 )) ) 
    712757    export TEST_NAME="LONG" 
    713758    cd ${MAIN_DIR} 
     
    733778    set_namelist namelist_cfg cn_exp \"ISOMIP+_LONG\" 
    734779    set_namelist namelist_cfg nn_it000 1 
    735     set_namelist namelist_cfg nn_itend 1200 
    736     set_namelist namelist_cfg nn_stock 600 
     780    set_namelist namelist_cfg nn_itend ${ITEND} 
     781    set_namelist namelist_cfg nn_stock $(( ${ITEND} / 2 )) 
    737782    set_namelist namelist_cfg jpni 9 
    738783    set_namelist namelist_cfg jpnj 3 
     
    753798    cd ${EXE_DIR} 
    754799    set_namelist namelist_cfg cn_exp \"ISOMIP+_SHORT\" 
    755     set_namelist namelist_cfg nn_it000 601 
    756     set_namelist namelist_cfg nn_itend 1200 
    757     set_namelist namelist_cfg nn_stock 600 
     800    set_namelist namelist_cfg nn_it000 $(( ${ITEND} / 2 + 1 )) 
     801    set_namelist namelist_cfg nn_itend ${ITEND} 
     802    set_namelist namelist_cfg nn_stock $(( ${ITEND} / 2 )) 
    758803    set_namelist namelist_cfg ln_rstart .true. 
    759804    set_namelist namelist_cfg nn_rstctl 2 
     
    761806    set_namelist namelist_cfg jpnj 3 
    762807    set_namelist namelist_cfg sn_cfctl%l_runstat .true. 
    763     set_namelist namelist_cfg cn_ocerst_in \"ISOMIP+_LONG_00000600_restart\" 
     808    set_namelist namelist_cfg cn_ocerst_in \"ISOMIP+_LONG_${ITRST}_restart\" 
    764809    if [ ${USING_MPMD} == "yes" ] ; then 
    765810       set_xio_using_server iodef.xml true 
     
    770815        L_NPROC=$(( $i - 1 )) 
    771816        L_NPROC=`printf "%04d\n" ${L_NPROC}` 
    772         ln -sf ../LONG/ISOMIP+_LONG_00000600_restart_${L_NPROC}.nc . 
     817        ln -sf ../LONG/ISOMIP+_LONG_${ITRST}_restart_${L_NPROC}.nc . 
    773818    done 
    774819 
     
    779824 
    780825## Reproducibility tests 
     826    if [ $( echo ${CMP_NAM} | grep -ic debug ) -eq 1 ] 
     827    then 
     828   ITEND=12 
     829    else 
     830   ITEND=600 
     831    fi 
    781832    export TEST_NAME="REPRO_9_3" 
    782833    cd ${MAIN_DIR} 
     
    793844    set_namelist namelist_cfg cn_exp \"ISOMIP+_93\" 
    794845    set_namelist namelist_cfg nn_it000 1 
    795     set_namelist namelist_cfg nn_itend 600 
     846    set_namelist namelist_cfg nn_itend ${ITEND} 
    796847    set_namelist namelist_cfg jpni 9 
    797848    set_namelist namelist_cfg jpnj 3 
     
    818869    set_namelist namelist_cfg cn_exp \"ISOMIP+_84\" 
    819870    set_namelist namelist_cfg nn_it000 1 
    820     set_namelist namelist_cfg nn_itend 600 
     871    set_namelist namelist_cfg nn_itend ${ITEND} 
    821872    set_namelist namelist_cfg jpni 8 
    822873    set_namelist namelist_cfg jpnj 4 
Note: See TracChangeset for help on using the changeset viewer.