Package org.apache.commons.math3.ode
Class MultistepFieldIntegrator.FieldNordsieckInitializer
- java.lang.Object
-
- org.apache.commons.math3.ode.MultistepFieldIntegrator.FieldNordsieckInitializer
-
- All Implemented Interfaces:
FieldStepHandler<T>
- Enclosing class:
- MultistepFieldIntegrator<T extends RealFieldElement<T>>
private class MultistepFieldIntegrator.FieldNordsieckInitializer extends java.lang.Object implements FieldStepHandler<T>
Specialized step handler storing the first step.
-
-
Field Summary
Fields Modifier and Type Field Description private int
count
Steps counter.private FieldEquationsMapper<T>
mapper
Equation mapper.private FieldODEStateAndDerivative<T>
savedStart
Saved start.private T[]
t
First steps times.private T[][]
y
First steps states.private T[][]
yDot
First steps derivatives.
-
Constructor Summary
Constructors Constructor Description FieldNordsieckInitializer(FieldEquationsMapper<T> mapper, int nbStartPoints)
Simple constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handleStep(FieldStepInterpolator<T> interpolator, boolean isLast)
Handle the last accepted stepvoid
init(FieldODEStateAndDerivative<T> initialState, T finalTime)
Initialize step handler at the start of an ODE integration.
-
-
-
Field Detail
-
mapper
private final FieldEquationsMapper<T extends RealFieldElement<T>> mapper
Equation mapper.
-
count
private int count
Steps counter.
-
savedStart
private FieldODEStateAndDerivative<T extends RealFieldElement<T>> savedStart
Saved start.
-
t
private final T extends RealFieldElement<T>[] t
First steps times.
-
y
private final T extends RealFieldElement<T>[][] y
First steps states.
-
yDot
private final T extends RealFieldElement<T>[][] yDot
First steps derivatives.
-
-
Constructor Detail
-
FieldNordsieckInitializer
FieldNordsieckInitializer(FieldEquationsMapper<T> mapper, int nbStartPoints)
Simple constructor.- Parameters:
mapper
- equation mappernbStartPoints
- number of start points (including the initial point)
-
-
Method Detail
-
handleStep
public void handleStep(FieldStepInterpolator<T> interpolator, boolean isLast) throws MaxCountExceededException
Handle the last accepted step- Specified by:
handleStep
in interfaceFieldStepHandler<T extends RealFieldElement<T>>
- Parameters:
interpolator
- interpolator for the last accepted step. For efficiency purposes, the various integrators reuse the same object on each call, so if the instance wants to keep it across all calls (for example to provide at the end of the integration a continuous model valid throughout the integration range, as theContinuousOutputModel
class does), it should build a local copy using the clone method of the interpolator and store this copy. Keeping only a reference to the interpolator and reusing it will result in unpredictable behavior (potentially crashing the application).isLast
- true if the step is the last one- Throws:
MaxCountExceededException
- if the interpolator throws one because the number of functions evaluations is exceeded
-
init
public void init(FieldODEStateAndDerivative<T> initialState, T finalTime)
Initialize step handler at the start of an ODE integration.This method is called once at the start of the integration. It may be used by the step handler to initialize some internal data if needed.
- Specified by:
init
in interfaceFieldStepHandler<T extends RealFieldElement<T>>
- Parameters:
initialState
- initial time, state vector and derivativefinalTime
- target time for the integration
-
-