mirror of
https://github.com/paboyle/Grid.git
synced 2026-10-11 10:18:06 +01:00
looping construct
This commit is contained in:
1 parent
e8b78f596e
commit
377fa5dec1
1 file changed
+3
-3
@@ -94,7 +94,7 @@ public:
|
||||
for (int mu = 0; mu < Ndim; mu++)
|
||||
{
|
||||
// pshift = Cshift(p, mu, +1); // not efficient, implement with stencils
|
||||
thread_loop( (int i = 0; i < p.Grid()->oSites(); i++),
|
||||
thread_for(i, p.Grid()->oSites(),
|
||||
{
|
||||
int permute_type;
|
||||
StencilEntry *SE;
|
||||
@@ -153,8 +153,8 @@ public:
|
||||
StencilEntry *SE;
|
||||
const vobj *temp;
|
||||
|
||||
thread_loop( (int i = 0; i < p.Grid()->oSites(); i++) ,{
|
||||
|
||||
thread_for(i, p.Grid()->oSites(),
|
||||
{
|
||||
SE = phiStencil.GetEntry(permute_type, point, i);
|
||||
// prefetch next p?
|
||||
|
||||
|
||||
Reference in new issue
Block a user