Open nzolman opened 11 months ago
Do I understand it correctly, that the above is already enough to reproduce the bug? :)
(Also, sorry for not getting on top of this earlier)
@ludgerpaehler—should be! I've updated to include my python and firedrake versions. The only additional assumption should be that there is already some saved mesh (also a medium mesh from the cylinder) created from env.flow.save_checkpoint
.
I had a use-case where I initialized a medium mesh cylinder
FlowEnv
without a checkpoint (just the default flow), and then later used env.flow.load_checkpoint. Theenv.render()
function worked fine, and showed my checkpointed flow. However, I received an error when I next usedenv.reset()
. Everything seems to work as expected if I use the checkpoint "restart" key in the flow config. But it seems like this is worth pointing out, because intuitively you would expect to be able to load a flow and useenv.reset()
as long as the meshes were identical.EDIT: Using latest version of hydrogym on
main
branch. (38826f43cbc9ef71ca2b66be89ae7b78549522ce) Python 3.10.6 firedrake version: 0.13.0+5289.gee720d61Code:
Error: