Skip to content

Commit

Permalink
Reduce runtime for TEST_LEVEL == 2
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasdreyer committed Feb 28, 2025
1 parent f4562f2 commit 304e362
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/t8_forest_incomplete/t8_gtest_iterate_replace.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,18 @@ class forest_iterate: public testing::TestWithParam<cmesh_example_base *> {
void
SetUp () override
{
#if T8CODE_TEST_LEVEL >= 2
constexpr int level = 3;
#else
constexpr int level = 4;
#endif
t8_cmesh_t cmesh = GetParam ()->cmesh_create ();
if (t8_cmesh_is_empty (cmesh)) {
/* empty cmeshes are currently not supported */
t8_cmesh_unref (&cmesh);
GTEST_SKIP ();
}
forest = t8_forest_new_uniform (cmesh, t8_scheme_new_default (), 4, 0, sc_MPI_COMM_WORLD);
forest = t8_forest_new_uniform (cmesh, t8_scheme_new_default (), level, 0, sc_MPI_COMM_WORLD);
}
void
TearDown () override
Expand Down

0 comments on commit 304e362

Please sign in to comment.