From dda509514d6fdd1749c70015d4a569365c767e28 Mon Sep 17 00:00:00 2001 From: bangerth Date: Fri, 25 Aug 2006 14:21:32 +0000 Subject: [PATCH] Extend test a bit git-svn-id: https://svn.dealii.org/trunk@13742 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/bits/rt_crash_01.cc | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/tests/bits/rt_crash_01.cc b/tests/bits/rt_crash_01.cc index 02ef05aaec..1d4d5cb075 100644 --- a/tests/bits/rt_crash_01.cc +++ b/tests/bits/rt_crash_01.cc @@ -19,6 +19,7 @@ #include #include #include +#include // check an abort in FEPolyTensor when used with RaviartThomas // elements, when computing some sort of edge directions. This is the @@ -63,6 +64,13 @@ check_this (const DoFHandler &dof_handler) solution); cm.distribute (solution); + // all values of the projected solution + // should be close around 1 (the value of + // the original function) + for (unsigned int i=0; i cellwise_errors (dof_handler.get_tria ().n_active_cells()); VectorTools::integrate_difference (dof_handler, solution, test_func, @@ -70,7 +78,15 @@ check_this (const DoFHandler &dof_handler) VectorTools::L2_norm); const double p_l2_error = cellwise_errors.l2_norm(); - Assert (p_l2_error < 1e-14, ExcInternalError()); - deallog << "L2_Error : " << p_l2_error << std::endl; + + { + DataOut data_out; + data_out.attach_dof_handler (dof_handler); + data_out.add_data_vector (solution, "u"); + data_out.build_patches (); + data_out.write_gnuplot (deallog.get_file_stream()); + } + + Assert (p_l2_error < 1e-12, ExcInternalError()); } -- 2.39.5