]> https://gitweb.dealii.org/ - dealii.git/commitdiff
use cell iterator instead of active cell iterator
authorMatthias Maier <tamiko@43-1.org>
Mon, 25 Nov 2019 22:21:55 +0000 (16:21 -0600)
committerMatthias Maier <tamiko@43-1.org>
Mon, 25 Nov 2019 22:21:55 +0000 (16:21 -0600)
and avoid an unnecessary cast. These functions take a cell iterator as
argument, not an active cell iterator.

source/numerics/data_out.cc

index 03c4a6d92cbc72d645c0ed4f8ff060d76f0d251a..96f77701fc94ccfdf22cf14eba60ad8b5ddf754e 100644 (file)
@@ -95,7 +95,7 @@ DataOut<dim, DoFHandlerType>::build_one_patch(
           cell_and_index->first,
           GeometryInfo<DoFHandlerType::dimension>::unit_cell_vertex(vertex));
 
-  // create DoFHandlerType::active_cell_iterator and initialize FEValues
+  // initialize FEValues
   scratch_data.reinit_all_fe_values(this->dof_data, cell_and_index->first);
 
   const FEValuesBase<DoFHandlerType::dimension, DoFHandlerType::space_dimension>
@@ -202,7 +202,7 @@ DataOut<dim, DoFHandlerType>::build_one_patch(
                     scratch_data.patch_values_scalar.evaluation_points =
                       this_fe_patch_values.get_quadrature_points();
 
-                  const typename DoFHandlerType::active_cell_iterator dh_cell(
+                  const typename DoFHandlerType::cell_iterator dh_cell(
                     &cell_and_index->first->get_triangulation(),
                     cell_and_index->first->level(),
                     cell_and_index->first->index(),
@@ -627,7 +627,7 @@ DataOut<dim, DoFHandlerType>::build_one_patch(
                     scratch_data.patch_values_system.evaluation_points =
                       this_fe_patch_values.get_quadrature_points();
 
-                  const typename DoFHandlerType::active_cell_iterator dh_cell(
+                  const typename DoFHandlerType::cell_iterator dh_cell(
                     &cell_and_index->first->get_triangulation(),
                     cell_and_index->first->level(),
                     cell_and_index->first->index(),

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.