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 8630 for branches/2017/dev_r8600_xios_write/NEMOGCM/NEMO/OPA_SRC/DOM/domain.F90 – NEMO

Ignore:
Timestamp:
2017-10-17T14:31:49+02:00 (7 years ago)
Author:
andmirek
Message:

#1962 merge with branches/UKMO/dev_r7573_xios_write (doesn't woork)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2017/dev_r8600_xios_write/NEMOGCM/NEMO/OPA_SRC/DOM/domain.F90

    r7822 r8630  
    4747   USE wrk_nemo       ! Memory Allocation 
    4848   USE timing         ! Timing 
    49  
     49   USE iom_def, ONLY:lwxios, wxioso ! write restart flag and output type 
    5050   IMPLICIT NONE 
    5151   PRIVATE 
     
    285285         &             nn_it000, nn_itend , nn_date0    , nn_time0     , nn_leapy  , nn_istate ,     & 
    286286         &             nn_stock, nn_write , ln_mskland  , ln_clobber   , nn_chunksz, nn_euler  ,     & 
    287          &             ln_cfmeta, ln_iscpl 
     287         &             ln_cfmeta, ln_iscpl, nn_wxios 
    288288      NAMELIST/namdom/ ln_linssh, nn_closea, nn_msh, rn_isfhmin, rn_rdt, rn_atfp, ln_crs 
    289289#if defined key_netcdf4 
     
    293293      !!---------------------------------------------------------------------- 
    294294      ! 
     295      nn_wxios = 0 
    295296      REWIND( numnam_ref )              ! Namelist namrun in reference namelist : Parameters of the run 
    296297      READ  ( numnam_ref, namrun, IOSTAT = ios, ERR = 901) 
     
    333334         WRITE(numout,*) '      NetCDF chunksize (bytes)        nn_chunksz = ', nn_chunksz 
    334335         WRITE(numout,*) '      IS coupling at the restart step ln_iscpl   = ', ln_iscpl 
     336         WRITE(numout,*) '      Write restart using XIOS        nn_wxios   = ', nn_wxios 
     337         IF( TRIM(Agrif_CFixed()) == '0' ) & 
     338     &      WRITE(numout,*) '      Write restart using XIOS        nn_wxios   = ', nn_wxios 
    335339      ENDIF 
    336340 
     
    413417      rdt       = rn_rdt 
    414418 
     419      IF( TRIM(Agrif_CFixed()) == '0' ) THEN 
     420!set output file type for XIOS based on NEMO namelist  
     421         if (nn_wxios > 0) lwxios = .TRUE.  
     422         wxioso = nn_wxios 
     423      ELSE 
     424         IF(lwp) THEN 
     425            write(numout,*) 
     426            write(numout,*) "AGRIF: nn_wxios will be ingored. See setting for NEMO"  
     427            write(numout,*) 
     428         ENDIF 
     429      ENDIF 
     430 
    415431#if defined key_netcdf4 
    416432      !                             ! NetCDF 4 case   ("key_netcdf4" defined) 
Note: See TracChangeset for help on using the changeset viewer.