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 3594 for branches/2012/dev_r3452_UKMO9_RESTART/NEMOGCM/NEMO/OPA_SRC/TRD/trdmld_rst.F90 – NEMO

Ignore:
Timestamp:
2012-11-19T13:28:55+01:00 (11 years ago)
Author:
rfurner
Message:

code not tested through SETTEE, builds and runs, but has not been thoroughly tested, so will not be included in 2012 merge, however submitted back to keep record of work done for 2013 developments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2012/dev_r3452_UKMO9_RESTART/NEMOGCM/NEMO/OPA_SRC/TRD/trdmld_rst.F90

    r2528 r3594  
    4646      ! to get better performances with NetCDF format: 
    4747      ! we open and define the ocean restart_mld file one time step before writing the data (-> at nitrst - 1) 
    48       ! except if we write ocean restart_mld files every time step or if an ocean restart_mld file was writen at nitend - 1 
    49       IF( kt == nitrst - 1 .OR. nstock == 1 .OR. ( kt == nitend .AND. MOD( nitend - 1, nstock ) == 0 ) ) THEN 
     48      ! except if we are at the first time step, or if the previous time step we outputted a restart_mld file 
     49      IF ( kt == nitrst - 1 .OR. nn_stock(nrst) == 1 .OR. nn_stock(nrst)==nn_stock(nrst-1)+1 ) THEN 
    5050         ! beware of the format used to write kt (default is i8.8, that should be large enough...) 
    5151         IF( nitrst > 999999999 ) THEN   ;   WRITE(clkt, *       ) nitrst 
Note: See TracChangeset for help on using the changeset viewer.