Commit 371ec731 authored by Kutalmis Bercin's avatar Kutalmis Bercin
Browse files

ENH: add query function isAdjustTimeStep()

parent 0d72096e
......@@ -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)
{
value() = t.value();
......
......@@ -422,6 +422,9 @@ public:
//- Return the stop control information
virtual stopAtControls stopAt() const;
//- Return true if adjustTimeStep is true
virtual bool isAdjustTimeStep() const;
//- Return the list of function objects
const functionObjectList& functionObjects() const
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment