Opened 5 years ago
Closed 3 years ago
#2130 closed Bug (fixed)
Bug in calculation of initial day when not starting from 00Z
Reported by: | charris | Owned by: | systeam |
---|---|---|---|
Priority: | low | Milestone: | |
Component: | DOM | Version: | trunk |
Severity: | minor | Keywords: | |
Cc: | timgraham |
Description (last modified by nicolasmartin)
Context
There is a bug in the implementation of the nn_time0 functionality such that the initial day can potentially be set incorrectly.
Analysis
source:/NEMO/trunk/src/OCE/DOM/daymod.F90?rev=10068#L95 is written as if nn_time0 was 'HH' (as in a previous version of this code) rather than 'HHMM' as in the version committed to the trunk.
Fix
Replace this line with
IF( nhour*3600 + nminute*60 - ndt05 .lt. 0 ) fjulday = fjulday + 1. ! move back to the day at nit000 (and not at nit000 - 1)
Commit History (1)
Changeset | Author | Time | ChangeLog |
---|---|---|---|
12158 | jchanut | 2019-12-10T16:33:19+01:00 | #2130, correct initial day if not starting at 00Z |
Change History (4)
comment:1 Changed 5 years ago by nicolasmartin
- Description modified (diff)
comment:2 Changed 5 years ago by nicolasmartin
- Version set to trunk
comment:3 Changed 3 years ago by jchanut
comment:4 Changed 3 years ago by smasson
- Resolution set to fixed
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.
In 12158: