From bf1632ca481fdafa01f1e35d48bc4ee0afe1b934 Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Fri, 15 Jan 2021 11:34:45 -0500 Subject: [PATCH] improve Simplex:QGauss error message --- source/simplex/quadrature_lib.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source/simplex/quadrature_lib.cc b/source/simplex/quadrature_lib.cc index 5d3ea4df22..2bb93a055f 100644 --- a/source/simplex/quadrature_lib.cc +++ b/source/simplex/quadrature_lib.cc @@ -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))); } -- 2.39.5