mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: functionObjects - do not add to list if error on read
This commit is contained in:
@ -701,12 +701,14 @@ bool Foam::functionObjectList::read()
|
||||
"functionObject::" + objPtr->name() + "::read"
|
||||
);
|
||||
|
||||
ok = objPtr->read(dict) && ok;
|
||||
enabled = objPtr->read(dict);
|
||||
ok = enabled && ok;
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
if (!enabled)
|
||||
{
|
||||
// Delete the disabled functionObject
|
||||
// Delete the disabled/invalid(read) functionObject
|
||||
delete objPtr;
|
||||
objPtr = nullptr;
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user