Skip to content

Commit

Permalink
Merge pull request #37 from olyson/zerothtstep
Browse files Browse the repository at this point in the history
Stop running 0th timestep
  • Loading branch information
slevis-lmwg authored Nov 12, 2024
2 parents 1d10716 + 6dcdfbc commit a2cd824
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions src/riverroute/RtmHistFile.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1039,9 +1039,6 @@ 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

! Determine if end of history interval
tape(t)%is_endhist = .false.
if (tape(t)%nhtfrq==0) then !monthly average
Expand Down
4 changes: 2 additions & 2 deletions src/riverroute/RtmTimeManager.F90
Original file line number Diff line number Diff line change
Expand Up @@ -992,7 +992,7 @@ end function is_end_curr_month

logical function is_first_step()

! Return true on first step of initial run only.
! Return true on first step of startup and hybrid runs.
character(len=*), parameter :: sub = 'rtm::is_first_step'
integer :: rc
integer :: nstep
Expand All @@ -1001,7 +1001,7 @@ 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)
is_first_step = (nstep == 1)

end function is_first_step

Expand Down

0 comments on commit a2cd824

Please sign in to comment.