From b9d5a42b57d44bdd5b95c4668eae01df42128370 Mon Sep 17 00:00:00 2001 From: paboyle Date: Wed, 24 Jan 2018 13:42:06 +0000 Subject: [PATCH] Should be able to eliminate the COMMA_SAFE with VA_ARGS trick ; revisit this file --- lib/lattice/Lattice_where.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/lattice/Lattice_where.h b/lib/lattice/Lattice_where.h index a0c41d0d..92d43c1e 100644 --- a/lib/lattice/Lattice_where.h +++ b/lib/lattice/Lattice_where.h @@ -58,7 +58,7 @@ inline void whereWolf(Lattice &ret,const Lattice &predicate,Lattice< std::vector truevals (Nsimd); std::vector falsevals(Nsimd); - parallel_for(int ss=0;ssoSites(); ss++){ + thread_loop( (int ss=iftrue.begin(); ss &ret,const Lattice &predicate,Lattice< } merge(ret._odata[ss],falsevals); - } + }) + ); } template