REGRESSION: registry filtering not using regIOobject name (fixes #3023)

- was using the derived object name (could be something like "region0")
  instead of the actual registered name (ie, the regIOobject name)
This commit is contained in:
Mark Olesen 2023-11-07 10:20:14 +01:00
parent ad2389a37d
commit df8efcaf62

View File

@ -209,7 +209,7 @@ Foam::objectRegistry::objectsTypeImpl
( (
ptr ptr
&& (!strict || Foam::isType<BaseType>(*obj)) && (!strict || Foam::isType<BaseType>(*obj))
&& matchName(ptr->name()) && matchName(obj->name())
) )
{ {
result.set(count, const_cast<BaseType*>(ptr)); result.set(count, const_cast<BaseType*>(ptr));