20 TimeInfo(
double t,
double t_step,
size_t c = 0)
21 : time_(std::make_pair(t, 0.0)), dt_(std::make_pair(t_step, 0.0)), cycle_(c)
26 double time()
const {
return time_.first + dt_.first; }
29 double dt()
const {
return dt_.first; }
32 size_t cycle()
const {
return cycle_; }
35 std::pair<double, double> time_;
36 std::pair<double, double> dt_;
44 template <
typename... T>
46 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
double dt() const
accessor for dt
size_t cycle() const
accessor for cycle
double time() const
accessor for the current time
TimeInfo(double t, double t_step, size_t c=0)
constructor