Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Parthenon outputs dumps and restarts in basically the same format, so they can substitute for one another in a pinch. However, dumps generally lack face-centered or conserved magnetic fields, so they must be interpolated/multiplied appropriately, and in the case of face-centered fields must then be cleaned.
Luckily, we do all that stuff for
iharm3d
format restarts anyway, so I just re-use that code, and mark the cell-centeredprims.B
asRestart
so that it gets read, instead of justcons.fB
which won't exist. The whole thing ends up pretty clean.Using this requires patching out Parthenon's type check,
src/outputs/restart.hpp
L125. If I'm not lazy I'll add that patch to the patchset before I merge this.Restarting from phdfs is already documented on the wiki: https://github.com/AFD-Illinois/kharma/wiki/Running-KHARMA#restarting-simulations.