ENH: objectRegistry - allow recurse into time db

This commit is contained in:
Andrew Heather 2024-10-29 13:15:34 +00:00
parent bba45b3022
commit 59c74e53ff
2 changed files with 2 additions and 2 deletions

View File

@ -519,7 +519,7 @@ const Foam::regIOobject* Foam::objectRegistry::cfindIOobject
{
return iter.val();
}
else if (recursive && this->parentNotTime())
else if (recursive && !this->isTimeDb())
{
return parent_.cfindIOobject(name, recursive);
}

View File

@ -620,7 +620,7 @@ const Type& Foam::objectRegistry::lookupObject
<< ", found a " << (*iter)->type() << nl
<< exit(FatalError);
}
else if (recursive && this->parentNotTime())
else if (recursive && !this->isTimeDb())
{
return parent_.lookupObject<Type>(name, recursive);
}