From: Guido Kanschat Date: Mon, 13 Sep 2010 16:47:43 +0000 (+0000) Subject: Bad projections should not abort program, but produce output X-Git-Tag: v8.0.0~5525 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8727aabf63ee94500930e04e123767800ba69ac1;p=dealii.git Bad projections should not abort program, but produce output git-svn-id: https://svn.dealii.org/trunk@21948 0785d39b-7218-0410-832d-ea1e28bc413d --- 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; } }