From 91e183c91bc05f2cbc8b54917a8bf7173d7dff4d Mon Sep 17 00:00:00 2001 From: heister Date: Wed, 16 Oct 2013 19:36:23 +0000 Subject: [PATCH] update test description and output git-svn-id: https://svn.dealii.org/branches/branch_port_the_testsuite@31268 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/bits/data_out_08.cc | 8 ++++---- tests/bits/data_out_08.output | 23 +++++++---------------- 2 files changed, 11 insertions(+), 20 deletions(-) diff --git a/tests/bits/data_out_08.cc b/tests/bits/data_out_08.cc index 4457b91a83..e043d30f39 100644 --- a/tests/bits/data_out_08.cc +++ b/tests/bits/data_out_08.cc @@ -15,9 +15,8 @@ // --------------------------------------------------------------------- - -// Bug: filtered DataOut is not picking the correct cells -// This is due to wrong index computation in data_out.cc. +// this test documents two unrelated bugs in DataOut when used with a Filter (by deriving from DataOut): +// 1. The patch index computation in data_out.cc is wrong and causes an SIGV (or an Assert after adding that): /* 466: -------------------------------------------------------- 466: An error occurred in line <306> of file in function @@ -27,6 +26,7 @@ 466: The name and call sequence of the exception was: 466: ExcInternalError() */ +// 2. DataOut used begi_active() instead of first_cell() in two places which caused a wrong patch to be generated when the first active cell is not picked by the filter. #include "../tests.h" #include @@ -109,7 +109,7 @@ check () // DataOut data_out; // we pick only subdomain==0 which will - // skip the first of four cells + // skip the first of the four cells FilteredDataOut data_out(0); data_out.attach_dof_handler (dof_handler); diff --git a/tests/bits/data_out_08.output b/tests/bits/data_out_08.output index 39fa1b48fe..4725e3bc01 100644 --- a/tests/bits/data_out_08.output +++ b/tests/bits/data_out_08.output @@ -5,10 +5,10 @@ [Version: 3] 1 cell_data -4 +3 [deal.II intermediate Patch<2,2>] -0.0 0.0 0.50 0.0 0.50 0.50 0.0 0.50 -4294967295 1 4294967295 2 +0.50 0.0 1.0 0.0 1.0 0.50 0.50 0.50 +4294967295 4294967295 4294967295 2 0 1 0 1 4 @@ -16,8 +16,8 @@ cell_data [deal.II intermediate Patch<2,2>] -0.50 0.0 1.0 0.0 1.0 0.50 0.50 0.50 -0 4294967295 4294967295 3 +0.0 0.50 0.50 0.50 0.50 1.0 0.0 1.0 +4294967295 2 4294967295 4294967295 1 1 0 1 4 @@ -25,23 +25,14 @@ cell_data [deal.II intermediate Patch<2,2>] -0.0 0.50 0.50 0.50 0.50 1.0 0.0 1.0 -4294967295 3 0 4294967295 +0.50 0.50 1.0 0.50 1.0 1.0 0.50 1.0 +1 4294967295 0 4294967295 2 1 0 1 4 2.0 2.0 2.0 2.0 -[deal.II intermediate Patch<2,2>] -0.50 0.50 1.0 0.50 1.0 1.0 0.50 1.0 -2 4294967295 1 4294967295 -3 1 -0 -1 4 -3.0 3.0 3.0 3.0 - - 0 DEAL::OK -- 2.39.5