Skip to content

Commit

Permalink
distribute guess instead of zeroing it
Browse files Browse the repository at this point in the history
  • Loading branch information
lehner committed Aug 28, 2023
1 parent 9e51917 commit 5bf0574
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/gpt/core/object_type/container.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,15 +267,13 @@ def distribute(self, mat, dst, src, zero_lhs):
dst_sc = [gpt.gpt_object(dst_grid, self) for i in range(n_dst)]
src_sc = [gpt.gpt_object(src_grid, self) for i in range(n_src)]

if zero_lhs:
for idx in range(n_dst):
dst_sc[idx][:] = 0

for i in range(len(src)):
for s in range(self.spin_ndim):
for c in range(self.color_ndim):
idx = c + self.color_ndim * (s + self.spin_ndim * i)
gpt.qcd.prop_to_ferm(src_sc[idx], src[i], s, c)
if zero_lhs:
gpt.qcd.prop_to_ferm(dst_sc[idx], dst[i], s, c)

mat(dst_sc, src_sc)

Expand Down

0 comments on commit 5bf0574

Please sign in to comment.