From: bangerth Date: Mon, 14 Aug 2006 15:43:13 +0000 (+0000) Subject: Improve error message X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a3ffb08d61e40edc77dd07df2e6bd9a8e4abe01;p=dealii-svn.git Improve error message git-svn-id: https://svn.dealii.org/trunk@13700 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/deal.II/project_common.cc b/tests/deal.II/project_common.cc index f5ee57aff3..560b9f9ef4 100644 --- a/tests/deal.II/project_common.cc +++ b/tests/deal.II/project_common.cc @@ -93,6 +93,13 @@ class F : public Function +DeclException1 (ExcFailedProjection, + double, + << "The projection was supposed to exactly represent the " + << "original function, but the relative residual is " + << arg1); + + template void do_project (const Triangulation &triangulation, const FiniteElement &fe, @@ -137,7 +144,7 @@ void do_project (const Triangulation &triangulation, if (q<=p-order_difference) Assert (error.l2_norm() <= 1e-12*projection.l2_norm(), - ExcInternalError()); + ExcFailedProjection(error.l2_norm() / projection.l2_norm())); } }