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 9495 for branches/UKMO/dev_merge_2017_restart_datestamp_GO6_mixing/NEMOGCM/NEMO/OPA_SRC/IOM/restart.F90 – NEMO

Ignore:
Timestamp:
2018-04-23T16:34:55+02:00 (6 years ago)
Author:
davestorkey
Message:

branches/UKMO/dev_merge_2017_restart_datestamp_GO6_mixing : revert previous change so I can remove SVN keywords first.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/UKMO/dev_merge_2017_restart_datestamp_GO6_mixing/NEMOGCM/NEMO/OPA_SRC/IOM/restart.F90

    r9493 r9495  
    2727   USE in_out_manager  ! I/O manager 
    2828   USE iom             ! I/O module 
    29    USE ioipsl, ONLY : ju2ymds    ! for calendar 
    3029   USE diurnal_bulk 
    3130 
     
    5958      INTEGER, INTENT(in) ::   kt     ! ocean time-step 
    6059      !! 
    61       INTEGER             ::   iyear, imonth, iday 
    62       REAL (wp)           ::   zsec 
    63       REAL (wp)           ::   zfjulday 
    6460      CHARACTER(LEN=20)   ::   clkt     ! ocean time-step deine as a character 
    6561      CHARACTER(LEN=50)   ::   clname   ! ocean output restart file name 
     
    9086         IF( nitrst <= nitend .AND. nitrst > 0 ) THEN  
    9187            ! beware of the format used to write kt (default is i8.8, that should be large enough...) 
    92             IF ( ln_rstdate ) THEN 
    93                zfjulday = fjulday + rdt / rday 
    94                IF( ABS(zfjulday - REAL(NINT(zfjulday),wp)) < 0.1 / rday )   zfjulday = REAL(NINT(zfjulday),wp)   ! avoid truncation error 
    95                CALL ju2ymds( zfjulday, iyear, imonth, iday, zsec )            
    96                WRITE(clkt, '(i4.4,2i2.2)') iyear, imonth, iday 
    97             ELSE 
    98                IF( nitrst > 999999999 ) THEN   ;   WRITE(clkt, *       ) nitrst 
    99                ELSE                            ;   WRITE(clkt, '(i8.8)') nitrst 
    100                ENDIF 
     88            IF( nitrst > 999999999 ) THEN   ;   WRITE(clkt, *       ) nitrst 
     89            ELSE                            ;   WRITE(clkt, '(i8.8)') nitrst 
    10190            ENDIF 
    10291            ! create the file 
Note: See TracChangeset for help on using the changeset viewer.