Skip to content

Commit

Permalink
Don't call SLM on init of a restart
Browse files Browse the repository at this point in the history
It's not needed, and if the restart time is not a coupling interval, it
will make the SLM get out of sync.
  • Loading branch information
matthewhoffman committed Feb 24, 2024
1 parent be5f341 commit 052b15d
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -501,10 +501,13 @@ subroutine slmodel_init(domain, err)

call find_slm_restart_timestep(meshPool, slmTimeStep, err_tmp)
err = ior(err, err_tmp)
if (err == 0) then
call mpas_log_write("Calling the SLM. SLM timestep $i", intArgs=(/slmTimeStep/))
call slmodel_solve(slmTimeStep, domain)
endif

! Note: no need to call slmodel_solve on init of a restart.
! If this time level happens to be a coupling interval, SLM would have been solved already
! in the previous run that generated the restart file.
! While it would not hurt (other than unneeded execution time) to call SLM again if the
! restart time level happens to be a coupling interval, if the restart time is in between
! coupling intervals calling SLM here will make things out of sync.

else

Expand Down

0 comments on commit 052b15d

Please sign in to comment.