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 10001 for NEMO/branches/2018/dev_r9838_ENHANCE04_RK3/src/OCE/DIA/diawri.F90 – NEMO

Ignore:
Timestamp:
2018-07-26T09:50:51+02:00 (6 years ago)
Author:
gm
Message:

#1911 (ENHANCE-04): RK3 branch - step I.1 and I.2 (see wiki page)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2018/dev_r9838_ENHANCE04_RK3/src/OCE/DIA/diawri.F90

    r9939 r10001  
    118118      !  
    119119      ! Output the initial state and forcings 
    120       IF( ninist == 1 ) THEN                        
     120      IF( ln_istate ) THEN                        
    121121         CALL dia_wri_state( 'output.init', kt ) 
    122          ninist = 0 
     122         ln_istate = .FALSE. 
    123123      ENDIF 
    124124 
     
    444444      IF( ln_timing )   CALL timing_start('dia_wri') 
    445445      ! 
    446       IF( ninist == 1 ) THEN     !==  Output the initial state and forcings  ==! 
     446      IF( ln_istate ) THEN     !==  Output the initial state and forcings  ==! 
    447447         CALL dia_wri_state( 'output.init', kt ) 
    448          ninist = 0 
     448         ln_istate = .FALSE. 
    449449      ENDIF 
    450450      ! 
     
    878878      !! 
    879879      !! ** Method  :   NetCDF files using ioipsl 
    880       !!      File 'output.init.nc'  is created if ninist = 1 (namelist) 
     880      !!      File 'output.init.nc'  is created if ln_istate = T (namelist) 
    881881      !!      File 'output.abort.nc' is created in case of abnormal job end 
    882882      !!---------------------------------------------------------------------- 
     
    10291029      CALL histclo( id_i ) 
    10301030#if ! defined key_iomput 
    1031       IF( ninist /= 1  ) THEN 
     1031      IF( ln_istate  ) THEN 
    10321032         CALL histclo( nid_T ) 
    10331033         CALL histclo( nid_U ) 
Note: See TracChangeset for help on using the changeset viewer.