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 18725ed3ac
commit d8c5eb43f7
2 changed files with 9 additions and 25 deletions

View File

@ -59,16 +59,12 @@ SourceFiles
#ifndef FUNCTIONOBJECT_H
#define FUNCTIONOBJECT_H
#include "functionObject.H"
#include "fvMeshFunctionObject.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
// Forward declaration of classes
class objectRegistry;
namespace functionObjects
{
@ -78,23 +74,18 @@ namespace functionObjects
class FUNCTIONOBJECT
:
public functionObject
public fvMeshFunctionObject
{
// Private data
//- Refererence to the objectRegistry
const objectRegistry& obr_;
//- word
word wordData_;
// Read from dictionary
//- scalar
scalar scalarData_;
//- word
word wordData_;
//- scalar
scalar scalarData_;
//- label
label labelData_;
//- label
label labelData_;
// Private Member Functions