mirror of
				https://github.com/paboyle/Grid.git
				synced 2025-11-03 05:24:32 +00:00 
			
		
		
		
	PerambFileName defaults to object name if empty
This commit is contained in:
		@@ -111,7 +111,11 @@ template <typename FImpl>
 | 
			
		||||
void TLoadPerambulator<FImpl>::execute(void)
 | 
			
		||||
{
 | 
			
		||||
  auto &perambulator = envGet(MDistil::PerambTensor, getName());
 | 
			
		||||
  const std::string sPerambName{par().PerambFileName + "." + std::to_string(vm().getTrajectory())};
 | 
			
		||||
  std::string sPerambName{ par().PerambFileName };
 | 
			
		||||
  if( sPerambName.empty() )
 | 
			
		||||
    sPerambName = getName();
 | 
			
		||||
  sPerambName.append( 1, '.' );
 | 
			
		||||
  sPerambName.append( std::to_string( vm().getTrajectory() ) );
 | 
			
		||||
  perambulator.read(sPerambName.c_str());
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user