From 2412f20f51971edb823f7da21b43e52d2555432c Mon Sep 17 00:00:00 2001 From: andy Date: Wed, 26 Sep 2012 12:14:30 +0100 Subject: [PATCH] ENH: derived solutionControl from IOobject so that it can be retrieved from the database --- .../solutionControl/solutionControl/solutionControl.C | 6 ++++++ .../solutionControl/solutionControl/solutionControl.H | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/finiteVolume/cfdTools/general/solutionControl/solutionControl/solutionControl.C b/src/finiteVolume/cfdTools/general/solutionControl/solutionControl/solutionControl.C index 3de1587e7e..601b564c6d 100644 --- a/src/finiteVolume/cfdTools/general/solutionControl/solutionControl/solutionControl.C +++ b/src/finiteVolume/cfdTools/general/solutionControl/solutionControl/solutionControl.C @@ -165,6 +165,12 @@ void Foam::solutionControl::storePrevIterFields() const Foam::solutionControl::solutionControl(fvMesh& mesh, const word& algorithmName) : + IOobject + ( + "solutionControl", + mesh_.time().timeName(), + mesh_ + ), mesh_(mesh), residualControl_(), algorithmName_(algorithmName), diff --git a/src/finiteVolume/cfdTools/general/solutionControl/solutionControl/solutionControl.H b/src/finiteVolume/cfdTools/general/solutionControl/solutionControl/solutionControl.H index 45970fc325..e701813d47 100644 --- a/src/finiteVolume/cfdTools/general/solutionControl/solutionControl/solutionControl.H +++ b/src/finiteVolume/cfdTools/general/solutionControl/solutionControl/solutionControl.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -44,6 +44,8 @@ namespace Foam \*---------------------------------------------------------------------------*/ class solutionControl +: + public IOobject { public: