Skip to content

Commit

Permalink
Merge pull request #1239 from DLR-AMR/enhancement-minor_fixes
Browse files Browse the repository at this point in the history
Minor typo fixes and enhancements
  • Loading branch information
Davknapp authored Aug 27, 2024
2 parents 2ca27ac + c6277b2 commit 0729371
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion test/t8_cmesh/t8_gtest_hypercube.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ TEST_P (cmesh_hypercube_trees, check_cmesh_and_its_trees)
ASSERT_EQ (t8_cmesh_get_dimension (cmesh), t8_eclass_to_dimension[eclass]) << "Wrong dimension set for cmesh.";
}

/* Use the testing range for eclass with [T8_ECLASS_ZERO, T8_ECLASS_COUNT]. For the generation of the cmesh with or withaout broadcast
/* Use the testing range for eclass with [T8_ECLASS_ZERO, T8_ECLASS_COUNT]. For the generation of the cmesh with or without broadcast
* the booleans 0 and 1 are used. Analogue with partition. */
INSTANTIATE_TEST_SUITE_P (t8_gtest_hypercube, cmesh_hypercube_trees,
testing::Combine (AllEclasses, testing::Values (0, 1), testing::Values (0, 1)));
5 changes: 2 additions & 3 deletions test/t8_forest/t8_gtest_element_volume.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
/**
* This file tests the volume-computation of elements.
*/
#define epsilon 1e-9

/* Construct a forest of a hypercube with volume 1. If the element are refined uniformly
* all elements have volume 1/global_num_elements. */
Expand Down Expand Up @@ -109,10 +108,10 @@ TEST_P (t8_forest_volume, volume_check)
const double volume = t8_forest_element_volume (forest, itree, element);
if (eclass == T8_ECLASS_PYRAMID) {
const double shape_volume = pyramid_control_volume ((t8_dpyramid_t *) element);
EXPECT_NEAR (volume, shape_volume, epsilon);
EXPECT_NEAR (volume, shape_volume, T8_PRECISION_SQRT_EPS);
}
else {
EXPECT_NEAR (volume, control_volume, epsilon);
EXPECT_NEAR (volume, control_volume, T8_PRECISION_SQRT_EPS);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion test/t8_forest/t8_gtest_forest_commit.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#include "test/t8_cmesh_generator/t8_cmesh_example_sets.hxx"
#include <test/t8_gtest_macros.hxx>

/* In this test, we adapt, balance and partition a uniform forest.
/* In this test we adapt, balance and partition a uniform forest.
* We do this in two ways:
* 1st All operations are performed in one single call to t8_forest_commit
* 2nd Each intermediate step is performed in a separate commit
Expand Down

0 comments on commit 0729371

Please sign in to comment.