Changeset 12522


Ignore:
Timestamp:
2020-03-09T11:23:42+01:00 (8 months ago)
Author:
andmirek
Message:

Ticket #2386: changes for tests cases enabling use XIOS in the tests to read and wirite restart with XIOS (using USING_XIOS_RRW)

File:
1 edited

Legend:

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

    r12428 r12522  
    181181    set_namelist namelist_cfg sn_cfctl%l_config .true. 
    182182    set_namelist namelist_cfg sn_cfctl%l_runstat .true. 
     183    if [ ${USING_XIOS_RRW} == "yes" ] 
     184       then 
     185       set_namelist namelist_cfg nn_wxios 1 
     186    fi 
     187 
    183188    if [ ${USING_MPMD} == "yes" ] ; then 
    184189       set_xio_using_server iodef.xml true 
     
    204209    set_namelist namelist_cfg nn_rstctl 2 
    205210    set_namelist namelist_cfg cn_ocerst_in \"OVF_LONG_00000060_restart\" 
     211    if [ ${USING_XIOS_RRW} == "yes" ] 
     212       then 
     213       set_namelist namelist_cfg nn_wxios 1 
     214       set_namelist namelist_cfg ln_xios_read .true. 
     215    fi 
     216 
    206217    if [ ${USING_MPMD} == "yes" ] ; then 
    207218       set_xio_using_server iodef.xml true 
     
    379390    set_namelist 1_namelist_cfg sn_cfctl%l_config .true. 
    380391    set_namelist 1_namelist_cfg sn_cfctl%l_runstat .true. 
     392 
     393    if [ ${USING_XIOS_RRW} == "yes" ] 
     394       then 
     395       set_namelist namelist_cfg nn_wxios 1 
     396    fi 
    381397    
    382398    if [ ${USING_MPMD} == "yes" ] ; then 
     
    413429    set_namelist 1_namelist_cfg nn_rstctl 2 
    414430    set_namelist 1_namelist_cfg cn_ocerst_in \"VORTEX_LONG_00000360_restart\" 
     431 
     432    if [ ${USING_XIOS_RRW} == "yes" ] 
     433       then 
     434       set_namelist namelist_cfg nn_wxios 1 
     435       set_namelist namelist_cfg ln_xios_read .true. 
     436    fi 
    415437       
    416438    if [ ${USING_MPMD} == "yes" ] ; then 
     
    419441        set_xio_using_server iodef.xml false 
    420442    fi 
    421     if [ $NPROC -eq 1 ] ;  then 
     443    if [[ ($NPROC -eq 1 || ${USING_XIOS_RRW} == "yes") ]];  then 
    422444        ln -sf ../LONG/VORTEX_LONG_00000120_restart.nc . 
    423445        ln -sf ../LONG/1_VORTEX_LONG_00000360_restart.nc . 
     
    548570    set_namelist 1_namelist_cfg sn_cfctl%l_runstat .true. 
    549571    set_namelist 1_namelist_cfg nn_stock 300 
     572 
     573    if [ ${USING_XIOS_RRW} == "yes" ] 
     574       then 
     575       set_namelist namelist_cfg nn_wxios 1 
     576    fi 
    550577     
    551578    if [ ${USING_MPMD} == "yes" ] ; then 
     
    584611    set_namelist 1_namelist_cfg cn_ocerst_in \"ICE_AGRIF_LONG_00000300_restart\" 
    585612    set_namelist 1_namelist_ice_cfg cn_icerst_in \"ICE_AGRIF_LONG_00000300_restart_ice\" 
    586      
     613 
     614    if [ ${USING_XIOS_RRW} == "yes" ] 
     615       then 
     616       set_namelist namelist_cfg nn_wxios 1 
     617       set_namelist namelist_cfg ln_xios_read .true. 
     618    fi 
    587619     
    588620    if [ ${USING_MPMD} == "yes" ] ; then 
     
    591623        set_xio_using_server iodef.xml false 
    592624    fi 
    593     if [ $NPROC -eq 1 ] ;  then 
     625    if [[ ($NPROC -eq 1 || ${USING_XIOS_RRW} == "yes") ]] ;  then 
    594626        ln -sf ../LONG/ICE_AGRIF_LONG_00000100_restart.nc . 
    595627        ln -sf ../LONG/ICE_AGRIF_LONG_00000100_restart_ice.nc . 
     
    720752    set_namelist namelist_cfg sn_cfctl%l_config .true. 
    721753    set_namelist namelist_cfg sn_cfctl%l_runstat .true. 
     754    if [ ${USING_XIOS_RRW} == "yes" ] 
     755       then 
     756       set_namelist namelist_cfg nn_wxios 1 
     757    fi 
    722758    if [ ${USING_MPMD} == "yes" ] ; then 
    723759       set_xio_using_server iodef.xml true 
     
    745781    set_namelist namelist_cfg sn_cfctl%l_runstat .true. 
    746782    set_namelist namelist_cfg cn_ocerst_in \"ISOMIP_LONG_00000048_restart\" 
    747     if [ ${USING_MPMD} == "yes" ] ; then 
    748        set_xio_using_server iodef.xml true 
    749     else 
    750        set_xio_using_server iodef.xml false 
    751     fi 
    752     for (( i=1; i<=$NPROC; i++)) ; do 
    753         L_NPROC=$(( $i - 1 )) 
    754         L_NPROC=`printf "%04d\n" ${L_NPROC}` 
    755         ln -sf ../LONG/ISOMIP_LONG_00000048_restart_${L_NPROC}.nc . 
    756     done 
    757  
     783    if [ ${USING_XIOS_RRW} == "yes" ] 
     784       then 
     785       set_namelist namelist_cfg nn_wxios 1 
     786       set_namelist namelist_cfg ln_xios_read .true. 
     787    fi 
     788    if [ ${USING_MPMD} == "yes" ] ; then 
     789       set_xio_using_server iodef.xml true 
     790    else 
     791       set_xio_using_server iodef.xml false 
     792    fi 
     793    if [ ${USING_XIOS_RRW} == "yes" ]; then 
     794        ln -sf ../LONG/ISOMIP_LONG_00000048_restart.nc . 
     795    else 
     796        for (( i=1; i<=$NPROC; i++)) ; do 
     797            L_NPROC=$(( $i - 1 )) 
     798            L_NPROC=`printf "%04d\n" ${L_NPROC}` 
     799            ln -sf ../LONG/ISOMIP_LONG_00000048_restart_${L_NPROC}.nc . 
     800        done 
     801    fi 
    758802    cd ${SETTE_DIR} 
    759803    . ./prepare_job.sh input_ISOMIP.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} 
Note: See TracChangeset for help on using the changeset viewer.