Skip to content

Commit

Permalink
Oops wrong var
Browse files Browse the repository at this point in the history
  • Loading branch information
brryan committed Sep 22, 2024
1 parent f7bfcbc commit 77932f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tst/unit/test_kokkos_abstraction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ bool test_wrapper_nested_3d(OuterLoopPattern outer_loop_pattern,
const Real analytic = 2.0 * (i + 1) * pow((j + 2) * (k + 3), 2.0);
const Real err = host_du(k, j, i - 1) - analytic;

if (!soft_equiv(err, analytic, max_rel_err)) {
if (!soft_equiv(err, analytic, rel_tol)) {
return false;
}
}
Expand Down Expand Up @@ -398,7 +398,7 @@ bool test_wrapper_nested_4d(OuterLoopPattern outer_loop_pattern,
const Real analytic = 2.0 * (i + 1) * pow((j + 2) * (k + 3) * (n + 4), 2.0);
const Real err = host_du(n, k, j, i - 1) - analytic;

if (!soft_equiv(err, analytic, max_rel_err)) {
if (!soft_equiv(err, analytic, rel_tol)) {
return false;
}
}
Expand Down

0 comments on commit 77932f6

Please sign in to comment.