mirror of
https://github.com/paboyle/Grid.git
synced 2025-04-09 21:50:45 +01:00
PerambFileName defaults to object name if empty
This commit is contained in:
parent
519ce19128
commit
decab587a0
@ -111,7 +111,11 @@ template <typename FImpl>
|
|||||||
void TLoadPerambulator<FImpl>::execute(void)
|
void TLoadPerambulator<FImpl>::execute(void)
|
||||||
{
|
{
|
||||||
auto &perambulator = envGet(MDistil::PerambTensor, getName());
|
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());
|
perambulator.read(sPerambName.c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user