Skip to content

Commit

Permalink
Fix unassociated forcingHead when time varying forcing is off
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrus89 committed Jun 13, 2023
1 parent 3e4bbdc commit 647f5fe
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -836,8 +836,11 @@ function ocn_forward_mode_run(domain) result(ierr)!{{{
! time-step as opposed at each RK substage as implemented in RK4
call ocn_time_varying_forcing_get(domain % streamManager, domain, domain % clock)
else
! increment forcing clock to next time-step
call mpas_advance_forcing_clock(forcingGroupHead, dt)
if (config_use_time_varying_atmospheric_forcing .or. &
config_use_time_varying_land_ice_forcing) then
! increment forcing clock to next time-step
call mpas_advance_forcing_clock(forcingGroupHead, dt)
endif
endif

! Validate that the state is OK to run with for the next timestep.
Expand Down

0 comments on commit 647f5fe

Please sign in to comment.