Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

Class max_step_checker
PrevUpHomeNext

Class max_step_checker

boost::numeric::odeint::max_step_checker — A class for performing overflow checks on the step count in integrate functions.

Synopsis

Description

Provide an instance of this class to integrate functions if you want to throw a runtime error if too many steps are performed without progress during the integrate routine.

max_step_checker public construct/copy/destruct

  1. max_step_checker(const int max_steps = 500);
    Construct the max_step_checker. max_steps is the maximal number of iterations allowed before runtime_error is thrown.

max_step_checker public member functions

  1. void reset();
    Resets the max_step_checker by setting the internal counter to 0.
  2. void operator()(void);
    Increases the counter and performs the iteration check.

PrevUpHomeNext