Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop running 0th timestep #67

Merged
merged 3 commits into from
Nov 12, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/riverroute/RtmHistFile.F90
Original file line number Diff line number Diff line change
Expand Up @@ -983,8 +983,9 @@ subroutine RtmHistHtapesWrapup( rstwr, nlend )
! and write data to history files if end of history interval.
do t = 1, ntapes

! Skip nstep=0 if monthly average
if (nstep==0 .and. tape(t)%nhtfrq==0) cycle
!KO ! Should no longer be needed
slevis-lmwg marked this conversation as resolved.
Show resolved Hide resolved
!KO ! Skip nstep=0 if monthly average
!KO if (nstep==0 .and. tape(t)%nhtfrq==0) cycle

! Determine if end of history interval
tape(t)%is_endhist = .false.
Expand Down
5 changes: 4 additions & 1 deletion src/riverroute/RtmTimeManager.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1000,7 +1000,10 @@ logical function is_first_step()
call ESMF_ClockGet( tm_clock, advanceCount=step_no, rc=rc )
call chkrc(rc, sub//': error return from ESMF_ClockGet')
nstep = step_no
is_first_step = (nstep == 0)
!KO is_first_step = (nstep == 0)
slevis-lmwg marked this conversation as resolved.
Show resolved Hide resolved
!KO
is_first_step = (nstep == 1)
!KO

end function is_first_step

Expand Down