From ce501afec6bd520230907abbd6bf05132418e4ea Mon Sep 17 00:00:00 2001 From: Felix Erben Date: Mon, 25 Mar 2019 16:38:25 +0000 Subject: [PATCH] bugfix --- Hadrons/Modules/MIO/LoadPerambulator.hpp | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/Hadrons/Modules/MIO/LoadPerambulator.hpp b/Hadrons/Modules/MIO/LoadPerambulator.hpp index 4d33706a..c6324a1a 100644 --- a/Hadrons/Modules/MIO/LoadPerambulator.hpp +++ b/Hadrons/Modules/MIO/LoadPerambulator.hpp @@ -92,20 +92,10 @@ void TLoadPerambulator::execute(void) auto &perambulator = envGet(MDistil::Perambulator, 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