From 4c033473953cff1f2bbd896a358465a4c594e11f Mon Sep 17 00:00:00 2001 From: Thomas Spenke Date: Mon, 2 Feb 2026 11:27:06 +0100 Subject: [PATCH] Other: Remove disabled code block from test/t8_forest/t8_gtest_find_owner.cxx --- test/t8_forest/t8_gtest_find_owner.cxx | 85 -------------------------- 1 file changed, 85 deletions(-) diff --git a/test/t8_forest/t8_gtest_find_owner.cxx b/test/t8_forest/t8_gtest_find_owner.cxx index c2a3acc84f..e748ae35a9 100644 --- a/test/t8_forest/t8_gtest_find_owner.cxx +++ b/test/t8_forest/t8_gtest_find_owner.cxx @@ -51,91 +51,6 @@ struct forest_find_owner: public testing::TestWithParameclass_schemes[tree_class]; - scheme->element_new (tree_class, 1, &element); - /* Compute the number of elements per tree */ - scheme->set_to_root (tree_class, element); - /* TODO: This computation fails with pyramids */ - t8_gloidx_t elements_per_tree = - pow (scheme->element_get_num_children (tree_class, element), level); - - for (int itype = 0; itype < 3; itype++) { - t8_debugf ("\tTesting cmesh type %i\n", itype); - /* build the cmesh */ - cmesh = t8_test_create_cmesh (itype, tree_class, sc_MPI_COMM_WORLD); - /* We reuse the scheme for all forests and thus ref it */ - t8_scheme_ref (scheme); - /* build the forest */ - t8_forest_t forest = - t8_forest_new_uniform (cmesh, scheme, level, 0, - sc_MPI_COMM_WORLD); - for (int itree = 0, t8_gloidx_t global_elem_num = 0; - itree < t8_forest_get_num_global_trees (forest); itree++) { - /* Iterate over all trees */ - for (t8_gloidx_t ielement = 0; ielement < elements_per_tree; - ielement++, global_elem_num++) { - /* Compute the ielement's elements in the tree */ - scheme->element_set_linear_id (tree_class, element, level, (uint64_t) ielement); - /* Find the owner of the element */ - int owner = - t8_forest_element_find_owner (forest, itree, element, tree_class); - /* Find the owner in a different way via the element offset array. - * This is only possible since we have a uniform refinement. */ - if (forest->element_offsets == NULL) { - t8_forest_partition_create_offsets (forest); - } - int owner_alter = -1; - t8_offset_first_owner_of_tree (forest->mpisize, global_elem_num, - t8_shmem_array_get_gloidx_array - (forest->element_offsets), - &owner_alter); - /* Check if both owners are the same */ - ASSERT_EQ (owner, - owner_alter) << "Finding owner for element " << (long long) - ielement << " in tree " << (long long) itree << " failed.\n"; - } - } - t8_forest_unref (&forest); - } - /* clean-up */ - scheme->element_destroy (tree_class, 1, &element); - t8_scheme_unref (&scheme); -} -#endif - TEST_P (forest_find_owner, find_multiple_owners) { t8_element_t *root_element;