Skip to content

Commit

Permalink
call advance_timestep if startup or hybrid, not branch or continue
Browse files Browse the repository at this point in the history
  • Loading branch information
slevis-lmwg committed Jan 13, 2025
1 parent 8b2f216 commit f3a1dc6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/utils/clm_time_manager.F90
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,9 @@ end subroutine set_timemgr_init
!=========================================================================================

subroutine timemgr_init(curr_date_in )

use clm_varctl, only : nsrest, nsrContinue, nsrBranch

type(ESMF_Time), intent(in), optional :: curr_date_in

!---------------------------------------------------------------------------------
Expand Down Expand Up @@ -243,7 +246,9 @@ subroutine timemgr_init(curr_date_in )
end if

! Advance time step to start at nstep=1
call advance_timestep()
if (nsrest /= nsrContinue .and. nsrest /= nsrBranch) then
call advance_timestep()
end if

! Print configuration summary to log file (stdout).

Expand Down

0 comments on commit f3a1dc6

Please sign in to comment.