diff --git a/Grid/lattice/Lattice_where.h b/Grid/lattice/Lattice_where.h index e9a3f823..777f4015 100644 --- a/Grid/lattice/Lattice_where.h +++ b/Grid/lattice/Lattice_where.h @@ -52,16 +52,15 @@ inline void whereWolf(Lattice &ret,const Lattice &predicate,Lattice< const int Nsimd = grid->Nsimd(); - Integer mask; - scalar_object trueval; - scalar_object falseval; - autoView(iftrue_v,iftrue,CpuRead); autoView(iffalse_v,iffalse,CpuRead); autoView(predicate_v,predicate,CpuRead); autoView(ret_v,ret,CpuWrite); Integer NN= grid->oSites(); thread_for(ss,NN,{ + Integer mask; + scalar_object trueval; + scalar_object falseval; for(int l=0;l