From e0f17513bc4e26a886e4a90c6d62a924c910df85 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Fri, 30 Jun 2017 14:03:44 -0600 Subject: [PATCH] Improve an error message. --- source/fe/fe_values.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/fe/fe_values.cc b/source/fe/fe_values.cc index 1a590ca50b..338c42fac6 100644 --- a/source/fe/fe_values.cc +++ b/source/fe/fe_values.cc @@ -3614,7 +3614,10 @@ FEValues::initialize (const UpdateFlags update_flags) // codimension one case. if (dim != spacedim-1) Assert ((update_flags & update_normal_vectors) == false, - (typename FEValuesBase::ExcInvalidUpdateFlag())); + ExcMessage ("You can only pass the 'update_normal_vectors' " + "flag to FEFaceValues or FESubfaceValues objects " + "unless the triangulation is embedded in a higher " + "dimensional space.")); const UpdateFlags flags = this->compute_update_flags (update_flags); -- 2.39.5