From c9f1248a964d430d81963b43233fae8ba3ee610e Mon Sep 17 00:00:00 2001 From: Peter Munch Date: Fri, 13 Nov 2020 09:14:53 +0100 Subject: [PATCH] Step-37: small update to the documentation --- examples/step-37/doc/intro.dox | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/examples/step-37/doc/intro.dox b/examples/step-37/doc/intro.dox index e302529e4d..e60666c0d5 100644 --- a/examples/step-37/doc/intro.dox +++ b/examples/step-37/doc/intro.dox @@ -114,10 +114,7 @@ Matrixfree::vmult (Vector &dst, std::vector local_dof_indices (dofs_per_cell); - typename DoFHandler::active_cell_iterator - cell = dof_handler.begin_active(), - endc = dof_handler.end(); - for (; cell!=endc; ++cell) + for (const auto & cell : dof_handler.active_cell_iterators()) { cell_matrix = 0; fe_values.reinit (cell); @@ -257,7 +254,6 @@ v = \sum_{\mathrm{cell}=1}^{\mathrm{n\_cells}} P_\mathrm{cell,{loc-glob}}^T v_\mathrm{cell}. @f} @code -... FEValues fe_values_reference (fe, quadrature_formula, update_gradients); Triangulation reference_cell; @@ -268,7 +264,7 @@ v_\mathrm{cell}. update_inverse_jacobians | update_JxW_values | update_quadrature_points); - for (; cell!=endc; ++cell) + for (const auto & cell : dof_handler.active_cell_iterators()) { fe_values.reinit (cell); coefficient.value_list(fe_values.get_quadrature_points(), -- 2.39.5