mirror of
https://github.com/paboyle/Grid.git
synced 2025-06-14 13:57:07 +01:00
Switched to Hdf5 format for perambulators. Ready for first test on Tesseract.
This commit is contained in:
@ -238,9 +238,11 @@ void TPerambFromSolve<FImpl>::execute(void)
|
||||
}
|
||||
}
|
||||
|
||||
if(PerambFileName.length())
|
||||
perambulator.WriteBinary(PerambFileName + "." + std::to_string(vm().getTrajectory()));
|
||||
|
||||
if(PerambFileName.length()) {
|
||||
std::string sPerambName{PerambFileName + "." + std::to_string(vm().getTrajectory())};
|
||||
//perambulator.WriteBinary(sPerambName);
|
||||
perambulator.template write<Hdf5Writer>((sPerambName + ".h5").c_str(), sPerambName.c_str());
|
||||
}
|
||||
}
|
||||
|
||||
END_MODULE_NAMESPACE
|
||||
|
@ -286,8 +286,11 @@ void TPerambulator<FImpl>::execute(void)
|
||||
std::cout << "perambulator done" << std::endl;
|
||||
perambulator.SliceShare( grid3d, grid4d );
|
||||
|
||||
if(PerambFileName.length())
|
||||
perambulator.WriteBinary(PerambFileName + "." + std::to_string(vm().getTrajectory()));
|
||||
if(PerambFileName.length()) {
|
||||
std::string sPerambName{PerambFileName + "." + std::to_string(vm().getTrajectory())};
|
||||
//perambulator.WriteBinary(sPerambName);
|
||||
perambulator.template write<Hdf5Writer>((sPerambName + ".h5").c_str(), sPerambName.c_str());
|
||||
}
|
||||
}
|
||||
|
||||
END_MODULE_NAMESPACE
|
||||
|
@ -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