diff --git a/src/main/java/org/apache/commons/math/ode/AbstractIntegrator.java b/src/main/java/org/apache/commons/math/ode/AbstractIntegrator.java index 8f315e334..e09a92206 100644 --- a/src/main/java/org/apache/commons/math/ode/AbstractIntegrator.java +++ b/src/main/java/org/apache/commons/math/ode/AbstractIntegrator.java @@ -318,7 +318,7 @@ public abstract class AbstractIntegrator implements FirstOrderIntegrator { // trigger the event interpolator.setInterpolatedTime(eventT); - final double[] eventY = interpolator.getInterpolatedState(); + final double[] eventY = interpolator.getInterpolatedState().clone(); currentEvent.stepAccepted(eventT, eventY); isLastStep = currentEvent.stop(); diff --git a/src/site/xdoc/changes.xml b/src/site/xdoc/changes.xml index b54cdaffa..a12d6d1a1 100644 --- a/src/site/xdoc/changes.xml +++ b/src/site/xdoc/changes.xml @@ -52,6 +52,10 @@ The type attribute can be add,update,fix,remove. If the output is not quite correct, check for invisible trailing spaces! --> + + Fixed a bad interaction between step handlers and event handlers in + ODE integrators. + Added array constructor and getter for Vector2D and Vector3D.