SPH
|
Helper class storing a minimal value of time step and corresponding statistics. More...
Public Member Functions | |
MinimalStepTls (const Float UNUSED(power)) | |
INLINE void | add (const Float step, const T v, const T dv, const Size idx) |
Add a time step to the set, given also value, derivative and particle index. More... | |
INLINE void | add (const MinimalStepTls &other) |
Add a time step computed by other TLS. More... | |
INLINE Size | isDefined () const |
INLINE Optional< Float > | getStep () const |
Return the computed time step. More... | |
INLINE void | saveStats (Statistics &stats) const |
Save auxiliary statistics. More... | |
Public Attributes | |
Float | minStep = INFTY |
T | value = T(0._f) |
T | derivative = T(0._f) |
Size | particleIdx = 0 |
Helper class storing a minimal value of time step and corresponding statistics.
Definition at line 48 of file TimeStepCriterion.cpp.
|
inline |
Definition at line 54 of file TimeStepCriterion.cpp.
|
inline |
Add a time step to the set, given also value, derivative and particle index.
Definition at line 57 of file TimeStepCriterion.cpp.
|
inline |
Add a time step computed by other TLS.
Definition at line 67 of file TimeStepCriterion.cpp.
|
inline |
Return the computed time step.
Definition at line 76 of file TimeStepCriterion.cpp.
|
inline |
Definition at line 71 of file TimeStepCriterion.cpp.
|
inline |
Save auxiliary statistics.
Definition at line 81 of file TimeStepCriterion.cpp.
T MinimalStepTls< T >::derivative = T(0._f) |
Definition at line 51 of file TimeStepCriterion.cpp.
Float MinimalStepTls< T >::minStep = INFTY |
Definition at line 49 of file TimeStepCriterion.cpp.
Size MinimalStepTls< T >::particleIdx = 0 |
Definition at line 52 of file TimeStepCriterion.cpp.
T MinimalStepTls< T >::value = T(0._f) |
Definition at line 50 of file TimeStepCriterion.cpp.