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:
parent
74f1ed3bc5
commit
8c65bdf6d3
@ -372,6 +372,8 @@ class BinaryIO {
|
|||||||
if (grid->IsBoss())
|
if (grid->IsBoss())
|
||||||
fout.close();
|
fout.close();
|
||||||
|
|
||||||
|
std::cout << GridLogMessage << "RNG file checksum " << csum << std::endl;
|
||||||
|
|
||||||
return csum;
|
return csum;
|
||||||
}
|
}
|
||||||
static inline uint32_t readRNGSerial(GridSerialRNG &serial,GridParallelRNG ¶llel,std::string file,int offset)
|
static inline uint32_t readRNGSerial(GridSerialRNG &serial,GridParallelRNG ¶llel,std::string file,int offset)
|
||||||
@ -421,6 +423,8 @@ class BinaryIO {
|
|||||||
Uint32Checksum((uint32_t *)&saved[0],bytes,csum);
|
Uint32Checksum((uint32_t *)&saved[0],bytes,csum);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::cout << GridLogMessage << "RNG file checksum " << csum << std::endl;
|
||||||
|
|
||||||
grid->Broadcast(0,(void *)&csum,sizeof(csum));
|
grid->Broadcast(0,(void *)&csum,sizeof(csum));
|
||||||
|
|
||||||
return csum;
|
return csum;
|
||||||
|
@ -85,6 +85,7 @@ public:
|
|||||||
LinkField Pmu(P._grid);
|
LinkField Pmu(P._grid);
|
||||||
Pmu = zero;
|
Pmu = zero;
|
||||||
for (int mu = 0; mu < Nd; mu++) {
|
for (int mu = 0; mu < Nd; mu++) {
|
||||||
|
std::cout << "generating momenta " << mu << "\n";
|
||||||
SU<Nrepresentation>::GaussianFundamentalLieAlgebraMatrix(pRNG, Pmu);
|
SU<Nrepresentation>::GaussianFundamentalLieAlgebraMatrix(pRNG, Pmu);
|
||||||
PokeIndex<LorentzIndex>(P, Pmu, mu);
|
PokeIndex<LorentzIndex>(P, Pmu, mu);
|
||||||
}
|
}
|
||||||
|
@ -161,4 +161,6 @@ int main(int argc, char **argv) {
|
|||||||
TheHMC.MDparameters.set(20, 1.0);// MDsteps, traj length
|
TheHMC.MDparameters.set(20, 1.0);// MDsteps, traj length
|
||||||
|
|
||||||
TheHMC.BuildTheAction(argc, argv);
|
TheHMC.BuildTheAction(argc, argv);
|
||||||
|
|
||||||
|
Grid_finalize();
|
||||||
}
|
}
|
||||||
|
@ -133,4 +133,6 @@ int main(int argc, char **argv) {
|
|||||||
TheHMC.MDparameters.set(20, 1.0);// MDsteps, traj length
|
TheHMC.MDparameters.set(20, 1.0);// MDsteps, traj length
|
||||||
|
|
||||||
TheHMC.BuildTheAction(argc, argv);
|
TheHMC.BuildTheAction(argc, argv);
|
||||||
|
|
||||||
|
Grid_finalize();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user