mirror of
https://github.com/paboyle/Grid.git
synced 2024-11-10 07:55:35 +00:00
bugfix
This commit is contained in:
parent
48b03c4590
commit
ce501afec6
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user