mirror of
https://github.com/paboyle/Grid.git
synced 2025-04-09 21:50:45 +01:00
Should be able to eliminate the COMMA_SAFE with VA_ARGS trick ; revisit this file
This commit is contained in:
parent
e737591918
commit
b9d5a42b57
@ -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> truevals (Nsimd);
|
||||||
std::vector<scalar_object> falsevals(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(iftrue._odata[ss] ,truevals);
|
||||||
extract(iffalse._odata[ss] ,falsevals);
|
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);
|
merge(ret._odata[ss],falsevals);
|
||||||
}
|
})
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
template<class vobj,class iobj>
|
template<class vobj,class iobj>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user