Commit 350fe1a2 authored by Kutalmış Berçin's avatar Kutalmış Berçin Committed by Andrew Heather
Browse files

ENH: add query function isAdjustTimeStep()

parent 74ec9428
......@@ -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
Supports Markdown
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