1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-09-20 01:05:38 +01: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)>,
getName());
const std::string &PerambFileName{par().PerambFileName};
if( PerambFileName.length() ){
bool bExists = false;
{
std::ifstream f(PerambFileName, std::ios::binary);
if( f.is_open() )
bExists = true;
}
if( bExists ) {
const std::string &PerambFileName{par().PerambFileName + "." + std::to_string(vm().getTrajectory())};
std::cout << "reading perambulator from file " << PerambFileName << std::endl;
perambulator.ReadBinary(PerambFileName);
return;
}
}
}
END_MODULE_NAMESPACE