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 8079 for branches/UKMO/dev_r7573_xios_write/NEMOGCM/NEMO/OPA_SRC/DOM/domain.F90 – NEMO

Ignore:
Timestamp:
2017-05-26T12:09:41+02:00 (7 years ago)
Author:
andmirek
Message:

#1882 a first working version with XIOS writing restart file. Works with MO suite u-am389

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/UKMO/dev_r7573_xios_write/NEMOGCM/NEMO/OPA_SRC/DOM/domain.F90

    r6491 r8079  
    3838   USE timing          ! Timing 
    3939   USE lbclnk          ! ocean lateral boundary condition (or mpp link) 
     40   USE iom_def, ONLY:lwxios, wxioso ! write restart flag and output type 
    4041 
    4142   IMPLICIT NONE 
     
    138139         &             nn_no   , cn_exp    , cn_ocerst_in, cn_ocerst_out, ln_rstart , ln_rstdate, nn_rstctl,   & 
    139140         &             nn_it000, nn_itend  , nn_date0    , nn_leapy     , nn_istate , nn_stock ,   & 
    140          &             nn_write, ln_dimgnnn, ln_mskland  , ln_cfmeta    , ln_clobber, nn_chunksz, nn_euler 
     141         &             nn_write, ln_dimgnnn, ln_mskland  , ln_cfmeta    , ln_clobber, nn_chunksz, nn_euler, & 
     142         &             nn_wxios 
    141143      NAMELIST/namdom/ nn_bathy, rn_bathy , rn_e3zps_min, rn_e3zps_rat, nn_msh, rn_hmin,   & 
    142144         &             nn_acc   , rn_atfp     , rn_rdt      , rn_rdtmin ,                  & 
     
    152154      INTEGER  ::   ios                 ! Local integer output status for namelist read 
    153155      !!---------------------------------------------------------------------- 
    154  
     156      nn_wxios = 0 
    155157      REWIND( numnam_ref )              ! Namelist namrun in reference namelist : Parameters of the run 
    156158      READ  ( numnam_ref, namrun, IOSTAT = ios, ERR = 901) 
     
    193195         WRITE(numout,*) '      overwrite an existing file      ln_clobber = ', ln_clobber 
    194196         WRITE(numout,*) '      NetCDF chunksize (bytes)        nn_chunksz = ', nn_chunksz 
     197         WRITE(numout,*) '      Write restart using XIOS        nn_wxios   = ', nn_wxios 
    195198      ENDIF 
    196199 
     
    305308      rdtmax    = rn_rdtmin 
    306309      rdth      = rn_rdth 
     310      if (nn_wxios > 0) lwxios = .TRUE.  
     311      wxioso = nn_wxios 
    307312 
    308313      REWIND( numnam_ref )              ! Namelist namcla in reference namelist : Cross land advection 
Note: See TracChangeset for help on using the changeset viewer.