From: Timo Heister Date: Mon, 1 Aug 2016 09:44:24 +0000 (+0200) Subject: address comments X-Git-Tag: v8.5.0-rc1~817^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e52865322bb1cd5dfda98ffe96420bfa77f7c7e2;p=dealii.git address comments --- diff --git a/examples/step-17/step-17.cc b/examples/step-17/step-17.cc index 41441788b4..e3966f8f34 100644 --- a/examples/step-17/step-17.cc +++ b/examples/step-17/step-17.cc @@ -377,7 +377,7 @@ namespace Step17 hanging_node_constraints.close (); // Now we create the sparsity pattern for the system matrix. Note that we - // again compute and store all constraints and not only the ones relevant + // again compute and store all entries and not only the ones relevant // to this process (see step-18 or step-40 for a more efficient way to // handle this). DynamicSparsityPattern dsp(dof_handler.n_dofs(), dof_handler.n_dofs()); @@ -399,8 +399,8 @@ namespace Step17 // as vectors are partitioned with which the matrix is multiplied, while // rows have to partitioned in the same way as destination vectors of // matrix-vector multiplications: - std::vector locally_owned_dofs_per_proc = DoFTools::locally_owned_dofs_per_subdomain(dof_handler); - IndexSet locally_owned_dofs = locally_owned_dofs_per_proc[this_mpi_process]; + const std::vector locally_owned_dofs_per_proc = DoFTools::locally_owned_dofs_per_subdomain(dof_handler); + const IndexSet locally_owned_dofs = locally_owned_dofs_per_proc[this_mpi_process]; system_matrix.reinit (locally_owned_dofs, locally_owned_dofs,