Skip to content

PLUTO might load wrong units during restart #7

Description

@alexziab

The pluto.log file is appended to, not overwritten, when restarting. The fact that the loader looks for units top-down in pluto.log can lead to wrong results.

Example:

  1. start a PLUTO simulation with a given configuration.
  2. moments later, realize that you forgot to change UNIT_LENGTH to 5.2 au instead of 1 au.
  3. kill simulation, edit UNIT_LENGTH to 5.2 au, recompile and restart.
  4. You now have an unusable directory because units are set on loader level and units['length'] will always be 1 au.

suggestion: either read PLUTO units bottom-up (last occurrence in the log file) or offer manual unit input during call to Data().

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions