define recurrenceBase as objectRegistry

This commit is contained in:
asanaz
2021-04-26 17:52:11 +02:00
parent d583e5c4df
commit 55de145ab9
2 changed files with 36 additions and 0 deletions

View File

@ -37,6 +37,18 @@ recBase::recBase
const fvMesh& mesh
)
:
regIOobject
(
IOobject
(
"recurrenceBase",
mesh.time().timeName(),
mesh,
IOobject::NO_READ,
IOobject::NO_WRITE,
true
)
),
mesh_(mesh),
recProperties_
(
@ -83,6 +95,7 @@ recBase::recBase
),
couplingSubStep_(recProperties_.lookupOrDefault<label>("couplingSubStep",0))
{
recModel_ -> readFieldSeries();
if (!recStatAnalysis_->suppressMatrixAndPath())
{
@ -103,6 +116,18 @@ recBase::recBase
const fvMesh& mesh,const word recDictName_
)
:
regIOobject
(
IOobject
(
"recurrenceBase",
mesh.time().timeName(),
mesh,
IOobject::NO_READ,
IOobject::NO_WRITE,
true
)
),
mesh_(mesh),
recProperties_
(
@ -159,6 +184,8 @@ recBase::recBase
recModel_ -> writeRecPath();
}
// * * * * * * * * * * * * * * * * Destructors * * * * * * * * * * * * * * //
recBase::~recBase()
{}

View File

@ -46,6 +46,8 @@ class recStatAnalysis;
\*---------------------------------------------------------------------------*/
class recBase
:
public regIOobject
{
protected:
@ -65,6 +67,7 @@ protected:
// in case of substepping: couple passive quantity at this substep
label couplingSubStep_;
public:
// Constructors
@ -99,6 +102,12 @@ public:
label couplingSubStep() const;
// Dummy function for regIOobject
bool writeData(Ostream&) const
{
return true;
}
};
}