Skip to content

Commit

Permalink
Update test tolerances
Browse files Browse the repository at this point in the history
  • Loading branch information
jrmaddison committed Sep 20, 2024
1 parent 9f7dd30 commit 5d0333a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/firedrake/test_cached_hessian.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,11 @@ def forward(F):

_, _, v_error = H.action(F, v)
var_axpy(v_error, -lam, v.riesz_representation("l2"))
assert var_linf_norm(v_error) < 1.0e-19
assert var_linf_norm(v_error) < 1.0e-18

_, _, v_error = H_opt.action(F, v)
var_axpy(v_error, -lam, v.riesz_representation("l2"))
assert var_linf_norm(v_error) < 1.0e-19
assert var_linf_norm(v_error) < 1.0e-18

esolver_opt = Eigensolver(
HessianMatrix(H_opt, F),
Expand All @@ -121,11 +121,11 @@ def forward(F):

_, _, v_error = H.action(F, v)
var_axpy(v_error, -lam, v.riesz_representation("l2"))
assert var_linf_norm(v_error) < 1.0e-19
assert var_linf_norm(v_error) < 1.0e-18

_, _, v_error = H_opt.action(F, v)
var_axpy(v_error, -lam, v.riesz_representation("l2"))
assert var_linf_norm(v_error) < 1.0e-19
assert var_linf_norm(v_error) < 1.0e-18

lam, _ = esolver.eigenpairs()
lam_opt, _ = esolver_opt.eigenpairs()
Expand Down

0 comments on commit 5d0333a

Please sign in to comment.