mirror of
https://github.com/paboyle/Grid.git
synced 2025-06-13 04:37:05 +01:00
Making sure Hdf5 is an optional dependency (default to binary writer if not present)
This commit is contained in:
@ -120,9 +120,7 @@ void TLoadPerambulator<FImpl>::execute(void)
|
||||
{
|
||||
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());
|
||||
perambulator.read(sPerambName.c_str());
|
||||
}
|
||||
|
||||
END_MODULE_NAMESPACE
|
||||
|
Reference in New Issue
Block a user