Commit 70ccff68 authored by Henry Weller's avatar Henry Weller
Browse files

functionObjects::surfaceInterpolateFields: Derive from fvMeshFunctionObject

parent 131c0eeb
......@@ -54,22 +54,9 @@ Foam::functionObjects::surfaceInterpolateFields::surfaceInterpolateFields
const dictionary& dict
)
:
functionObject(name),
obr_
(
runTime.lookupObject<objectRegistry>
(
dict.lookupOrDefault("region", polyMesh::defaultRegion)
)
),
fvMeshFunctionObject(name, runTime, dict),
fieldSet_()
{
if (!isA<fvMesh>(obr_))
{
FatalErrorInFunction
<< "objectRegistry is not an fvMesh" << exit(FatalError);
}
read(dict);
}
......
......@@ -58,7 +58,7 @@ Description
SeeAlso
Foam::functionObject
Foam::functionObjects::fvMeshFunctionObject
Foam::functionObjects::timeControl
SourceFiles
......@@ -69,7 +69,7 @@ SourceFiles
#ifndef functionObjects_surfaceInterpolateFields_H
#define functionObjects_surfaceInterpolateFields_H
#include "functionObject.H"
#include "fvMeshFunctionObject.H"
#include "surfaceFieldsFwd.H"
#include "Tuple2.H"
......@@ -92,15 +92,12 @@ namespace functionObjects
class surfaceInterpolateFields
:
public functionObject
public fvMeshFunctionObject
{
protected:
// Protected data
//- Reference to the objectRegistry
const objectRegistry& obr_;
//- Fields to process
List<Tuple2<word, word>> fieldSet_;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment