move isLast
argument in step handler handleStep
method to a separate method
#146
Labels
isLast
argument in step handler handleStep
method to a separate method
#146
The
ODEStepHandler
(and its field counterpart) declare two methods:void init(ODEStateAndDerivative initialState, double finalTime)
void handleStep(ODEStateInterpolator interpolator, boolean isLast)
The
isLast
parameter in thehandleStep
method is set tofalse
throughout integration except atlast step, where it is set to
true
.For both simplification and symmetry with respect to the
init
method, this parameter should be removed from thehandleStep
signature and a separatevoid finish(ODEStateAndDerivative finalState)
should be set up, with a default implementation doing nothing.The text was updated successfully, but these errors were encountered: