]> https://gitweb.dealii.org/ - dealii.git/commitdiff
address comments 2894/head
authorTimo Heister <timo.heister@gmail.com>
Mon, 1 Aug 2016 09:44:24 +0000 (11:44 +0200)
committerTimo Heister <timo.heister@gmail.com>
Mon, 1 Aug 2016 09:44:24 +0000 (11:44 +0200)
examples/step-17/step-17.cc

index 41441788b4b73399c6f5656f099319e5c530a4e3..e3966f8f34f63c3c1bf92d15a36505c4caab2b75 100644 (file)
@@ -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<IndexSet> 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<IndexSet> 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,

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.