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
GMSH quad mesh with some cells with negative weight #13347
Comments
That is probably relatively easy to fix for a 2d mesh in 2d space. I don't know what to do about it for a 2d mesh in 3d, or in general a 3d mesh in 3d, though. |
It is. Patch is coming soon. I am coaching @singima through that.
For that case we also flip all cells with negative measure already. Why do you think that is an issue?
I agree. The code for checking/changing measures currently only runs for dim=spacedim. For other cases we probably fail if we encounter negative cell measures during a computation, see #13346 |
What do we do in 3d? Just swap the upper and lower four vertices? If we already do that, much the better of course! |
dealii/source/grid/grid_tools.cc Lines 889 to 896 in 9df2fdc
|
Maybe related #3201 |
Indeed, thank you! @singima here you have a simple test case! |
fixed by #13444 |
I have a valid 2d mesh from GMSH that consists of two parts and GMSH decided to export half of the cells with a negative and half with a positive measure.
Reading it currently fails, but it works fine if we remove the AssertThrow:
dealii/source/grid/grid_tools.cc
Line 912 in 9df2fdc
@singima is working on a patch with a test case.
The text was updated successfully, but these errors were encountered: