commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From l..@apache.org
Subject svn commit: r1175410 - /commons/proper/math/trunk/src/main/java/org/apache/commons/math/ode/nonstiff/GraggBulirschStoerIntegrator.java
Date Sun, 25 Sep 2011 15:05:54 GMT
Author: luc
Date: Sun Sep 25 15:05:53 2011
New Revision: 1175410

URL: http://svn.apache.org/viewvc?rev=1175410&view=rev
Log:
Added forgotten result dispatch in Gragg-Bulirsch-Stoer integrator.

Modified:
    commons/proper/math/trunk/src/main/java/org/apache/commons/math/ode/nonstiff/GraggBulirschStoerIntegrator.java

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/ode/nonstiff/GraggBulirschStoerIntegrator.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/ode/nonstiff/GraggBulirschStoerIntegrator.java?rev=1175410&r1=1175409&r2=1175410&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math/ode/nonstiff/GraggBulirschStoerIntegrator.java
(original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/ode/nonstiff/GraggBulirschStoerIntegrator.java
Sun Sep 25 15:05:53 2011
@@ -940,6 +940,10 @@ public class GraggBulirschStoerIntegrato
 
     } 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;



Mime
View raw message