1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-11-09 23:45:36 +00:00

seed initialisation of RNG5

This commit is contained in:
gfilaci 2019-03-12 18:07:58 +00:00
parent 3f1c4d8789
commit b52fa38f8c

View File

@ -76,7 +76,7 @@ int main (int argc, char ** argv)
std::cout << GridLogMessage<< "* Benchmarking DomainWallFermionR::Dhop "<<std::endl;
std::cout << GridLogMessage<< "*********************************************************" <<std::endl;
GridParallelRNG RNG5(FGrid);
GridParallelRNG RNG5(FGrid); RNG5.SeedFixedIntegers(seeds5);
LatticeFermion src(FGrid); random(RNG5,src);
LatticeFermion result(FGrid);
@ -173,7 +173,7 @@ int main (int argc, char ** argv)
std::cout << GridLogMessage<< "* Benchmarking DomainWallFermionVec5dR::Dhop "<<std::endl;
std::cout << GridLogMessage<< "*********************************************************" <<std::endl;
GridParallelRNG RNG5(sFGrid);
GridParallelRNG RNG5(sFGrid); RNG5.SeedFixedIntegers(seeds5);
LatticeFermion src(sFGrid); random(RNG5,src);
LatticeFermion sref(sFGrid);
LatticeFermion result(sFGrid);