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 12999 for utils/CI/r12931_sette_ticket2462/sette_test-cases.sh – NEMO

Ignore:
Timestamp:
2020-06-01T12:52:45+02:00 (4 years ago)
Author:
andmirek
Message:

Ticket #2462 update sette to handle restart read/write with XIOS

File:
1 edited

Legend:

Unmodified
Added
Removed
  • utils/CI/r12931_sette_ticket2462/sette_test-cases.sh

    r12931 r12999  
    187187    set_namelist namelist_cfg nn_stock 60 
    188188    set_namelist namelist_cfg sn_cfctl%l_runstat .true. 
     189    if [ ${USING_XIOS_RRW} == "yes" ] ; then 
     190       set_namelist namelist_cfg nn_wxios 1 
     191    fi 
    189192    if [ ${USING_MPMD} == "yes" ] ; then 
    190193       set_xio_using_server iodef.xml true 
     
    209212    set_namelist namelist_cfg nn_rstctl 2 
    210213    set_namelist namelist_cfg cn_ocerst_in \"OVF_LONG_00000060_restart\" 
     214    if [ ${USING_XIOS_RRW} == "yes" ] ; then 
     215       set_namelist namelist_cfg nn_wxios 1 
     216       set_namelist namelist_cfg ln_xios_read .true. 
     217    fi 
    211218    if [ ${USING_MPMD} == "yes" ] ; then 
    212219       set_xio_using_server iodef.xml true 
     
    288295    set_namelist namelist_cfg sn_cfctl%l_runstat .true. 
    289296    set_namelist namelist_cfg nn_itend 120 
     297    if [ ${USING_XIOS_RRW} == "yes" ] ; then 
     298       set_namelist namelist_cfg nn_wxios 1 
     299    fi 
    290300    if [ ${USING_MPMD} == "yes" ] ; then 
    291301       set_xio_using_server iodef.xml true 
     
    310320    set_namelist namelist_cfg nn_rstctl 2 
    311321    set_namelist namelist_cfg cn_ocerst_in \"LOCK_LONG_00000060_restart\" 
     322    if [ ${USING_XIOS_RRW} == "yes" ] ; then 
     323       set_namelist namelist_cfg nn_wxios 1 
     324    fi 
    312325    if [ ${USING_MPMD} == "yes" ] ; then 
    313326       set_xio_using_server iodef.xml true 
     
    390403    set_namelist namelist_cfg nn_stock 120 
    391404    set_namelist namelist_cfg sn_cfctl%l_runstat .true. 
     405    if [ ${USING_XIOS_RRW} == "yes" ] ; then 
     406       set_namelist namelist_cfg nn_wxios 1 
     407    fi 
    392408 
    393409    set_namelist 1_namelist_cfg cn_exp \"VORTEX_LONG\" 
     
    396412    set_namelist 1_namelist_cfg nn_stock 360 
    397413    set_namelist 1_namelist_cfg sn_cfctl%l_runstat .true. 
     414 
     415    if [ ${USING_XIOS_RRW} == "yes" ] 
     416       then 
     417       set_namelist namelist_cfg nn_wxios 1 
     418    fi 
    398419    
    399420    if [ ${USING_MPMD} == "yes" ] ; then 
     
    419440    set_namelist namelist_cfg nn_rstctl 2 
    420441    set_namelist namelist_cfg cn_ocerst_in \"VORTEX_LONG_00000120_restart\" 
     442    if [ ${USING_XIOS_RRW} == "yes" ] ; then 
     443       set_namelist namelist_cfg nn_wxios 1 
     444       set_namelist namelist_cfg ln_xios_read .true. 
     445    fi 
    421446     
    422447    set_namelist 1_namelist_cfg cn_exp \"VORTEX_SHORT\" 
     
    434459        set_xio_using_server iodef.xml false 
    435460    fi 
    436     if [ $NPROC -eq 1 ] ;  then 
     461    if [[ ($NPROC -eq 1 || ${USING_XIOS_RRW} == "yes") ]];  then 
    437462        ln -sf ../LONG/VORTEX_LONG_00000120_restart.nc . 
    438463        ln -sf ../LONG/1_VORTEX_LONG_00000360_restart.nc . 
     
    470495    set_namelist namelist_cfg jpnj 3 
    471496    set_namelist namelist_cfg sn_cfctl%l_runstat .true. 
     497    if [ ${USING_XIOS_RRW} == "yes" ] ; then 
     498       set_namelist namelist_cfg nn_wxios 1 
     499       set_namelist namelist_cfg ln_xios_read .true. 
     500    fi 
    472501    
    473502    set_namelist 1_namelist_cfg cn_exp \"VORTEX_23\" 
     
    506535    set_namelist namelist_cfg jpnj 2 
    507536    set_namelist namelist_cfg sn_cfctl%l_runstat .true. 
     537    if [ ${USING_XIOS_RRW} == "yes" ] ; then 
     538       set_namelist namelist_cfg nn_wxios 1 
     539    fi 
    508540 
    509541    set_namelist 1_namelist_cfg cn_exp \"VORTEX_32\" 
     
    559591    set_namelist namelist_cfg sn_cfctl%l_runstat .true. 
    560592    set_namelist namelist_cfg nn_stock 100 
    561      
     593    if [ ${USING_XIOS_RRW} == "yes" ] ; then 
     594       set_namelist namelist_cfg nn_wxios 1 
     595    fi 
    562596    set_namelist 1_namelist_cfg cn_exp \"ICE_AGRIF_LONG\" 
    563597    set_namelist 1_namelist_cfg nn_it000 1 
     
    589623    set_namelist namelist_cfg cn_ocerst_in \"ICE_AGRIF_LONG_00000100_restart\" 
    590624    set_namelist namelist_ice_cfg cn_icerst_in \"ICE_AGRIF_LONG_00000100_restart_ice\" 
     625    if [ ${USING_XIOS_RRW} == "yes" ] ; then 
     626       set_namelist namelist_cfg nn_wxios 1 
     627       set_namelist namelist_cfg ln_xios_read .true. 
     628    fi 
    591629     
    592630    set_namelist 1_namelist_cfg cn_exp \"ICE_AGRIF_SHORT\" 
     
    606644        set_xio_using_server iodef.xml false 
    607645    fi 
    608     if [ $NPROC -eq 1 ] ;  then 
     646    if [[ ($NPROC -eq 1 || ${USING_XIOS_RRW} == "yes") ]] ;  then 
    609647        ln -sf ../LONG/ICE_AGRIF_LONG_00000100_restart.nc . 
    610648        ln -sf ../LONG/ICE_AGRIF_LONG_00000100_restart_ice.nc . 
     
    648686    set_namelist namelist_cfg jpnj 3 
    649687    set_namelist namelist_cfg sn_cfctl%l_runstat .true. 
     688    if [ ${USING_XIOS_RRW} == "yes" ] ; then 
     689       set_namelist namelist_cfg nn_wxios 1 
     690    fi 
    650691     
    651692    set_namelist 1_namelist_cfg cn_exp \"ICE_AGRIF_23\" 
     
    684725    set_namelist namelist_cfg jpnj 2 
    685726    set_namelist namelist_cfg sn_cfctl%l_runstat .true. 
     727    if [ ${USING_XIOS_RRW} == "yes" ] ; then 
     728       set_namelist namelist_cfg nn_wxios 1 
     729    fi 
    686730     
    687731    set_namelist 1_namelist_cfg cn_exp \"ICE_AGRIF_32\" 
     
    738782    set_namelist namelist_cfg jpnj 3 
    739783    set_namelist namelist_cfg sn_cfctl%l_runstat .true. 
     784    if [ ${USING_XIOS_RRW} == "yes" ] 
     785       then 
     786       set_namelist namelist_cfg nn_wxios 1 
     787    fi 
    740788    if [ ${USING_MPMD} == "yes" ] ; then 
    741789       set_xio_using_server iodef.xml true 
     
    762810    set_namelist namelist_cfg sn_cfctl%l_runstat .true. 
    763811    set_namelist namelist_cfg cn_ocerst_in \"ISOMIP_LONG_00000048_restart\" 
    764     if [ ${USING_MPMD} == "yes" ] ; then 
    765        set_xio_using_server iodef.xml true 
    766     else 
    767        set_xio_using_server iodef.xml false 
    768     fi 
    769     for (( i=1; i<=$NPROC; i++)) ; do 
    770         L_NPROC=$(( $i - 1 )) 
    771         L_NPROC=`printf "%04d\n" ${L_NPROC}` 
    772         ln -sf ../LONG/ISOMIP_LONG_00000048_restart_${L_NPROC}.nc . 
    773     done 
    774  
     812    if [ ${USING_XIOS_RRW} == "yes" ] 
     813       then 
     814       set_namelist namelist_cfg nn_wxios 1 
     815       set_namelist namelist_cfg ln_xios_read .true. 
     816    fi 
     817    if [ ${USING_MPMD} == "yes" ] ; then 
     818       set_xio_using_server iodef.xml true 
     819    else 
     820       set_xio_using_server iodef.xml false 
     821    fi 
     822    if [ ${USING_XIOS_RRW} == "yes" ]; then 
     823        ln -sf ../LONG/ISOMIP_LONG_00000048_restart.nc . 
     824    else 
     825        for (( i=1; i<=$NPROC; i++)) ; do 
     826            L_NPROC=$(( $i - 1 )) 
     827            L_NPROC=`printf "%04d\n" ${L_NPROC}` 
     828            ln -sf ../LONG/ISOMIP_LONG_00000048_restart_${L_NPROC}.nc . 
     829        done 
     830    fi 
    775831    cd ${SETTE_DIR} 
    776832    . ./prepare_job.sh input_ISOMIP.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} 
     
    797853    set_namelist namelist_cfg jpnj 3 
    798854    set_namelist namelist_cfg sn_cfctl%l_runstat .true. 
     855    if [ ${USING_XIOS_RRW} == "yes" ] ; then 
     856       set_namelist namelist_cfg nn_wxios 1 
     857    fi 
    799858    if [ ${USING_MPMD} == "yes" ] ; then 
    800859       set_xio_using_server iodef.xml true 
     
    822881    set_namelist namelist_cfg jpnj 4 
    823882    set_namelist namelist_cfg sn_cfctl%l_runstat .true. 
     883    if [ ${USING_XIOS_RRW} == "yes" ] ; then 
     884       set_namelist namelist_cfg nn_wxios 1 
     885    fi 
    824886    if [ ${USING_MPMD} == "yes" ] ; then 
    825887       set_xio_using_server iodef.xml true 
Note: See TracChangeset for help on using the changeset viewer.