1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-04-04 19:25:56 +01:00

Should be able to eliminate the COMMA_SAFE with VA_ARGS trick ; revisit this file

This commit is contained in:
paboyle 2018-01-24 13:42:06 +00:00
parent e737591918
commit b9d5a42b57

View File

@ -58,7 +58,7 @@ inline void whereWolf(Lattice<vobj> &ret,const Lattice<iobj> &predicate,Lattice<
std::vector<scalar_object> truevals (Nsimd);
std::vector<scalar_object> falsevals(Nsimd);
parallel_for(int ss=0;ss<iftrue._grid->oSites(); ss++){
thread_loop( (int ss=iftrue.begin(); ss<iftrue.end();ss++) , COMMA_SAFE({
extract(iftrue._odata[ss] ,truevals);
extract(iffalse._odata[ss] ,falsevals);
@ -69,7 +69,8 @@ inline void whereWolf(Lattice<vobj> &ret,const Lattice<iobj> &predicate,Lattice<
}
merge(ret._odata[ss],falsevals);
}
})
);
}
template<class vobj,class iobj>