1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-11-10 07:55:35 +00:00

VA_ARGS to make comma safe automatic

This commit is contained in:
paboyle 2018-01-27 23:49:47 +00:00
parent d6fce3e498
commit f102897385

View File

@ -674,11 +674,11 @@ public:
timer.Start();
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);
parallel.GetState(tmp,lidx);
std::copy(tmp.begin(),tmp.end(),iodata[lidx].begin());
}));
});
timer.Stop();
IOobject(w,grid,iodata,file,offset,format,BINARYIO_WRITE|BINARYIO_LEXICOGRAPHIC,