From 6d30186279f8ea83e6b5d06431a5005646ee7360 Mon Sep 17 00:00:00 2001 From: Matthias Hochsteger Date: Fri, 5 Feb 2021 17:40:43 +0100 Subject: [PATCH] allow cd2names in 2d meshes --- libsrc/meshing/meshclass.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libsrc/meshing/meshclass.cpp b/libsrc/meshing/meshclass.cpp index c133c8e1..cac7dc97 100644 --- a/libsrc/meshing/meshclass.cpp +++ b/libsrc/meshing/meshclass.cpp @@ -1211,9 +1211,9 @@ namespace netgen ReadNumberAndName( infile, cd2nrs[i], nextcd2name ); cd2names[cd2nrs[i]-1] = new string(nextcd2name); } - if (GetDimension() == 2) + if (GetDimension() < 2) { - throw NgException("co dim 2 elements not implemented for dimension 2"); + throw NgException("co dim 2 elements not implemented for dimension < 2"); } }