1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-11-10 07:55:35 +00:00
This commit is contained in:
Felix Erben 2019-03-25 16:38:25 +00:00
parent 48b03c4590
commit ce501afec6

View File

@ -92,20 +92,10 @@ void TLoadPerambulator<FImpl>::execute(void)
auto &perambulator = envGet(MDistil::Perambulator<SpinVector COMMA 6 COMMA sizeof(Real)>, auto &perambulator = envGet(MDistil::Perambulator<SpinVector COMMA 6 COMMA sizeof(Real)>,
getName()); getName());
const std::string &PerambFileName{par().PerambFileName + "." + std::to_string(vm().getTrajectory())};
const std::string &PerambFileName{par().PerambFileName}; std::cout << "reading perambulator from file " << PerambFileName << std::endl;
if( PerambFileName.length() ){
bool bExists = false;
{
std::ifstream f(PerambFileName, std::ios::binary);
if( f.is_open() )
bExists = true;
}
if( bExists ) {
perambulator.ReadBinary(PerambFileName); perambulator.ReadBinary(PerambFileName);
return;
}
}
} }
END_MODULE_NAMESPACE END_MODULE_NAMESPACE