AdaptiveStepper
Defined in: mod.rs:110
pub struct AdaptiveStepper\<'a, S: [DynamicalSystem](../../traits/dynamicalsystem/)\> { pub dt_min: f64, // ...}Stateful adaptive stepper that encapsulates FSAL k1/dt management.
Created via DormandPrince::stepper. Callers repeatedly call
advance_to(AdaptiveStepper::advance_to) to advance to successive
target times (e.g. output interval boundaries), without needing to
manage k1 reuse or step-size adaptation themselves.
Fields
Section titled “Fields”dt_min
Section titled “dt_min”dt_min: f64
Minimum step size below which integration fails. Can be overridden after construction to match the total integration interval.
Methods
Section titled “Methods”advance_to()
Section titled “advance_to()”fn advance_to<F, E, B>(&mut self, t_target: f64, callback: F, event_check: E) -> [Result<AdvanceOutcome<B>, IntegrationError>](https://doc.rust-lang.org/std/result/enum.Result.html) where F: FnMut(f64, &
::State), E: [Fn(f64, &::State) -> ControlFlow<B>](https://doc.rust-lang.org/std/ops/function/trait.Fn.html)
Advance adaptively to t_target.
- Each accepted step calls
callback(t, &state). - If
event_checkreturnsBreak(reason), returnsEvent { reason }. - On success returns
Reachedwith internal state updated tot_target.
state()
Section titled “state()”fn state(&self) -> &
::State
Current state.
fn t(&self) -> f64
Current time.
fn dt(&self) -> f64
Current adaptive step size.
into_state()
Section titled “into_state()”fn into_state(self) ->
::State
Consume the stepper and return the final state.