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.
#1725 (Output file time variable not correct when nn_time0 /= 0000) – NEMO

Opened 9 years ago

Closed 9 years ago

#1725 closed Bug (fixed)

Output file time variable not correct when nn_time0 /= 0000

Reported by: timgraham Owned by: timgraham
Priority: low Milestone:
Component: OCE Version: trunk
Severity: Keywords:
Cc:

Description

Context

In the trunk it is possible to initialise the model from times other than midnight by setting nn_time0 but currently the time stamps in the output files in XIOS begin at the start of the day rather than at nn_time0

Analysis

The model start time being passed to XIOS does not take into account nn_time0. See line 117 of iom.F90

Fix

Change line 117 of iom.F90 to

WRITE(cldate,"(i4.4,'-',i2.2,'-',i2.2,' ',i2.2,':',i2.2,':00')") nyear,nmonth,nday,nhour,nminute 

Commit History (1)

ChangesetAuthorTimeChangeLog
6519timgraham2016-05-11T12:50:34+02:00

#1725 - pass correct start time to XIOS.

Change History (1)

comment:1 Changed 9 years ago by timgraham

  • Resolution set to fixed
  • Status changed from new to closed

Fixed at r6519

Note: See TracTickets for help on using tickets.