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:17:06 UTC

[math] The full set of derivatives are needed in Runge-Kutta.

Repository: commons-math
Updated Branches:
  refs/heads/field-ode 5f2459ded -> 96bdfe27f


The full set of derivatives are needed in Runge-Kutta.

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

Branch: refs/heads/field-ode
Commit: 96bdfe27f937dabf2e443a24cd4b9ead39a210cb
Parents: 5f2459d
Author: Luc Maisonobe <lu...@apache.org>
Authored: Sun Nov 15 15:16:54 2015 +0100
Committer: Luc Maisonobe <lu...@apache.org>
Committed: Sun Nov 15 15:16:54 2015 +0100

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


http://git-wip-us.apache.org/repos/asf/commons-math/blob/96bdfe27/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 577687b..9bc0bf9 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
@@ -143,7 +143,7 @@ public abstract class RungeKuttaFieldIntegrator<T extends RealFieldElement<T>>
             interpolator.shift();
 
             // first stage
-            yDotK[0] = stepStart.getDerivative();
+            yDotK[0] = equations.getMapper().mapDerivative(stepStart);
 
             // next stages
             for (int k = 1; k < stages; ++k) {