solutionControl classes are now compiling
This commit is contained in:
parent
c2886e89e5
commit
11d0c32d20
7 changed files with 31 additions and 14 deletions
|
@ -24,7 +24,7 @@ License
|
|||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
#include "simpleControl.H"
|
||||
#include "Time.H"
|
||||
#include "foamTime.H"
|
||||
|
||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||
|
||||
|
|
|
@ -81,8 +81,11 @@ void Foam::solutionControl::read(const bool absTolOnly)
|
|||
}
|
||||
else
|
||||
{
|
||||
FatalErrorInFunction
|
||||
<< "Residual data for " << iter().keyword()
|
||||
FatalErrorIn
|
||||
(
|
||||
"void Foam::solutionControl::read"
|
||||
"(const bool absTolOnly)"
|
||||
) << "Residual data for " << iter().keyword()
|
||||
<< " must be specified as a dictionary"
|
||||
<< exit(FatalError);
|
||||
}
|
||||
|
@ -107,8 +110,11 @@ void Foam::solutionControl::read(const bool absTolOnly)
|
|||
}
|
||||
else
|
||||
{
|
||||
FatalErrorInFunction
|
||||
<< "Residual data for " << iter().keyword()
|
||||
FatalErrorIn
|
||||
(
|
||||
"void Foam::solutionControl::read"
|
||||
"(const bool absTolOnly)"
|
||||
) << "Residual data for " << iter().keyword()
|
||||
<< " must be specified as a dictionary"
|
||||
<< exit(FatalError);
|
||||
}
|
||||
|
|
|
@ -33,6 +33,10 @@ Description
|
|||
#define solutionControl_H
|
||||
|
||||
#include "fvMesh.H"
|
||||
#include "surfaceMesh.H"
|
||||
#include "fvsPatchField.H"
|
||||
#include "fvMatrices.H"
|
||||
#include "wordRe.H"
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
|
@ -216,16 +220,16 @@ public:
|
|||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
#include "solutionControlI.H"
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
#ifdef NoRepository
|
||||
#include "solutionControlTemplates.C"
|
||||
#endif
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
#include "solutionControlI.H"
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
#endif
|
||||
|
||||
// ************************************************************************* //
|
||||
|
|
|
@ -34,18 +34,18 @@ void Foam::solutionControl::storePrevIter() const
|
|||
{
|
||||
typedef GeometricField<Type, fvPatchField, volMesh> GeoField;
|
||||
|
||||
HashTable<GeoField*>
|
||||
HashTable<const GeoField*>
|
||||
flds(mesh_.objectRegistry::lookupClass<GeoField>());
|
||||
|
||||
forAllIter(typename HashTable<GeoField*>, flds, iter)
|
||||
forAllIter(typename HashTable<const GeoField*>, flds, iter)
|
||||
{
|
||||
GeoField& fld = *iter();
|
||||
const GeoField& fld = *iter();
|
||||
|
||||
const word& fName = fld.name();
|
||||
|
||||
size_t prevIterField = fName.find("PrevIter");
|
||||
|
||||
if ((prevIterField == word::npos) && mesh_.relaxField(fName))
|
||||
if ((prevIterField == word::npos) && mesh_.solutionDict().relax(fName))
|
||||
{
|
||||
if (debug)
|
||||
{
|
||||
|
|
|
@ -103,6 +103,7 @@ Foam::fvMesh::fvMesh(const IOobject& io)
|
|||
:
|
||||
polyMesh(io),
|
||||
surfaceInterpolation(*this),
|
||||
data(static_cast<const objectRegistry&>(*this)),
|
||||
boundary_(*this, boundaryMesh()),
|
||||
lduPtr_(NULL),
|
||||
curTimeIndex_(time().timeIndex()),
|
||||
|
@ -205,6 +206,7 @@ Foam::fvMesh::fvMesh
|
|||
:
|
||||
polyMesh(io, points, faces, allOwner, allNeighbour, syncPar),
|
||||
surfaceInterpolation(*this),
|
||||
data(static_cast<const objectRegistry&>(*this)),
|
||||
boundary_(*this),
|
||||
lduPtr_(NULL),
|
||||
curTimeIndex_(time().timeIndex()),
|
||||
|
@ -235,6 +237,7 @@ Foam::fvMesh::fvMesh
|
|||
:
|
||||
polyMesh(io, points, faces, cells, syncPar),
|
||||
surfaceInterpolation(*this),
|
||||
data(static_cast<const objectRegistry&>(*this)),
|
||||
boundary_(*this),
|
||||
lduPtr_(NULL),
|
||||
curTimeIndex_(time().timeIndex()),
|
||||
|
@ -282,6 +285,7 @@ Foam::fvMesh::fvMesh
|
|||
syncPar
|
||||
),
|
||||
surfaceInterpolation(*this),
|
||||
data(static_cast<const objectRegistry&>(*this)),
|
||||
boundary_(*this),
|
||||
lduPtr_(NULL),
|
||||
curTimeIndex_(time().timeIndex()),
|
||||
|
|
|
@ -52,6 +52,7 @@ SourceFiles
|
|||
#include "primitiveMesh.H"
|
||||
#include "fvBoundaryMesh.H"
|
||||
#include "surfaceInterpolation.H"
|
||||
#include "data.H"
|
||||
#include "DimensionedField.H"
|
||||
#include "volFieldsFwd.H"
|
||||
#include "surfaceFieldsFwd.H"
|
||||
|
@ -76,7 +77,8 @@ class fvMesh
|
|||
:
|
||||
public polyMesh,
|
||||
public lduMesh,
|
||||
public surfaceInterpolation
|
||||
public surfaceInterpolation,
|
||||
public data
|
||||
{
|
||||
// Private data
|
||||
|
||||
|
|
|
@ -27,6 +27,7 @@ License
|
|||
#include "foamTime.H"
|
||||
#include "demandDrivenData.H"
|
||||
#include "dictionary.H"
|
||||
#include "data.H"
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
|
|
Reference in a new issue