You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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. The env.render() function worked fine, and showed my checkpointed flow. However, I received an error when I next used env.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 use env.reset() as long as the meshes were identical.
EDIT: Using latest version of hydrogym on main branch. (38826f4)
Python 3.10.6
firedrake version: 0.13.0+5289.gee720d61
@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. (38826f4)Python 3.10.6
firedrake version: 0.13.0+5289.gee720d61
Code:
Error:
The text was updated successfully, but these errors were encountered: