Changeset 12158


Ignore:
Timestamp:
2019-12-10T16:33:19+01:00 (8 months ago)
Author:
jchanut
Message:

#2130, correct initial day if not starting at 00Z

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/trunk/src/OCE/DOM/daymod.F90

    r10068 r12158  
    9393      CALL ymds2ju( nyear, nmonth, nday, nhour*3600._wp+nminute*60._wp, fjulday )   
    9494      IF( ABS(fjulday - REAL(NINT(fjulday),wp)) < 0.1 / rday )   fjulday = REAL(NINT(fjulday),wp)   ! avoid truncation error 
    95       IF( nn_time0*3600 - ndt05 .lt. 0 ) fjulday = fjulday + 1.                    ! move back to the day at nit000 (and not at nit000 - 1) 
    96  
     95      IF( nhour*3600 + nminute*60 - ndt05 .lt. 0 ) fjulday = fjulday + 1.                    ! move back to the day at nit000 (and not at nit000 - 1) 
     96       
    9797      nsec1jan000 = 0 
    9898      CALL day_mth 
Note: See TracChangeset for help on using the changeset viewer.