mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Devirtualised functions which should not be overridden and so than some functions can be inlined for efficiency.
This commit is contained in:
@ -72,10 +72,8 @@ public:
|
|||||||
TimeState();
|
TimeState();
|
||||||
|
|
||||||
|
|
||||||
// Destructor
|
//- Destructor
|
||||||
|
virtual ~TimeState();
|
||||||
//- Virtual destructor
|
|
||||||
virtual ~TimeState();
|
|
||||||
|
|
||||||
|
|
||||||
// Member functions
|
// Member functions
|
||||||
@ -89,22 +87,34 @@ public:
|
|||||||
virtual scalar timeToUserTime(const scalar t) const;
|
virtual scalar timeToUserTime(const scalar t) const;
|
||||||
|
|
||||||
//- Return current time value
|
//- Return current time value
|
||||||
virtual scalar timeOutputValue() const;
|
scalar timeOutputValue() const;
|
||||||
|
|
||||||
//- Return current time index
|
//- 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
|
//- Return time step
|
||||||
virtual dimensionedScalar deltaT() const;
|
dimensionedScalar deltaT() const;
|
||||||
|
|
||||||
//- Return old time step
|
//- Return old time step
|
||||||
virtual dimensionedScalar deltaT0() const;
|
dimensionedScalar deltaT0() const;
|
||||||
|
|
||||||
|
|
||||||
// Check
|
// Check
|
||||||
|
|
||||||
//- Return true if this is an output time
|
//- Return true if this is an output time
|
||||||
virtual bool outputTime() const;
|
bool outputTime() const;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user