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/12/09 17:01:17 UTC
[20/21] [math] Removed unneeded field.
Removed unneeded field.
Project: http://git-wip-us.apache.org/repos/asf/commons-math/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-math/commit/4edbcc7f
Tree: http://git-wip-us.apache.org/repos/asf/commons-math/tree/4edbcc7f
Diff: http://git-wip-us.apache.org/repos/asf/commons-math/diff/4edbcc7f
Branch: refs/heads/field-ode
Commit: 4edbcc7f2e1e5d21ebefbba6f0d258b07ece73c5
Parents: 35e2da2
Author: Luc Maisonobe <lu...@apache.org>
Authored: Wed Dec 9 16:42:28 2015 +0100
Committer: Luc Maisonobe <lu...@apache.org>
Committed: Wed Dec 9 16:42:28 2015 +0100
----------------------------------------------------------------------
.../org/apache/commons/math3/ode/AbstractFieldIntegrator.java | 4 ----
1 file changed, 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/commons-math/blob/4edbcc7f/src/main/java/org/apache/commons/math3/ode/AbstractFieldIntegrator.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math3/ode/AbstractFieldIntegrator.java b/src/main/java/org/apache/commons/math3/ode/AbstractFieldIntegrator.java
index b39ed3b..1368c8d 100644
--- a/src/main/java/org/apache/commons/math3/ode/AbstractFieldIntegrator.java
+++ b/src/main/java/org/apache/commons/math3/ode/AbstractFieldIntegrator.java
@@ -67,9 +67,6 @@ public abstract class AbstractFieldIntegrator<T extends RealFieldElement<T>> imp
/** Indicator for last step. */
protected boolean isLastStep;
- /** Indicator that a state or derivative reset was triggered by some event. */
- protected boolean resetOccurred;
-
/** Field to which the time and state vector elements belong. */
private final Field<T> field;
@@ -348,7 +345,6 @@ public abstract class AbstractFieldIntegrator<T extends RealFieldElement<T>> imp
// invalidate the derivatives, we need to recompute them
final T[] y = equations.getMapper().mapState(newState);
final T[] yDot = computeDerivatives(newState.getTime(), y);
- resetOccurred = true;
return equations.getMapper().mapStateAndDerivative(newState.getTime(), y, yDot);
}
}