Trait eom::TimeStep

source ·
pub trait TimeStep {
    type Time: Scalar + Float;

    // Required methods
    fn get_dt(&self) -> Self::Time;
    fn set_dt(&mut self, dt: Self::Time);
}
Expand description

Interface for set/get time step for integration

Required Associated Types§

source

type Time: Scalar + Float

Required Methods§

source

fn get_dt(&self) -> Self::Time

source

fn set_dt(&mut self, dt: Self::Time)

Implementors§

source§

impl<A: Scalar, F: Explicit<Scalar = A>> TimeStep for Euler<F>

§

type Time = <A as Scalar>::Real

source§

impl<A: Scalar, F: Explicit<Scalar = A>> TimeStep for Heun<F>

§

type Time = <A as Scalar>::Real

source§

impl<A: Scalar, F: Explicit<Scalar = A>> TimeStep for RK4<F>

§

type Time = <A as Scalar>::Real

source§

impl<F: SemiImplicit> TimeStep for DiagRK4<F>

§

type Time = <Diagonal<F> as TimeStep>::Time

source§

impl<F: SemiImplicit> TimeStep for Diagonal<F>

§

type Time = <<F as ModelSpec>::Scalar as Scalar>::Real

source§

impl<TEO: TimeEvolution> TimeStep for NStep<TEO>

§

type Time = <TEO as TimeStep>::Time