From d4fae14e03777b2538a176104d59ce8beec31433 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Tue, 5 Jan 2021 15:50:20 -0500 Subject: [PATCH] Fix up examples --- examples/step-37/step-37.cc | 2 +- examples/step-48/step-48.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); -- 2.39.5