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

Printing checksum for the RNG file

This commit is contained in:
Guido Cossu 2016-10-19 16:56:11 +01:00
parent 74f1ed3bc5
commit 8c65bdf6d3
4 changed files with 9 additions and 0 deletions

View File

@ -372,6 +372,8 @@ class BinaryIO {
if (grid->IsBoss())
fout.close();
std::cout << GridLogMessage << "RNG file checksum " << csum << std::endl;
return csum;
}
static inline uint32_t readRNGSerial(GridSerialRNG &serial,GridParallelRNG &parallel,std::string file,int offset)
@ -421,6 +423,8 @@ class BinaryIO {
Uint32Checksum((uint32_t *)&saved[0],bytes,csum);
}
std::cout << GridLogMessage << "RNG file checksum " << csum << std::endl;
grid->Broadcast(0,(void *)&csum,sizeof(csum));
return csum;

View File

@ -85,6 +85,7 @@ public:
LinkField Pmu(P._grid);
Pmu = zero;
for (int mu = 0; mu < Nd; mu++) {
std::cout << "generating momenta " << mu << "\n";
SU<Nrepresentation>::GaussianFundamentalLieAlgebraMatrix(pRNG, Pmu);
PokeIndex<LorentzIndex>(P, Pmu, mu);
}

View File

@ -161,4 +161,6 @@ int main(int argc, char **argv) {
TheHMC.MDparameters.set(20, 1.0);// MDsteps, traj length
TheHMC.BuildTheAction(argc, argv);
Grid_finalize();
}

View File

@ -133,4 +133,6 @@ int main(int argc, char **argv) {
TheHMC.MDparameters.set(20, 1.0);// MDsteps, traj length
TheHMC.BuildTheAction(argc, argv);
Grid_finalize();
}