mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
ENH: stringOps - getVariable function - make use of the allowEmpty flag
This commit is contained in:
@ -308,7 +308,7 @@ Foam::string Foam::stringOps::getVariable
|
||||
}
|
||||
}
|
||||
|
||||
if (value.empty())
|
||||
if (!allowEmpty && value.empty())
|
||||
{
|
||||
FatalIOErrorInFunction
|
||||
(
|
||||
@ -317,7 +317,8 @@ Foam::string Foam::stringOps::getVariable
|
||||
<< name << exit(FatalIOError);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
if (!allowEmpty && value.empty())
|
||||
{
|
||||
FatalIOErrorInFunction
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user