mirror of
				https://github.com/paboyle/Grid.git
				synced 2025-11-04 05:54:32 +00:00 
			
		
		
		
	bugfix
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user