]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix test and test result 5341/head
authorRene Gassmoeller <rene.gassmoeller@mailbox.org>
Fri, 27 Oct 2017 15:47:57 +0000 (09:47 -0600)
committerRene Gassmoeller <rene.gassmoeller@mailbox.org>
Fri, 27 Oct 2017 15:47:57 +0000 (09:47 -0600)
tests/numerics/data_out_filter_01.cc
tests/numerics/data_out_filter_01.with_hdf5=true.output

index f6e90b205c0f86992d8558d05f6c799df58b5aeb..5e705717a00301552178dd62e2d8268e20caee1d 100644 (file)
@@ -37,7 +37,8 @@ void
 test ()
 {
   Triangulation<dim> tria(Triangulation<dim>::MeshSmoothing::none,true);
-  GridGenerator::hyper_cube(tria, 1., 1. + 1000.0 * std::numeric_limits<double>::epsilon());
+  GridGenerator::hyper_cube(tria, 1., 2.);
+  tria.refine_global(1);
 
   FE_Q<dim> fe1(1);
 
@@ -58,27 +59,11 @@ test ()
 
   deallog << "Number of filtered nodes: " << data_filter.n_nodes() << std::endl;
 
-  Triangulation<dim> tria2(Triangulation<dim>::MeshSmoothing::none,true);
-  GridGenerator::hyper_cube(tria2, 1., 1 + 10.0 * std::numeric_limits<double>::epsilon());
-
-  FE_Q<dim> fe2(1);
-
-  DoFHandler<dim> dof2(tria2);
-  dof2.distribute_dofs(fe2);
-
-  Vector<double> v2(dof2.n_dofs());
-  for (unsigned int i=0; i<v2.size(); ++i) v2(i) = i;
-
-  DataOut<dim> 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;
 }
index 69858ee394cf25e04c33a3d1bbc344ce2405c3d1..6a783fd65a51990daed59e74a700ee515de542f8 100644 (file)
@@ -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

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.