Skip to content

Commit

Permalink
Adjust tolerances
Browse files Browse the repository at this point in the history
Signed-off-by: Steven Hahn <[email protected]>
  • Loading branch information
quantumsteve committed Feb 21, 2024
1 parent 40ce264 commit 0839089
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/solver_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ void test_kronmult(parser const &parse, P const tol_factor)
std::copy_n(b.data(grid.col_start * elem_size), len, b_dist.data());
int const restart = parser::DEFAULT_GMRES_INNER_ITERATIONS;
int const max_iter = parser::DEFAULT_GMRES_OUTER_ITERATIONS;
P const tolerance = std::is_same_v<float, P> ? 1e-6 : 1e-12;
P const tolerance = std::is_same_v<float, P> ? 4e-6 : 1e-12;
#ifdef KRON_MODE_GLOBAL
ignore(adaptive_grid);
ignore(elem_size);
Expand Down Expand Up @@ -219,7 +219,7 @@ TEMPLATE_TEST_CASE("simple GMRES", "[solver]", test_precs)

TEMPLATE_TEST_CASE("test kronmult", "[kronmult]", test_precs)
{
auto constexpr tol_factor = get_tolerance<TestType>(10);
auto constexpr tol_factor = get_tolerance<TestType>(1000);

SECTION("1d")
{
Expand Down Expand Up @@ -278,7 +278,7 @@ TEMPLATE_TEST_CASE("test kronmult", "[kronmult]", test_precs)

TEMPLATE_TEST_CASE("test kronmult w/ decompose", "[kronmult]", test_precs)
{
auto constexpr tol_factor = get_tolerance<TestType>(10);
auto constexpr tol_factor = get_tolerance<TestType>(1000);

SECTION("2d - uniform level")
{
Expand Down

0 comments on commit 0839089

Please sign in to comment.