ENH: make coeffs dictionaries optional for surfaceFeatureExtract

This commit is contained in:
Mark Olesen
2017-05-10 14:11:28 +02:00
parent 0e7630feca
commit 034ddfa78f
8 changed files with 46 additions and 51 deletions

View File

@ -52,7 +52,7 @@ Foam::surfaceFeaturesExtraction::extractFromNone::extractFromNone
:
method()
{
const dictionary& coeffDict = dict.subOrEmptyDict("extractFromNoneCoeffs");
const dictionary& coeffDict = dict.optionalSubDict("noneCoeffs");
coeffDict.readIfPresent("includedAngle", includedAngle_);
coeffDict.readIfPresent("geometricTestOnly", geometricTestOnly_);