From: Wolfgang Bangerth Date: Fri, 30 Jun 2017 20:03:44 +0000 (-0600) Subject: Improve an error message. X-Git-Tag: v9.0.0-rc1~1459^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e0f17513bc4e26a886e4a90c6d62a924c910df85;p=dealii.git Improve an error message. --- 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);