mirror of
https://github.com/paboyle/Grid.git
synced 2025-04-10 14:10:46 +01: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)>,
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user