]> https://gitweb.dealii.org/ - dealii.git/commitdiff
improve Simplex:QGauss error message 11559/head
authorTimo Heister <timo.heister@gmail.com>
Fri, 15 Jan 2021 16:34:45 +0000 (11:34 -0500)
committerTimo Heister <timo.heister@gmail.com>
Fri, 15 Jan 2021 16:34:45 +0000 (11:34 -0500)
source/simplex/quadrature_lib.cc

index 5d3ea4df2218b9921c3691a3da8f3354ea4a8580..2bb93a055f6543086397a926c9f6f22adf39b428 100644 (file)
@@ -140,7 +140,11 @@ namespace Simplex
 
     AssertDimension(this->quadrature_points.size(), this->weights.size());
     Assert(this->quadrature_points.size() > 0,
-           ExcMessage("No valid quadrature points!"));
+           ExcNotImplemented(
+             "Simplex::QGauss is currently only implemented for "
+             "n_points_1D = 1, 2, and 3, while you are asking for "
+             "n_points_1D = " +
+             Utilities::to_string(n_points_1D)));
   }
 
 

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.