Skip to content

Commit 1fb17a4

Browse files
committed
0th timestep fixes
1 parent 363ff40 commit 1fb17a4

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/riverroute/RtmHistFile.F90

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1010,8 +1010,9 @@ subroutine RtmHistHtapesWrapup( rstwr, nlend )
10101010
! and write data to history files if end of history interval.
10111011
do t = 1, ntapes
10121012

1013-
! Skip nstep=0 if monthly average
1014-
if (nstep==0 .and. tape(t)%nhtfrq==0) cycle
1013+
!KO ! Should no longer be needed
1014+
!KO ! Skip nstep=0 if monthly average
1015+
!KO if (nstep==0 .and. tape(t)%nhtfrq==0) cycle
10151016

10161017
! Determine if end of history interval
10171018
tape(t)%is_endhist = .false.

src/riverroute/RtmTimeManager.F90

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1001,7 +1001,10 @@ logical function is_first_step()
10011001
call ESMF_ClockGet( tm_clock, advanceCount=step_no, rc=rc )
10021002
call chkrc(rc, sub//': error return from ESMF_ClockGet')
10031003
nstep = step_no
1004-
is_first_step = (nstep == 0)
1004+
!KO is_first_step = (nstep == 0)
1005+
!KO
1006+
is_first_step = (nstep == 1)
1007+
!KO
10051008

10061009
end function is_first_step
10071010

0 commit comments

Comments
 (0)