diff --git a/Grid/algorithms/FFT.h b/Grid/algorithms/FFT.h index 925da113..0d568c95 100644 --- a/Grid/algorithms/FFT.h +++ b/Grid/algorithms/FFT.h @@ -232,7 +232,7 @@ public: result = source; int pc = processor_coor[dim]; for(int p=0;plSites();idx++), { + thread_for(idx, sgrid->lSites(),{ Coordinate cbuf(Nd); sobj s; sgrid->LocalIndexToLocalCoor(idx,cbuf); @@ -250,7 +250,7 @@ public: int NN=pencil_g.lSites(); GridStopWatch timer; timer.Start(); - thread_loop( (int idx=0;idxlSites();idx++), { + thread_for(idx,sgrid->lSites(),{ Coordinate clbuf(Nd), cgbuf(Nd); sobj s; sgrid->LocalIndexToLocalCoor(idx,clbuf);