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 5613 for branches/UKMO/dev_r5518_FOAM_local/NEMOGCM/NEMO/OPA_SRC/DOM/daymod.F90 – NEMO

Ignore:
Timestamp:
2015-07-20T11:12:03+02:00 (9 years ago)
Author:
cguiavarch
Message:

Add local changes for FOAM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/UKMO/dev_r5518_FOAM_local/NEMOGCM/NEMO/OPA_SRC/DOM/daymod.F90

    r5002 r5613  
    117117 
    118118      ! number of seconds since the beginning of current year/month/week/day at the middle of the time-step 
    119       nsec_year  = nday_year * nsecd - ndt05   ! 1 time step before the middle of the first time step 
    120       nsec_month = nday      * nsecd - ndt05   ! because day will be called at the beginning of step 
    121       nsec_week  = idweek    * nsecd - ndt05 
    122       nsec_day   =             nsecd - ndt05 
     119      nsec_year  = nday_year * nsecd - ndt   ! 1 time step before the middle of the first time step 
     120      nsec_month = nday      * nsecd - ndt   ! because day will be called at the beginning of step 
     121      nsec_week  = idweek    * nsecd - ndt 
     122      nsec_day   =             nsecd - ndt 
    123123 
    124124      ! control print 
     
    223223      IF( ABS(adatrj  - REAL(NINT(adatrj ),wp)) < zprec )   adatrj  = REAL(NINT(adatrj ),wp)   ! avoid truncation error 
    224224 
    225       IF( nsec_day > nsecd ) THEN                       ! New day 
     225      IF( nsec_day >= nsecd ) THEN                       ! New day 
    226226         ! 
    227227         nday      = nday + 1 
Note: See TracChangeset for help on using the changeset viewer.