From 15ff33cffae49dac43b2b5a2f88c5cb2e5bb14b5 Mon Sep 17 00:00:00 2001 From: Peter Munch Date: Wed, 2 Mar 2022 12:32:11 +0100 Subject: [PATCH] Simplify logic in RepartitioningPolicyTools::FirstChildPolicy --- source/distributed/repartitioning_policy_tools.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/distributed/repartitioning_policy_tools.cc b/source/distributed/repartitioning_policy_tools.cc index e4a7e0c8d4..03a5967ec6 100644 --- a/source/distributed/repartitioning_policy_tools.cc +++ b/source/distributed/repartitioning_policy_tools.cc @@ -39,8 +39,7 @@ namespace RepartitioningPolicyTools { is_fine.add_index(cell_id_translator.translate(cell)); - if (cell->level() > 0 && - (cell->index() % GeometryInfo::max_children_per_cell) == 0) + if (cell->level() > 0 && cell->parent()->child(0) == cell) add_indices_recursively_for_first_child_policy(cell->parent(), cell_id_translator, is_fine); -- 2.39.5