From 499c9086b04ca2db35c767c42b0024389497449f Mon Sep 17 00:00:00 2001 From: Matthias Hochsteger Date: Mon, 4 Sep 2023 10:42:02 +0200 Subject: [PATCH] Boundarylayer - check if all given faces are adjacent to selected domain --- libsrc/meshing/boundarylayer.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libsrc/meshing/boundarylayer.cpp b/libsrc/meshing/boundarylayer.cpp index 6c078d27..c601b2b7 100644 --- a/libsrc/meshing/boundarylayer.cpp +++ b/libsrc/meshing/boundarylayer.cpp @@ -664,6 +664,10 @@ namespace netgen } } } + + for(auto si : params.surfid) + if(surfacefacs[si] == 0.0) + throw Exception("Surface " + to_string(si) + " is not a boundary of the domain to be grown into!"); } void BoundaryLayerTool ::CreateFaceDescriptorsSides()