Skip to main content

Solver

Trait Solver 

Source
pub trait Solver {
    // Required methods
    fn step(&self, model: &Model, state: &mut State);
    fn step_with_jacobians(
        &self,
        model: &Model,
        state: &mut State,
    ) -> StepJacobians;
}
Expand description

Pluggable solver trait.

Implementations define how to advance the simulation by one timestep.

Required Methods§

Source

fn step(&self, model: &Model, state: &mut State)

Advance state by dt. Reads from state and writes the result back.

Source

fn step_with_jacobians(&self, model: &Model, state: &mut State) -> StepJacobians

Advance state by dt and return step Jacobians.

Implementors§