Skip to content

Fix initial conditions in MRF when set-start-time is used

Ankang Gao requested to merge gaoak/nektar:fix/IncBCs into master

Issue/feature addressed

In the MRF method and when the initial condition is a file, the initial time is loaded from the restart file. This time may conflict with the command-line option --set-start-time, which causes a wrong start time in the MRF method. This is fixed in this merge request.

Proposed solution

Overwrite the loaded time if set-start-time is defined.



Suggested reviewers

Please suggest any people who would be appropriate to review your code.


Please add any other information that could be useful for reviewers.


  • Functions and classes, or changes to them, are documented.
  • User guide/documentation is updated.
  • Changelog is updated.
  • Suitable tests added for new functionality.
  • Contributed code is correctly formatted. (See the contributing guidelines).
  • License added to any new files.
  • No extraneous files have been added (e.g. compiler output or test data files).

Merge request reports