1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-04-25 13:15:55 +01:00

Adding staple zeroing fix

This commit is contained in:
Mashy Green 2025-03-10 12:29:04 +00:00
parent 1a1fe85428
commit 785bc7a14f

View File

@ -302,7 +302,11 @@ public:
}
static void Staple(GaugeMat &staple, const std::vector<GaugeMat> &Umu, int mu) {
staple = Zero();
autoView(staple_v, staple, AcceleratorWrite);
accelerator_for(i, staple.Grid()->oSites(), Simd::Nsimd(), {
staple_v[i] = Zero();
});
for (int nu = 0; nu < Nd; nu++) {