You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by lu...@apache.org on 2015/11/29 20:32:24 UTC

[math] The step interpolator should refer to the integrator array.

Repository: commons-math
Updated Branches:
  refs/heads/field-ode e6c84480c -> 685b5ca91


The step interpolator should refer to the integrator array.

This behavior will be changed later on to get immutable objects.
For now, we still rely on arrays being shared between the integrator and
the interpolator.

Project: http://git-wip-us.apache.org/repos/asf/commons-math/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-math/commit/685b5ca9
Tree: http://git-wip-us.apache.org/repos/asf/commons-math/tree/685b5ca9
Diff: http://git-wip-us.apache.org/repos/asf/commons-math/diff/685b5ca9

Branch: refs/heads/field-ode
Commit: 685b5ca912dcd9d823ce07f5f4a65de9aaf18b3f
Parents: e6c8448
Author: Luc Maisonobe <lu...@apache.org>
Authored: Sun Nov 29 20:32:07 2015 +0100
Committer: Luc Maisonobe <lu...@apache.org>
Committed: Sun Nov 29 20:32:07 2015 +0100

----------------------------------------------------------------------
 .../commons/math3/ode/sampling/AbstractFieldStepInterpolator.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-math/blob/685b5ca9/src/main/java/org/apache/commons/math3/ode/sampling/AbstractFieldStepInterpolator.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math3/ode/sampling/AbstractFieldStepInterpolator.java b/src/main/java/org/apache/commons/math3/ode/sampling/AbstractFieldStepInterpolator.java
index 6692222..b450a77 100644
--- a/src/main/java/org/apache/commons/math3/ode/sampling/AbstractFieldStepInterpolator.java
+++ b/src/main/java/org/apache/commons/math3/ode/sampling/AbstractFieldStepInterpolator.java
@@ -79,7 +79,7 @@ public abstract class AbstractFieldStepInterpolator<T extends RealFieldElement<T
         softPreviousState   = null;
         softCurrentState    = null;
         h                   = null;
-        currentState        = y.clone();
+        currentState        = y;
         finalized           = false;
         this.forward        = isForward;
         this.mapper         = equationsMapper;