mirror of
https://github.com/paboyle/Grid.git
synced 2025-04-25 21:25:56 +01:00
VA_ARGS to make comma safe automatic
This commit is contained in:
parent
d6fce3e498
commit
f102897385
@ -674,11 +674,11 @@ public:
|
|||||||
|
|
||||||
timer.Start();
|
timer.Start();
|
||||||
std::vector<RNGstate> iodata(lsites);
|
std::vector<RNGstate> iodata(lsites);
|
||||||
thread_loop( (int lidx=0;lidx<lsites;lidx++),COMMA_SAFE({
|
thread_loop( (int lidx=0;lidx<lsites;lidx++),{
|
||||||
std::vector<RngStateType> tmp(RngStateCount);
|
std::vector<RngStateType> tmp(RngStateCount);
|
||||||
parallel.GetState(tmp,lidx);
|
parallel.GetState(tmp,lidx);
|
||||||
std::copy(tmp.begin(),tmp.end(),iodata[lidx].begin());
|
std::copy(tmp.begin(),tmp.end(),iodata[lidx].begin());
|
||||||
}));
|
});
|
||||||
timer.Stop();
|
timer.Stop();
|
||||||
|
|
||||||
IOobject(w,grid,iodata,file,offset,format,BINARYIO_WRITE|BINARYIO_LEXICOGRAPHIC,
|
IOobject(w,grid,iodata,file,offset,format,BINARYIO_WRITE|BINARYIO_LEXICOGRAPHIC,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user