Ignore:
Timestamp:
06/27/19 14:15:12 (4 years ago)
Author:
snguyen
Message:

removed bug : not writing restart when doing several periods of computation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • SCHWARZ_ORCA2LIM3/SOURCES/NEMO/restart.F90

    r4 r11  
    6060      !!---------------------------------------------------------------------- 
    6161      ! 
    62       IF( kt == nit000 .AND. kswr == 1 ) THEN   ! default definitions 
     62      IF( kt == nit000 .AND. kswr == 0 ) THEN   ! default definitions 
    6363         lrst_oce = .FALSE.    
    6464         IF( ln_rst_list ) THEN 
     
    7676         IF( nitrst > nitend )   nitrst = nitend   ! make sure we write a restart at the end of the run 
    7777      ENDIF 
     78 
    7879      ! to get better performances with NetCDF format: 
    7980      ! we open and define the ocean restart file one time step before writing the data (-> at nitrst - 1) 
Note: See TracChangeset for help on using the changeset viewer.