From f0eae10a24c38d79668dffc9a687af31cc971637 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Sch=C3=B6berl?= Date: Wed, 2 Oct 2019 22:06:44 +0200 Subject: [PATCH] throw exception on 1D mesh bisection --- libsrc/meshing/bisect.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libsrc/meshing/bisect.cpp b/libsrc/meshing/bisect.cpp index 72bbd56a..9696fd81 100644 --- a/libsrc/meshing/bisect.cpp +++ b/libsrc/meshing/bisect.cpp @@ -1958,6 +1958,8 @@ namespace netgen const NgArray< NgArray* > & idmaps, const string & refinfofile) { + if (mesh.GetDimension() < 2) + throw Exception ("Mesh bisection is available in 2D and 3D"); // mtets.SetName ("bisection, tets"); // mprisms.SetName ("bisection, prisms"); // mtris.SetName ("bisection, trigs");