From: Rene Gassmoeller Date: Fri, 27 Oct 2017 15:47:57 +0000 (-0600) Subject: Fix test and test result X-Git-Tag: v9.0.0-rc1~862^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F5341%2Fhead;p=dealii.git Fix test and test result --- diff --git a/tests/numerics/data_out_filter_01.cc b/tests/numerics/data_out_filter_01.cc index f6e90b205c..5e705717a0 100644 --- a/tests/numerics/data_out_filter_01.cc +++ b/tests/numerics/data_out_filter_01.cc @@ -37,7 +37,8 @@ void test () { Triangulation tria(Triangulation::MeshSmoothing::none,true); - GridGenerator::hyper_cube(tria, 1., 1. + 1000.0 * std::numeric_limits::epsilon()); + GridGenerator::hyper_cube(tria, 1., 2.); + tria.refine_global(1); FE_Q fe1(1); @@ -58,27 +59,11 @@ test () deallog << "Number of filtered nodes: " << data_filter.n_nodes() << std::endl; - Triangulation tria2(Triangulation::MeshSmoothing::none,true); - GridGenerator::hyper_cube(tria2, 1., 1 + 10.0 * std::numeric_limits::epsilon()); - - FE_Q fe2(1); - - DoFHandler dof2(tria2); - dof2.distribute_dofs(fe2); - - Vector v2(dof2.n_dofs()); - for (unsigned int i=0; i data_out2; - data_out2.add_data_vector (dof2, v2, "linear"); - data_out2.build_patches (); - DataOutBase::DataOutFilter data_filter2 - (DataOutBase::DataOutFilterFlags (true, false)); - - data_out2.write_filtered_data (data_filter2); + (DataOutBase::DataOutFilterFlags (false, false)); + data_out.write_filtered_data (data_filter2); - deallog << "Number of filtered nodes: " << data_filter2.n_nodes() << std::endl; + deallog << "Number of unfiltered nodes: " << data_filter2.n_nodes() << std::endl; deallog << "ok" << std::endl; } diff --git a/tests/numerics/data_out_filter_01.with_hdf5=true.output b/tests/numerics/data_out_filter_01.with_hdf5=true.output index 69858ee394..6a783fd65a 100644 --- a/tests/numerics/data_out_filter_01.with_hdf5=true.output +++ b/tests/numerics/data_out_filter_01.with_hdf5=true.output @@ -1,7 +1,7 @@ -DEAL::Number of filtered nodes: 4 -DEAL::Number of filtered nodes: 1 +DEAL::Number of filtered nodes: 9 +DEAL::Number of unfiltered nodes: 16 DEAL::ok -DEAL::Number of filtered nodes: 8 -DEAL::Number of filtered nodes: 1 +DEAL::Number of filtered nodes: 27 +DEAL::Number of unfiltered nodes: 64 DEAL::ok