Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:42:58

0001 /*
0002  [auto_generated]
0003  boost/numeric/odeint/util/odeint_error.hpp
0004 
0005  [begin_description]
0006  Runtime Exceptions thrown by odeint
0007  [end_description]
0008 
0009  Copyright 2015 Mario Mulansky
0010 
0011  Distributed under the Boost Software License, Version 1.0.
0012  (See accompanying file LICENSE_1_0.txt or
0013  copy at http://www.boost.org/LICENSE_1_0.txt)
0014 */
0015 
0016 
0017 #ifndef BOOST_NUMERIC_ODEINT_UTIL_ODEINT_ERROR_HPP_INCLUDED
0018 #define BOOST_NUMERIC_ODEINT_UTIL_ODEINT_ERROR_HPP_INCLUDED
0019 
0020 #include <stdexcept>
0021 #include <string>
0022 
0023 
0024 namespace boost {
0025 namespace numeric {
0026 namespace odeint {
0027 
0028 
0029 /**
0030  * \brief Runtime error thrown by odeint
0031  */
0032 class odeint_error : public std::runtime_error
0033 {
0034 public:
0035     odeint_error(const std::string &s)
0036             : std::runtime_error(s)
0037     { }
0038 };
0039 
0040 
0041 /**
0042  * \brief Runtime error thrown from integrate routines
0043  *
0044  * This Error occures when too many iterations are performed in between two
0045  * observer calls in the integrate routines.
0046  */
0047 class no_progress_error : public odeint_error
0048 {
0049 public:
0050     no_progress_error(const std::string &s)
0051             : odeint_error(s)
0052     { }
0053 };
0054 
0055 
0056 /**
0057  * \brief Runtime error thrown during stepsize adjustment
0058  *
0059  * This Error occures when too many iterations are performed without finding
0060  * an appropriate new step size. This usually indicates non-continuous points
0061  * in the ODE.
0062  */
0063 class step_adjustment_error : public odeint_error
0064 {
0065 public:
0066     step_adjustment_error(const std::string &s)
0067             : odeint_error(s)
0068     { }
0069 };
0070 
0071 }
0072 }
0073 }
0074 
0075 
0076 
0077 #endif // BOOST_NUMERIC_ODEINT_UTIL_ODEINT_ERROR_HPP_INCLUDED