mirror of
https://github.com/paboyle/Grid.git
synced 2026-10-17 04:53:18 +01:00
Adding staple zeroing fix
This commit is contained in:
1 parent
1a1fe85428
commit
785bc7a14f
1 file changed
+5
-1
@@ -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++) {
|
||||
|
||||
|
||||
Reference in new issue
Block a user