-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Copy mesh upon creating Mover #48
Conversation
# Continue with a new Mover | ||
mover = MongeAmpereMover( | ||
mesh, ring_monitor, method=method, rtol=rtol, phi_init=phi, sigma_init=sigma | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It doesn't really make sense to 'continue' the mesh movement by creating a new Mover with the computational mesh being the adapted mesh from an earlier Mover. They have different baselines.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah yes, I was wondering about that/discussing with Matt: in our current implementation we are always working with a uniform mesh as the baseline right? And so the monitor we provide is specifying the required variation in the output physical mesh regardless of the previous state of the mesh (when calling the mover multiple times). We could also imagine a different approach where the monitor expresses the variation with respect to the previous mesh, where if the mesh is already optimal the monitor would be constant.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good - I think this will indeed be clearer from the user perspective: with an input mesh that remains unchanged and a separate (iteratively improved) output mesh
Closes #45.
Copy the mesh that gets passed to a Mover so that the original remains unmodified.