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.
#212 (daymod.F90 : bug in rsec_day computation ?) – NEMO

Opened 16 years ago

Closed 16 years ago

Last modified 8 years ago

#212 closed Bug (duplicate)

daymod.F90 : bug in rsec_day computation ?

Reported by: molines@… Owned by: nemo
Priority: high Milestone:
Component: OCE Version: trunk
Severity: Keywords:
Cc:

Description

I am a bit confused with the following quoted lines from daymod.F90: I think that rsec_day is wrong in the case of ln_rstart. As it is, in case of restart, rsec_day is identical to rsec_month, which is wrong, except when the restart is done the first day of a month ...
On the other hand, I am still trying to understand why the restart case differs from the cold start; ( a comment in this part of the code will be greatly apreciated...

Jean-Marc

	
124 	         ! number of seconds since...
125 	         IF( ln_rstart )   THEN
126 	            rsec_year  = REAL( nday_year ) * rday     - rdttra(1)      ! 00h 1st day of the current year
127 	            rsec_month = REAL( nday      ) * rday     - rdttra(1)      ! 00h 1st day of the current month
128 	            rsec_day   = REAL( nday      ) * rday     - rdttra(1)      ! 00h         of the current day
129 	         ELSE
130 	            rsec_year  = REAL( nday_year - 1 ) * rday - rdttra(1)      ! 00h 1st day of the current year
131 	            rsec_month = REAL( nday      - 1 ) * rday - rdttra(1)      ! 00h 1st day of the current month
132 	            rsec_day   =                              - rdttra(1)      ! 00h         of the current day
133 	         ENDIF

Commit History (0)

(No commits)

Change History (4)

comment:1 follow-up: Changed 16 years ago by smasson

Jean-marc,

I am working on this, please wait a few more days...

seb

comment:2 in reply to: ↑ 1 Changed 16 years ago by nemo_user

Replying to smasson:

Jean-marc,

I am working on this, please wait a few more days...

seb

No problems ! :)

I was looking to the fldread module for using the same idea for the update of open boundary condition data (in fact it can be considered as a 'lateral' forcing ). So I was sorting out the interpolation issue, and found those questions about daymod ...

I wait !

JM

comment:3 Changed 16 years ago by smasson

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

transfer to the more general ticket #216

comment:4 Changed 8 years ago by nicolasmartin

  • Keywords daymod removed
Note: See TracTickets for help on using tickets.