]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Assert to check spacedim >= 2 in OpenCASCADE::NURBSPatchManifold 5606/head
authorLuca Heltai <luca.heltai@sissa.it>
Sun, 17 Dec 2017 19:46:51 +0000 (20:46 +0100)
committerLuca Heltai <luca.heltai@sissa.it>
Sun, 17 Dec 2017 19:46:51 +0000 (20:46 +0100)
source/opencascade/boundary_lib.cc

index 1545c0f4c32824fc0b657dfb6672017d6f1d7a24..a420d2064c3018894bf959c092d299348e80211d 100644 (file)
@@ -248,7 +248,9 @@ namespace OpenCASCADE
     curve(curve_adaptor(sh)),
     tolerance(tolerance),
     length(shape_length(sh))
-  {}
+  {
+    Assert(spacedim >= 2, ExcImpossibleInDimSpacedim(dim, spacedim));
+  }
 
 
   template <int dim, int spacedim>

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.