From 3a3ffb08d61e40edc77dd07df2e6bd9a8e4abe01 Mon Sep 17 00:00:00 2001 From: bangerth Date: Mon, 14 Aug 2006 15:43:13 +0000 Subject: [PATCH] Improve error message git-svn-id: https://svn.dealii.org/trunk@13700 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/deal.II/project_common.cc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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())); } } -- 2.39.5