From: Daniel Arndt Date: Tue, 5 Jan 2021 20:50:20 +0000 (-0500) Subject: Fix up examples X-Git-Tag: v9.3.0-rc1~449^2~3 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4fae14e03777b2538a176104d59ce8beec31433;p=dealii.git Fix up examples --- diff --git a/examples/step-37/step-37.cc b/examples/step-37/step-37.cc index f754078555..3975c0f1f8 100644 --- a/examples/step-37/step-37.cc +++ b/examples/step-37/step-37.cc @@ -549,7 +549,7 @@ namespace Step37 this->set_constrained_entries_to_one(inverse_diagonal); - for (unsigned int i = 0; i < inverse_diagonal.local_size(); ++i) + for (unsigned int i = 0; i < inverse_diagonal.locally_owned_size(); ++i) { Assert(inverse_diagonal.local_element(i) > 0., ExcMessage("No diagonal entry in a positive definite operator " diff --git a/examples/step-48/step-48.cc b/examples/step-48/step-48.cc index 76b98f88d3..31cbaf0d4b 100644 --- a/examples/step-48/step-48.cc +++ b/examples/step-48/step-48.cc @@ -137,7 +137,7 @@ namespace Step48 } inv_mass_matrix.compress(VectorOperation::add); - for (unsigned int k = 0; k < inv_mass_matrix.local_size(); ++k) + for (unsigned int k = 0; k < inv_mass_matrix.locally_owned_size(); ++k) if (inv_mass_matrix.local_element(k) > 1e-15) inv_mass_matrix.local_element(k) = 1. / inv_mass_matrix.local_element(k);