Skip to content

Commit

Permalink
more economical resource management during hmc
Browse files Browse the repository at this point in the history
  • Loading branch information
lehner committed Sep 22, 2024
1 parent 7f64d38 commit 85b8d87
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/gpt/qcd/pseudofermion/action/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ def __init__(self, M, inverter, operator):
def _updated(self, fields):
U = fields[0:-1]
psi = fields[-1]
return [m.updated(U) for m in self.M] + [U, psi]
for m in self.M:
m.update(U)
return self.M + [U, psi]

def _allocate_force(self, U):
frc = g.group.cartesian(U)
Expand Down

0 comments on commit 85b8d87

Please sign in to comment.