Skip non-tet elements when checking for elements with negative volume

This commit is contained in:
Matthias Hochsteger 2025-02-25 18:18:34 +01:00
parent f6273d0659
commit 13352672f7

View File

@ -104,6 +104,8 @@ namespace netgen
bool have_error = false;
for (auto el : mesh.VolumeElements())
{
if(el.GetType() != TET)
continue;
double volume = el.Volume(mesh.Points());
if (volume < 0)
{