Skip to content

Commit 5679712

Browse files
committed
Tweak tolerances
1 parent ab79785 commit 5679712

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

interface/ceed-basis.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1303,7 +1303,7 @@ int CeedSymmetricSchurDecomposition(Ceed ceed, CeedScalar *mat, CeedScalar *lamb
13031303

13041304
// Reduce sub and super diagonal
13051305
CeedInt p = 0, q = 0, itr = 0, max_itr = n * n * n * n;
1306-
CeedScalar tol = CEED_EPSILON;
1306+
CeedScalar tol = 10 * CEED_EPSILON;
13071307

13081308
while (itr < max_itr) {
13091309
// Update p, q, size of reduced portions of diagonal

tests/t360-basis.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ int main(int argc, char **argv) {
4040

4141
CeedVectorGetArrayRead(v, CEED_MEM_HOST, &v_array);
4242
for (CeedInt i = 0; i < p_dim; i++) area += v_array[i];
43-
if (fabs(area - 2.0 * CeedIntPow(2, dim)) > 5E-6) printf("Incorrect area computed %f != %f\n", area, 2.0 * CeedIntPow(2, dim));
43+
if (fabs(area - 2.0 * CeedIntPow(2, dim)) > 1E-5) printf("Incorrect area computed %f != %f\n", area, 2.0 * CeedIntPow(2, dim));
4444
CeedVectorRestoreArrayRead(v, &v_array);
4545
}
4646

0 commit comments

Comments
 (0)