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 11358 for NEMO/branches/2019/dev_r10984_HPC-13_IRRMANN_BDY_optimization/src/ICE/icerst.F90 – NEMO

Ignore:
Timestamp:
2019-07-26T16:10:19+02:00 (5 years ago)
Author:
smasson
Message:

dev_r10984_HPC-13 : supress output files with nn_stock and nn_write = -1, see #2285

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2019/dev_r10984_HPC-13_IRRMANN_BDY_optimization/src/ICE/icerst.F90

    r10425 r11358  
    5353      IF( kt == nit000 )   lrst_ice = .FALSE.   ! default definition 
    5454 
     55      IF( ln_rst_list .OR. nn_stock /= -1 ) THEN 
    5556      ! in order to get better performances with NetCDF format, we open and define the ice restart file  
    5657      ! one ice time step before writing the data (-> at nitrst - 2*nn_fsbc + 1), except if we write ice  
    5758      ! restart files every ice time step or if an ice restart file was writen at nitend - 2*nn_fsbc + 1 
    58       IF( kt == nitrst - 2*nn_fsbc + 1 .OR. nstock == nn_fsbc    & 
     59      IF( kt == nitrst - 2*nn_fsbc + 1 .OR. nn_stock == nn_fsbc    & 
    5960         &                             .OR. ( kt == nitend - nn_fsbc + 1 .AND. .NOT. lrst_ice ) ) THEN 
    6061         IF( nitrst <= nitend .AND. nitrst > 0 ) THEN 
     
    8182         ENDIF 
    8283      ENDIF 
     84      ENDIF 
    8385      ! 
    8486      IF( ln_icectl )   CALL ice_prt( kt, iiceprt, jiceprt, 1, ' - Beginning the time step - ' )   ! control print 
Note: See TracChangeset for help on using the changeset viewer.