From: Luca Heltai Date: Sun, 17 Dec 2017 19:46:51 +0000 (+0100) Subject: Assert to check spacedim >= 2 in OpenCASCADE::NURBSPatchManifold X-Git-Tag: v9.0.0-rc1~644^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e64d887de083f114985cba39556e47f81421b6e;p=dealii.git Assert to check spacedim >= 2 in OpenCASCADE::NURBSPatchManifold --- diff --git a/source/opencascade/boundary_lib.cc b/source/opencascade/boundary_lib.cc index 1545c0f4c3..a420d2064c 100644 --- a/source/opencascade/boundary_lib.cc +++ b/source/opencascade/boundary_lib.cc @@ -248,7 +248,9 @@ namespace OpenCASCADE curve(curve_adaptor(sh)), tolerance(tolerance), length(shape_length(sh)) - {} + { + Assert(spacedim >= 2, ExcImpossibleInDimSpacedim(dim, spacedim)); + } template