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:
@ -522,11 +522,9 @@ Foam::labelList Foam::meshRefinement::markFacesOnProblemCells
|
||||
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
// Collapse checking parameters
|
||||
scalar volFraction = -1;
|
||||
if (motionDict.found("minVolCollapseRatio"))
|
||||
{
|
||||
volFraction = readScalar(motionDict.lookup("minVolCollapseRatio"));
|
||||
}
|
||||
const scalar volFraction =
|
||||
motionDict.lookupOrDefault<scalar>("minVolCollapseRatio", -1);
|
||||
|
||||
const bool checkCollapse = (volFraction > 0);
|
||||
scalar minArea = -1;
|
||||
scalar maxNonOrtho = -1;
|
||||
|
||||
Reference in New Issue
Block a user