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 2011/10/04 16:14:16 UTC
svn commit: r1178807 -
/commons/proper/math/trunk/src/main/java/org/apache/commons/math/ode/AbstractIntegrator.java
Author: luc
Date: Tue Oct 4 14:14:15 2011
New Revision: 1178807
URL: http://svn.apache.org/viewvc?rev=1178807&view=rev
Log:
Fixed overzealous replacement of equations by expandable ...
Modified:
commons/proper/math/trunk/src/main/java/org/apache/commons/math/ode/AbstractIntegrator.java
Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/ode/AbstractIntegrator.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/ode/AbstractIntegrator.java?rev=1178807&r1=1178806&r2=1178807&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math/ode/AbstractIntegrator.java (original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/ode/AbstractIntegrator.java Tue Oct 4 14:14:15 2011
@@ -76,7 +76,7 @@ public abstract class AbstractIntegrator
/** Counter for number of evaluations. */
private Incrementor evaluations;
- /** Differential expandable to integrate. */
+ /** Differential equations to integrate. */
private transient ExpandableStatefulODE expandable;
/** Build an instance.
@@ -204,7 +204,7 @@ public abstract class AbstractIntegrator
throw new DimensionMismatchException(y.length, equations.getDimension());
}
- // prepare expandable stateful expandable
+ // prepare expandable stateful equations
final ExpandableStatefulODE expandableODE = new ExpandableStatefulODE(equations);
expandableODE.setTime(t0);
expandableODE.setPrimaryState(y0);
@@ -212,23 +212,23 @@ public abstract class AbstractIntegrator
// perform integration
integrate(expandableODE, t);
- // extract results back from the stateful expandable
+ // extract results back from the stateful equations
System.arraycopy(expandableODE.getPrimaryState(), 0, y, 0, y.length);
return expandableODE.getTime();
}
- /** Integrate a set of differential expandable up to the given time.
+ /** Integrate a set of differential equations up to the given time.
* <p>This method solves an Initial Value Problem (IVP).</p>
- * <p>The set of differential expandable is composed of a main set, which
- * can be extended by some sets of secondary expandable. The set of
- * expandable must be already set up with initial time and partial states.
+ * <p>The set of differential equations is composed of a main set, which
+ * can be extended by some sets of secondary equations. The set of
+ * equations must be already set up with initial time and partial states.
* At integration completion, the final time and partial states will be
* available in the same object.</p>
* <p>Since this method stores some internal state variables made
* available in its public interface during integration ({@link
* #getCurrentSignedStepsize()}), it is <em>not</em> thread-safe.</p>
- * @param equations complete set of differential expandable to integrate
+ * @param equations complete set of differential equations to integrate
* @param t target time for the integration
* (can be set to a value smaller than <code>t0</code> for backward integration)
* @throws MathIllegalStateException if the integrator cannot perform integration