-
Notifications
You must be signed in to change notification settings - Fork 31
Remove overlap mesh requirement for bilin and delaunay methods #122
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
base: master
Are you sure you want to change the base?
Conversation
vijaysm
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.
I haven't tested the PR locally to see whether bilin/delaunay works fine without specifying overlap meshes. Made some comments during review. Please address them. I'll update the approval after local tests.
|
|
||
| // Check overlap mesh | ||
| if (meshOverlap.nodes.size() == 0) { | ||
| if ((strMapAlgorithm != "delaunay") && |
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.
Why a double if check here? Consolidate the check into a single one
| "and input mesh area.\n Disabling checks for consistency."); | ||
| fCheckConsistency = false; | ||
| if (meshOverlap.nodes.size() != 0) { | ||
| if (fabs(dTotalAreaOverlap - dTotalAreaInput) > 1.0e-10) { |
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.
You can combine the checks here again
| Mesh(const std::string & strFile) { | ||
| Read(strFile); | ||
| if (strFile != "") { | ||
| Read(strFile); |
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.
This is misleading. If someone passed an empty string, then you should error out or print a warning message.
| } | ||
|
|
||
| // Overlap mesh | ||
| if (strOverlapMesh == "") { |
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.
You should still be doing this check for FV projections. Perhaps need to check whether this is bilin/delaunay context first?
|
Did you get a chance to address my comments? |
The overlap mesh isn't used for bilinear or delaunay maps. This PR removes the requirement that ov_mesh be specified on the GenerateOverlapMesh command line for these cases.