Commit 32716830 authored by henry's avatar henry
Browse files

Devirtualised functions which should not be overridden and so than some...

Devirtualised functions which should not be overridden and so than some functions can be inlined for efficiency.
parent 41b0812c
......@@ -72,10 +72,8 @@ public:
TimeState();
// Destructor
//- Virtual destructor
virtual ~TimeState();
//- Destructor
virtual ~TimeState();
// Member functions
......@@ -89,22 +87,34 @@ public:
virtual scalar timeToUserTime(const scalar t) const;
//- Return current time value
virtual scalar timeOutputValue() const;
scalar timeOutputValue() const;
//- Return current time index
virtual label timeIndex() const;
label timeIndex() const;
//- Return time step value
inline scalar deltaTValue() const
{
return deltaT_;
}
//- Return old time step value
inline scalar deltaT0Value() const
{
return deltaT0_;
}
//- Return time step
virtual dimensionedScalar deltaT() const;
dimensionedScalar deltaT() const;
//- Return old time step
virtual dimensionedScalar deltaT0() const;
dimensionedScalar deltaT0() const;
// Check
//- Return true if this is an output time
virtual bool outputTime() const;
bool outputTime() 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