pub trait ErrorCtrlwhere
    Self: Copy + Send + Sync,{
    // Required method
    fn estimate<N: DimName>(
        error_est: &OVector<f64, N>,
        candidate: &OVector<f64, N>,
        cur_state: &OVector<f64, N>
    ) -> f64
       where DefaultAllocator: Allocator<f64, N>;
}
Expand description

The Error Control trait manages how a propagator computes the error in the current step.

Required Methods§

source

fn estimate<N: DimName>( error_est: &OVector<f64, N>, candidate: &OVector<f64, N>, cur_state: &OVector<f64, N> ) -> f64where DefaultAllocator: Allocator<f64, N>,

Computes the actual error of the current step.

The error_est is the estimated error computed from the difference in the two stages of of the RK propagator. The candidate variable is the candidate state, and cur_state is the current state. This function must return the error.

Implementors§