From 65ec086d38f54c3fd981467a8ccff071d18bb39b Mon Sep 17 00:00:00 2001 From: Christoph Lehner Date: Mon, 10 Jun 2024 14:57:35 +0200 Subject: [PATCH] add mass --- lib/gpt/qcd/gauge/stencil/algebra_laplace.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/gpt/qcd/gauge/stencil/algebra_laplace.py b/lib/gpt/qcd/gauge/stencil/algebra_laplace.py index 5075d606..961b3a05 100644 --- a/lib/gpt/qcd/gauge/stencil/algebra_laplace.py +++ b/lib/gpt/qcd/gauge/stencil/algebra_laplace.py @@ -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) @@ -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(