From: Peter Munch Date: Fri, 13 Nov 2020 08:14:53 +0000 (+0100) Subject: Step-37: small update to the documentation X-Git-Tag: v9.3.0-rc1~909^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c9f1248a964d430d81963b43233fae8ba3ee610e;p=dealii.git Step-37: small update to the documentation --- 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(),