ENH: derived solutionControl from IOobject so that it can be retrieved from the database

This commit is contained in:
andy
2012-09-26 12:14:30 +01:00
parent f1deb4445e
commit 2412f20f51
2 changed files with 9 additions and 1 deletions

View File

@ -165,6 +165,12 @@ void Foam::solutionControl::storePrevIterFields() const
Foam::solutionControl::solutionControl(fvMesh& mesh, const word& algorithmName) Foam::solutionControl::solutionControl(fvMesh& mesh, const word& algorithmName)
: :
IOobject
(
"solutionControl",
mesh_.time().timeName(),
mesh_
),
mesh_(mesh), mesh_(mesh),
residualControl_(), residualControl_(),
algorithmName_(algorithmName), algorithmName_(algorithmName),

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -44,6 +44,8 @@ namespace Foam
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
class solutionControl class solutionControl
:
public IOobject
{ {
public: public: