codedMixedFvPatchField, codedFixedValuePointPatchField: Updated and simplified using the new CodedBase class

reducing code duplication and maintenance overhead.
This commit is contained in:
Henry Weller
2020-02-07 00:05:27 +00:00
parent 6a2ecb4d04
commit a728a69c59
18 changed files with 175 additions and 499 deletions

View File

@ -154,28 +154,28 @@ Foam::functionObject& Foam::codedFunctionObject::redirectFunctionObject() const
bool Foam::codedFunctionObject::execute()
{
updateLibrary(codeName());
updateLibrary();
return redirectFunctionObject().execute();
}
bool Foam::codedFunctionObject::write()
{
updateLibrary(codeName());
updateLibrary();
return redirectFunctionObject().write();
}
bool Foam::codedFunctionObject::end()
{
updateLibrary(codeName());
updateLibrary();
return redirectFunctionObject().end();
}
bool Foam::codedFunctionObject::read(const dictionary& dict)
{
updateLibrary(codeName());
updateLibrary();
return redirectFunctionObject().read(dict);
}