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/15 15:33:33 UTC

[math] Avoid spurious array copy.

Repository: commons-math
Updated Branches:
  refs/heads/field-ode 96bdfe27f -> 04feb9960


Avoid spurious array copy.

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

Branch: refs/heads/field-ode
Commit: 04feb99603589d6179e93e7687c3a1a3a8a6598b
Parents: 96bdfe2
Author: Luc Maisonobe <lu...@apache.org>
Authored: Sun Nov 15 15:33:21 2015 +0100
Committer: Luc Maisonobe <lu...@apache.org>
Committed: Sun Nov 15 15:33:21 2015 +0100

----------------------------------------------------------------------
 .../commons/math3/ode/nonstiff/RungeKuttaFieldIntegrator.java       | 1 -
 1 file changed, 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-math/blob/04feb996/src/main/java/org/apache/commons/math3/ode/nonstiff/RungeKuttaFieldIntegrator.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math3/ode/nonstiff/RungeKuttaFieldIntegrator.java b/src/main/java/org/apache/commons/math3/ode/nonstiff/RungeKuttaFieldIntegrator.java
index 9bc0bf9..0603d19 100644
--- a/src/main/java/org/apache/commons/math3/ode/nonstiff/RungeKuttaFieldIntegrator.java
+++ b/src/main/java/org/apache/commons/math3/ode/nonstiff/RungeKuttaFieldIntegrator.java
@@ -175,7 +175,6 @@ public abstract class RungeKuttaFieldIntegrator<T extends RealFieldElement<T>>
             // discrete events handling
             interpolator.storeState(stateTmp);
             System.arraycopy(yTmp, 0, y, 0, y0.length);
-            System.arraycopy(yDotK[stages - 1], 0, yDotTmp, 0, y0.length);
             stepStart = acceptStep(interpolator, finalTime);
 
             if (!isLastStep) {