Class IntegratorParams

Class Documentation

class IntegratorParams

Tolerances, iteration limits, and optional early-termination predicate shared by all Integrator subclasses.

Configured by dynamics models via Integrator::SetParams (e.g. NumericalOrbitDynamics::SetIntegratorParams) to control adaptive step-size integrators (IRKF/RKF45, PD45) and to allow a propagation to stop early when a user-defined condition on the state is met.

Public Functions

IntegratorParams() = default
inline IntegratorParams(int max_iter, double abstol, double reltol)
inline IntegratorParams(int max_iterm, double abstol, double reltol, std::function<bool(Real, const VecX&)> terminate_if)
void CheckIntegratorParams()

Validate that max_iter, abstol, and reltol are positive.

Called by every IntegratorParams constructor; throws (via LUPNT_CHECK) if the parameters are invalid.

Public Members

int max_iter = 20
double abstol = 1e-6
double reltol = 1e-6
std::function<bool(Real, const VecX&)> terminate_if = nullptr