From e52865322bb1cd5dfda98ffe96420bfa77f7c7e2 Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Mon, 1 Aug 2016 11:44:24 +0200 Subject: [PATCH] address comments --- examples/step-17/step-17.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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, -- 2.39.5