Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
lehner committed Jun 6, 2024
1 parent 35e9d1d commit f6e850d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/qcd/scalar.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
A1 = g.qcd.scalar.action.fourier_mass_term(sqrt_mass)
A1.assert_gradient_error(rng, U_mom, U_mom, 1e-3, 1e-8)
r = A1.draw(U_mom, rng)
assert abs(A1(U_mom) - r) < 1e-10
assert abs(A1(U_mom)/r - 1) < 1e-10

# group defect would be triggered if sqrt_mass does not have sqrt_mass[k] = sqrt_mass[-k]
eps = g.group.defect(U_mom[0])
Expand Down Expand Up @@ -177,8 +177,6 @@ def __slap(dst, src):
slap = g.matrix_operator(mat=lap, inv_mat=cg(lap), accept_list=True)
slap2 = slap * slap

# TODO: need stencil version of __slap

A2 = g.qcd.scalar.action.general_mass_term(M=slap2, sqrt_M=slap)

A2.assert_gradient_error(rng, U_mom, U_mom, 1e-3, 1e-8)
Expand Down

0 comments on commit f6e850d

Please sign in to comment.