From 6bfcd4ca6c3bb0375da05d5f34e0684af53c3c7e Mon Sep 17 00:00:00 2001 From: Matthias Hochsteger Date: Fri, 21 Apr 2023 12:53:05 +0200 Subject: [PATCH] Fix MeshVolume() for partially meshed meshes --- libsrc/meshing/meshfunc.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libsrc/meshing/meshfunc.cpp b/libsrc/meshing/meshfunc.cpp index c39c855d..a9a05f20 100644 --- a/libsrc/meshing/meshfunc.cpp +++ b/libsrc/meshing/meshfunc.cpp @@ -531,6 +531,7 @@ namespace netgen return; } + mesh.VolumeElements().DeleteAll(); for(auto & m_ : md) { auto first_new_pi = m_.pmap.Range().Next();