-
Notifications
You must be signed in to change notification settings - Fork 82
Clean interface improvements #181
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
Conversation
* Does not apply nodal valency reduction now. * Todo: better handling of nodal attribute migration when applying moderate and aggressive cleaning.
|
If new nodes are added (such as is the case when running the nodal valency reducer) then this section is problematic for mapping nodal attributes (the intersection) as this will only map nodes that existed in the old mesh onto the new mesh. Thus, new nodes added in the cleaning operations will get default values. |
…/OceanMesh2D into improve_clean_interface
return the try and catch
|
Okay, this is now working on my end with running In summary, all levels of mesh cleaning can be used with the migration of the nodal attributes. |
WPringle
left a comment
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 looks great, will definitely come in handy. I think we can also use the new mapper in the BoundCr routine.
I'm on the fence about that because some nodal attributes depend on the bathymetry (e.g., primitive weights) and the bathy. slope should be recalculated if the nodes change. Also, the migration of boundaries is non-trivial and often has to be re-calculated anyway. I'd rather the more advanced user do it afterwards from the old mesh to the new updated mesh via I think the application of nearest node mapping is suitable for the |
|
Fair enough. Yeah I think an obvious problem with using the map_mesh_properties as defined now after you did the BoundCr is that the bathymetry is already updated and there is no option to disable that mapping over at present. Let's just merge this in as you have it now. |
msh.clean()options #180msh.clean()'s passive mode does not apply nodal valency reduction now.