functionObjects: Simply functionObjects requiring access to the fvMesh using fvMeshFunctionObject

This commit is contained in:
Henry Weller
2016-05-16 16:21:06 +01:00
parent e7fc198592
commit a44857b4f2
31 changed files with 174 additions and 425 deletions

View File

@ -131,10 +131,10 @@ bool Foam::functionObjects::div::execute(const bool postProcess)
bool Foam::functionObjects::div::write(const bool postProcess)
{
if (obr_.foundObject<regIOobject>(resultName_))
if (mesh_.foundObject<regIOobject>(resultName_))
{
const regIOobject& field =
obr_.lookupObject<regIOobject>(resultName_);
mesh_.lookupObject<regIOobject>(resultName_);
Info<< type() << " " << name() << " output:" << nl
<< " writing field " << field.name() << nl << endl;