etc/codeTemplates/functionObject: Updated and simplified using fvMeshFunctionObject as the base-class

This commit is contained in:
Henry Weller
2016-05-16 22:16:22 +01:00
parent 83bae2efd3
commit 1c992eba9c
2 changed files with 9 additions and 25 deletions

View File

@ -49,14 +49,7 @@ Foam::functionObjects::FUNCTIONOBJECT::FUNCTIONOBJECT
const dictionary& dict
)
:
functionObject(name),
obr_
(
runTime.lookupObject<objectRegistry>
(
dict.lookupOrDefault("region", polyMesh::defaultRegion)
)
),
fvMeshFunctionObject(name, runTime, dict),
wordData_(dict.lookupOrDefault<word>("wordData", "defaultWord")),
scalarData_(readScalar(dict.lookup("scalarData"))),
labelData_(readLabel(dict.lookup("labelData")))