ENH: more consistent use of good() or direct testing instead valid()

This commit is contained in:
Mark Olesen
2023-07-19 13:47:19 +02:00
parent 76efcba4c7
commit 945e3e41b1
72 changed files with 139 additions and 148 deletions

View File

@ -109,7 +109,7 @@ bool Foam::functionObjects::runTimeControls::minMaxCondition::apply()
const word valueType =
state_.objectResultType(functionObjectName_, fieldName);
if (valueType == word::null)
if (valueType.empty())
{
WarningInFunction
<< "Unable to find entry " << fieldName