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

This commit is contained in:
Luc Maisonobe 2016-01-06 12:24:24 +01:00
parent c4e2ddf266
commit b21b4c8ded

View File

@ -143,7 +143,7 @@ public abstract class RungeKuttaFieldIntegrator<T extends RealFieldElement<T>>
interpolator.shift(); interpolator.shift();
// first stage // first stage
yDotK[0] = stepStart.getDerivative(); yDotK[0] = equations.getMapper().mapDerivative(stepStart);
// next stages // next stages
for (int k = 1; k < stages; ++k) { for (int k = 1; k < stages; ++k) {