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

Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Class failed_step_checker

boost::numeric::odeint::failed_step_checker — A class for performing overflow checks on the failed step count in step size adjustments.

Synopsis

// In header: <boost/numeric/odeint/integrate/max_step_checker.hpp>


class failed_step_checker : public boost::numeric::odeint::max_step_checker {
public:
  // construct/copy/destruct
  failed_step_checker(const int = 500);

  // public member functions
  void operator()(void);
  void reset();
};

Description

Used internally within the dense output stepper and integrate routines.

failed_step_checker public construct/copy/destruct

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

failed_step_checker public member functions

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

PrevUpHomeNext