From: Bruno Turcksin Date: Wed, 14 Sep 2022 19:10:04 +0000 (+0000) Subject: Check that the cell is locally owned before querying the FE index X-Git-Tag: v9.5.0-rc1~964^2~2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f860aa6db1f6263128dfd223a13597aa6f304175;p=dealii.git Check that the cell is locally owned before querying the FE index --- diff --git a/include/deal.II/grid/filtered_iterator.h b/include/deal.II/grid/filtered_iterator.h index b97f5eb8e3..f0d6554f9f 100644 --- a/include/deal.II/grid/filtered_iterator.h +++ b/include/deal.II/grid/filtered_iterator.h @@ -1499,9 +1499,9 @@ namespace IteratorFilters ActiveFEIndexEqualTo::operator()(const Iterator &i) const { return only_locally_owned == true ? - (active_fe_indices.find(i->active_fe_index()) != - active_fe_indices.end() && - i->is_locally_owned()) : + (i->is_locally_owned() && + active_fe_indices.find(i->active_fe_index()) != + active_fe_indices.end()) : active_fe_indices.find(i->active_fe_index()) != active_fe_indices.end(); }