Skip to content

Commit

Permalink
add mass
Browse files Browse the repository at this point in the history
  • Loading branch information
lehner committed Jun 10, 2024
1 parent f118bbf commit 65ec086
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/gpt/qcd/gauge/stencil/algebra_laplace.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@


class algebra_laplace:
def __init__(self, U):
def __init__(self, U, mass=0.0):
self.U = U
self.grid = U[0].grid
self.nd = len(U)
Expand All @@ -46,7 +46,7 @@ def __init__(self, U):
code = []
for nu in range(self.nd):
code.append((_dU[nu], -1, 1.0, [(_sU[nu], _P, 0)]))
code.append((_dV[nu], -1, -2 * self.nd / 16, [(_sV[nu], _P, 0)]))
code.append((_dV[nu], -1, -2 * self.nd / 16 + mass, [(_sV[nu], _P, 0)]))

for mu in range(self.nd):
code.append(
Expand Down

0 comments on commit 65ec086

Please sign in to comment.