From 61c36871dc1026481bff9d5078cbf01ecf2f4cb3 Mon Sep 17 00:00:00 2001 From: kanschat Date: Mon, 13 Sep 2010 16:47:43 +0000 Subject: [PATCH] Bad projections should not abort program, but produce output git-svn-id: https://svn.dealii.org/trunk@21948 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/deal.II/project_common.cc | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/tests/deal.II/project_common.cc b/tests/deal.II/project_common.cc index 2df2f4ce3d..94e0fb998c 100644 --- a/tests/deal.II/project_common.cc +++ b/tests/deal.II/project_common.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2006 by the deal.II authors +// Copyright (C) 2006, 2010 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -92,14 +92,6 @@ 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, @@ -143,8 +135,10 @@ void do_project (const Triangulation &triangulation, << std::endl; if (q<=p-order_difference) - Assert (error.l2_norm() <= 1e-10*projection.l2_norm(), - ExcFailedProjection(error.l2_norm() / projection.l2_norm())); + if (error.l2_norm() > 1e-10*projection.l2_norm()) + deallog << "Projection failed with relative error " + << error.l2_norm() / projection.l2_norm() + << std::endl; } } -- 2.39.5