Added forgotten result dispatch in Gragg-Bulirsch-Stoer integrator.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1175410 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Luc Maisonobe 2011-09-25 15:05:53 +00:00
parent b7c5cd5ff7
commit 4247a40093
1 changed files with 4 additions and 0 deletions

View File

@ -940,6 +940,10 @@ public class GraggBulirschStoerIntegrator extends AdaptiveStepsizeIntegrator {
} while (!isLastStep);
// dispatch result between main and additional states
System.arraycopy(y, 0, z, 0, z.length);
equations.setCurrentAdditionalState(y);
final double stopTime = stepStart;
resetInternalState();
return stopTime;