Skip to content

Commit

Permalink
Merge pull request #1086 from DLR-AMR/fix-offset_assertion
Browse files Browse the repository at this point in the history
Fix offset assertion, for empty procs first tree is allowed to equal num trees
  • Loading branch information
Davknapp authored Jun 19, 2024
2 parents b8ed9d1 + 8317fb9 commit 704e0ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/t8_forest/t8_forest_cxx.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1249,7 +1249,7 @@ t8_forest_tree_shared (t8_forest_t forest, int first_or_last)
T8_ASSERT (first_or_last == 0 || first_or_last == 1);
T8_ASSERT (forest != NULL);
T8_ASSERT (forest->first_local_tree > -1);
T8_ASSERT (forest->first_local_tree < forest->global_num_trees);
T8_ASSERT (forest->first_local_tree <= forest->global_num_trees);
T8_ASSERT (forest->last_local_tree < forest->global_num_trees);
#if T8_ENABLE_DEBUG
if (forest->first_local_tree == 0 && forest->last_local_tree == -1) {
Expand Down

0 comments on commit 704e0ae

Please sign in to comment.