]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Check that the cell is locally owned before querying the FE index
authorBruno Turcksin <bruno.turcksin@gmail.com>
Wed, 14 Sep 2022 19:10:04 +0000 (19:10 +0000)
committerBruno Turcksin <bruno.turcksin@gmail.com>
Wed, 14 Sep 2022 19:10:04 +0000 (19:10 +0000)
include/deal.II/grid/filtered_iterator.h

index b97f5eb8e3c2597ab1273e99497918419de75c91..f0d6554f9ffaa84c126d4fa5fd774ef585db9b9f 100644 (file)
@@ -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();
   }

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.