From 13352672f7c6f2b813babf0cbff63cf63d625436 Mon Sep 17 00:00:00 2001 From: Matthias Hochsteger Date: Tue, 25 Feb 2025 18:18:34 +0100 Subject: [PATCH] Skip non-tet elements when checking for elements with negative volume --- libsrc/meshing/debugging.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libsrc/meshing/debugging.cpp b/libsrc/meshing/debugging.cpp index f3723eaa..e32b44b4 100644 --- a/libsrc/meshing/debugging.cpp +++ b/libsrc/meshing/debugging.cpp @@ -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) {