9#include "warpxm/warpxm_config.h"
20 std::array<real, 3> _x;
21 std::shared_ptr<std::string> _physics;
26 _dt = std::numeric_limits<real>::infinity();
28 _physics = std::make_shared<std::string>(
"nothing");
32 : _dt(dt), _physics(physics)
38 std::array<real, 3> x,
39 std::shared_ptr<std::string> physics)
40 : _dt(dt), _x(x), _physics(physics)
48 return a._dt < b._dt ? a : b;
63 const std::array<real, 3>&
getX()
const
73 std::string
str()
const;
Information that constrain the time step.
Definition: timestep_constraint.h:17
const std::array< real, 3 > & getX() const
Definition: timestep_constraint.h:63
TimestepConstraint(real dt, std::array< real, 3 > x, std::shared_ptr< std::string > physics)
Definition: timestep_constraint.h:37
void setDt(const real dt)
Definition: timestep_constraint.h:52
TimestepConstraint()
Definition: timestep_constraint.h:24
real getDt() const
Definition: timestep_constraint.h:58
static const TimestepConstraint & minDt(const TimestepConstraint &a, const TimestepConstraint &b)
Definition: timestep_constraint.h:45
TimestepConstraint(real dt, std::shared_ptr< std::string > physics)
Definition: timestep_constraint.h:31
const std::shared_ptr< std::string > & getPhysics() const
Definition: timestep_constraint.h:68
#define real
Definition: wmoclunstructuredreconstruction.h:11