Opened 8 years ago
Last modified 8 years ago
#10841 new Bugs
runtime error boost::numeric:;odeint::
Reported by: | Owned by: | karsten | |
---|---|---|---|
Milestone: | To Be Determined | Component: | odeint |
Version: | Boost 1.56.0 | Severity: | Problem |
Keywords: | odeint-v2, | Cc: | taghia.javad@… |
Description
Dear all,
I encountered a run-time error while using odeint. In a class method this command is executed:
size_t size =boost::numeric::odeint::integrate(model, x, 0.0, 1.0, 0.1);
when x is a VECTOR defined as:
typedef std::vector<double> state_type;
No compile, link errors occur; however, in run-time following window pops up after some iteration of the integrator. It says: vector iterator not incrementable. as shown in figure attached.
By changing vector definition to array definition the problem will be resolved. So the following works when 3 is number of states:
typedef boost::array< double , 3 > state_type;
This problem happens by use of the odeint-v2 commit messaged "fixes #142, fixes boost include issue in bjam" and boost 1.56.0 on Windows 8 64 bits, Visual Studio 2012, platform v110 (equivalent c++11).
Attachments (1)
Change History (2)
by , 8 years ago
comment:1 by , 8 years ago
Can you give a small and complete self contained example. From your description it is not possible to figure out what it happening.
error message snap shot