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/sette/sette_reference-configurations.sh – NEMO

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

sette: update sette for DEBUG mode, see #2535

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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 
Note: See TracChangeset for help on using the changeset viewer.