ENH: solutionControl - made dict() function virtual

This commit is contained in:
Andrew Heather
2019-04-17 09:11:39 +01:00
parent e26e9e755a
commit 5f7b62c5e4
3 changed files with 9 additions and 7 deletions

View File

@ -279,4 +279,12 @@ Foam::solutionControl::solutionControl(fvMesh& mesh, const word& algorithmName)
{}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
const Foam::dictionary Foam::solutionControl::dict() const
{
return mesh_.solutionDict().subOrEmptyDict(algorithmName_);
}
// ************************************************************************* //

View File

@ -205,7 +205,7 @@ public:
// Access
//- Return the solution dictionary
inline const dictionary dict() const;
virtual const dictionary dict() const;
//- Current corrector loop index
inline label corr() const;

View File

@ -27,12 +27,6 @@ License
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
inline const Foam::dictionary Foam::solutionControl::dict() const
{
return mesh_.solutionDict().subOrEmptyDict(algorithmName_);
}
inline Foam::label Foam::solutionControl::corr() const
{
return corr_;