mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: use readIfPresent instead of found/lookup combination
This commit is contained in:
@ -76,11 +76,9 @@ sixDoFRigidBodyDisplacementPointPatchVectorField
|
||||
rhoInf_ = readScalar(dict.lookup("rhoInf"));
|
||||
}
|
||||
|
||||
if (dict.found("g"))
|
||||
if (dict.readIfPresent("g", g_))
|
||||
{
|
||||
lookupGravity_ = -2;
|
||||
|
||||
g_ = dict.lookup("g");
|
||||
}
|
||||
|
||||
if (!dict.found("value"))
|
||||
|
||||
Reference in New Issue
Block a user