From b3120e7e7e2f18977e5806b276ef82c74b3d15a3 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Fri, 27 Mar 2020 18:01:33 -0600 Subject: [PATCH] Be pedantically correct when looping over cells. --- examples/step-67/step-67.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/step-67/step-67.cc b/examples/step-67/step-67.cc index 5599a6cb16..53c3a9cea0 100644 --- a/examples/step-67/step-67.cc +++ b/examples/step-67/step-67.cc @@ -2229,8 +2229,9 @@ namespace Euler_DG double min_vertex_distance = std::numeric_limits::max(); for (const auto cell : triangulation.active_cell_iterators()) - min_vertex_distance = - std::min(min_vertex_distance, cell->minimum_vertex_distance()); + if (cell->is_locally_owned()) + min_vertex_distance = + std::min(min_vertex_distance, cell->minimum_vertex_distance()); min_vertex_distance = Utilities::MPI::min(min_vertex_distance, MPI_COMM_WORLD); -- 2.39.5