From 78b11aa1bd2b01aa4566a07aa5c1c94ecfd59a0a Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Sat, 17 Jan 2015 10:05:10 -0600 Subject: [PATCH] Improve an error message and provide guidance. In response to a recent question on the mailing list. --- source/fe/fe_q.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/fe/fe_q.cc b/source/fe/fe_q.cc index 6ffdaf1f59..fe8fd248ed 100644 --- a/source/fe/fe_q.cc +++ b/source/fe/fe_q.cc @@ -36,7 +36,9 @@ FE_Q::FE_Q (const unsigned int degree) { Assert (degree > 0, ExcMessage ("This element can only be used for polynomial degrees " - "greater than zero")); + "greater than zero. If you want an element of polynomial " + "degree zero, then it cannot be continuous and you " + "will want to use FE_DGQ(0).")); std::vector > support_points_1d(degree+1); for (unsigned int i=0; i<=degree; ++i) support_points_1d[i][0] = static_cast(i)/degree; -- 2.39.5