Bugfix/ensure maximum timestep stored in restart

Merged
#353 · Created  · Last updated

Merged pull request

Merged in bugfix/ensure_maximum_timestep_stored_in_restart (pull request #353)

de42231·Author: ·Closed by: ·2021-07-21

Description

  • Add code_dt_max to mirror code_dt_min in gs2_time.

    Also adds save_dt_max to set the maximum time step.

  • Use code_dt_max rather than dt0 when determining new time step.

    More closely mirrors treatment of minimum timestep.

  • Store maximum timestep in restart files

  • Restore maximum time step when initialising time step from restart file

Should fix issue #127

With this change the maximum time step (input variable dt0) is stored in the restart file and is restored when delt_option = ‘check_restart’. The value used can still be overridden by setting dt0.

 

This breaks backwards compatibility with existing restart files so should not go into master. If delt_max is not found in the restart file then we will fail to set the maximum time step or the time step history from the restart file.

0 attachments

0 comments

Loading commits...