From 72e25d45a42cda49882690ce02cbce016d3a9053 Mon Sep 17 00:00:00 2001 From: Matthias Hochsteger Date: Thu, 24 Oct 2024 15:50:21 +0200 Subject: [PATCH] Only check for self-intersection on moved boundaries --- libsrc/meshing/boundarylayer_limiter.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libsrc/meshing/boundarylayer_limiter.hpp b/libsrc/meshing/boundarylayer_limiter.hpp index f022dc37..fd1b9820 100644 --- a/libsrc/meshing/boundarylayer_limiter.hpp +++ b/libsrc/meshing/boundarylayer_limiter.hpp @@ -308,10 +308,12 @@ struct GrowthVectorLimiter for (SurfaceElementIndex sei : mesh.SurfaceElements().Range()) { auto sel = mesh[sei]; - const auto& fd = mesh.GetFaceDescriptor(sel.GetIndex()); + if (!tool.moved_surfaces[sel.GetIndex()]) + continue; if (sel.GetNP() == 4) continue; + const auto& fd = mesh.GetFaceDescriptor(sel.GetIndex()); auto np = sel.GetNP(); double shift = 1.0;