mirror of
https://github.com/NGSolve/netgen.git
synced 2025-03-04 00:45:40 +05:00
Skip non-tet elements when checking for elements with negative volume
This commit is contained in:
parent
f6273d0659
commit
13352672f7
@ -104,6 +104,8 @@ namespace netgen
|
|||||||
bool have_error = false;
|
bool have_error = false;
|
||||||
for (auto el : mesh.VolumeElements())
|
for (auto el : mesh.VolumeElements())
|
||||||
{
|
{
|
||||||
|
if(el.GetType() != TET)
|
||||||
|
continue;
|
||||||
double volume = el.Volume(mesh.Points());
|
double volume = el.Volume(mesh.Points());
|
||||||
if (volume < 0)
|
if (volume < 0)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user