From: Wolfgang Bangerth Date: Sat, 28 Mar 2020 00:01:33 +0000 (-0600) Subject: Be pedantically correct when looping over cells. X-Git-Tag: v9.2.0-rc1~338^2~2^2~2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b3120e7e7e2f18977e5806b276ef82c74b3d15a3;p=dealii.git Be pedantically correct when looping over cells. --- 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);