Skip to content

Commit

Permalink
Slightly relaxed the test conditions to account for different SVD imp…
Browse files Browse the repository at this point in the history
…lementations
  • Loading branch information
sboerm committed Mar 4, 2015
1 parent c1e21ff commit 7ec1434
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Tests/test_h2matrix.c
Expand Up @@ -97,8 +97,8 @@ main()
add_avector(-1.0, x, b);
error = norm2_avector(b) / norm2_avector(x);
(void) printf(" Accuracy %g, %sokay\n", error,
IS_IN_RANGE(2.0e-13, error, 2.0e-12) ? "" : " NOT ");
if (!IS_IN_RANGE(2.0e-13, error, 2.0e-12))
IS_IN_RANGE(2.0e-13, error, 3.0e-12) ? "" : " NOT ");
if (!IS_IN_RANGE(2.0e-13, error, 3.0e-12))
problems++;

rwfh2 = prepare_row_clusteroperator(h2copy->rb, h2copy->cb, tm);
Expand Down Expand Up @@ -196,8 +196,8 @@ main()
addmul_h2matrix(-1.0, L, false, R, h2copy, rwfh2, cwfh2, tm, tol);
error = norm2_h2matrix(h2copy) / error;
(void) printf(" Accuracy %g, %sokay\n", error,
IS_IN_RANGE(4.0e-15, error, 4.0e-14) ? "" : " NOT ");
if (!IS_IN_RANGE(4.0e-15, error, 4.0e-14))
IS_IN_RANGE(4.0e-15, error, 5.0e-14) ? "" : " NOT ");
if (!IS_IN_RANGE(4.0e-15, error, 5.0e-14))
problems++;


Expand Down

0 comments on commit 7ec1434

Please sign in to comment.