28 : time_(std::make_pair(t, 0.0)), dt_(std::make_pair(t_step, 0.0)), cycle_(c), mode_(
mode)
33 double time()
const {
return time_.first + dt_.first; }
36 double dt()
const {
return dt_.first; }
39 size_t cycle()
const {
return cycle_; }
48 std::pair<double, double> time_;
49 std::pair<double, double> dt_;
58 template <
typename... T>
60 static constexpr
int n =
sizeof...(T);
Accelerator functionality.
a struct that is used in the physics modules to clarify which template arguments are user-controlled ...
static constexpr int n
how many parameters were specified
struct storing time and timestep information
bool isCycleZeroEvaluation() const
true when evaluating the startup acceleration solve.
double dt() const
accessor for dt
size_t cycle() const
accessor for cycle
TimeInfo(double t, double t_step, size_t c=0, EvaluationMode mode=EvaluationMode::Regular)
constructor
EvaluationMode
Evaluation mode for the current step.
@ CycleZero
Initialization or cycle zero step.
@ Regular
Normal evaluation step.
double time() const
accessor for the current time
EvaluationMode mode() const
accessor for residual evaluation mode.