ENH: add query function isAdjustTimeStep()
This commit is contained in:
parent
74ec94281e
commit
350fe1a2d8
@ -950,6 +950,12 @@ bool Foam::Time::stopAt(const stopAtControls stopCtrl) const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
bool Foam::Time::isAdjustTimeStep() const
|
||||||
|
{
|
||||||
|
return controlDict_.lookupOrDefault("adjustTimeStep", false) ? true : false;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void Foam::Time::setTime(const Time& t)
|
void Foam::Time::setTime(const Time& t)
|
||||||
{
|
{
|
||||||
value() = t.value();
|
value() = t.value();
|
||||||
|
@ -422,6 +422,9 @@ public:
|
|||||||
//- Return the stop control information
|
//- Return the stop control information
|
||||||
virtual stopAtControls stopAt() const;
|
virtual stopAtControls stopAt() const;
|
||||||
|
|
||||||
|
//- Return true if adjustTimeStep is true
|
||||||
|
virtual bool isAdjustTimeStep() const;
|
||||||
|
|
||||||
//- Return the list of function objects
|
//- Return the list of function objects
|
||||||
const functionObjectList& functionObjects() const
|
const functionObjectList& functionObjects() const
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user