mirror of
https://github.com/paboyle/Grid.git
synced 2025-06-13 04:37:05 +01:00
Switched to Hdf5 format for perambulators. Ready for first test on Tesseract.
This commit is contained in:
@ -118,13 +118,11 @@ void TLoadPerambulator<FImpl>::setup(void)
|
||||
template <typename FImpl>
|
||||
void TLoadPerambulator<FImpl>::execute(void)
|
||||
{
|
||||
auto &perambulator = envGet(MDistil::Perambulator<SpinVector COMMA 6 COMMA sizeof(Real)>,
|
||||
getName());
|
||||
|
||||
const std::string &PerambFileName{par().PerambFileName + "." + std::to_string(vm().getTrajectory())};
|
||||
std::cout << "reading perambulator from file " << PerambFileName << std::endl;
|
||||
perambulator.ReadBinary(PerambFileName);
|
||||
|
||||
auto &perambulator = envGet(MDistil::Perambulator<SpinVector COMMA 6 COMMA sizeof(Real)>, getName());
|
||||
const std::string sPerambName{par().PerambFileName + "." + std::to_string(vm().getTrajectory())};
|
||||
const std::string PerambFileName{sPerambName + ".h5"};
|
||||
std::cout << "reading perambulator from file " << PerambFileName << std::endl;
|
||||
perambulator.template read<Hdf5Reader>(PerambFileName.c_str(), sPerambName.c_str());
|
||||
}
|
||||
|
||||
END_MODULE_NAMESPACE
|
||||
|
Reference in New Issue
Block a user