git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1505934 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Luc Maisonobe 2013-07-23 08:38:03 +00:00
parent 24f20dc6e3
commit e79f61951b
2 changed files with 6 additions and 6 deletions

View File

@ -20,7 +20,7 @@ import org.apache.commons.math3.util.IterationEvent;
import org.apache.commons.math3.exception.MathUnsupportedOperationException;
/**
* This is the base class for all events occuring during the iterations of a
* This is the base class for all events occurring during the iterations of a
* {@link IterativeLinearSolver}.
*
* @version $Id$

View File

@ -327,7 +327,7 @@ public abstract class AbstractIntegrator implements FirstOrderIntegrator {
// search for next events that may occur during the step
final int orderingSign = interpolator.isForward() ? +1 : -1;
SortedSet<EventState> occuringEvents = new TreeSet<EventState>(new Comparator<EventState>() {
SortedSet<EventState> occurringEvents = new TreeSet<EventState>(new Comparator<EventState>() {
/** {@inheritDoc} */
public int compare(EventState es0, EventState es1) {
@ -339,14 +339,14 @@ public abstract class AbstractIntegrator implements FirstOrderIntegrator {
for (final EventState state : eventsStates) {
if (state.evaluateStep(interpolator)) {
// the event occurs during the current step
occuringEvents.add(state);
occurringEvents.add(state);
}
}
while (!occuringEvents.isEmpty()) {
while (!occurringEvents.isEmpty()) {
// handle the chronologically first event
final Iterator<EventState> iterator = occuringEvents.iterator();
final Iterator<EventState> iterator = occurringEvents.iterator();
final EventState currentEvent = iterator.next();
iterator.remove();
@ -405,7 +405,7 @@ public abstract class AbstractIntegrator implements FirstOrderIntegrator {
// check if the same event occurs again in the remaining part of the step
if (currentEvent.evaluateStep(interpolator)) {
// the event occurs during the current step
occuringEvents.add(currentEvent);
occurringEvents.add(currentEvent);
}
}