From cb93d32cd99e185c91bbede7ace409820c8c5f7f Mon Sep 17 00:00:00 2001 From: Peter Boyle Date: Sat, 15 Jun 2019 07:44:08 +0100 Subject: [PATCH] Thread loop changes --- Grid/algorithms/FFT.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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);