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§
Sourcefn step(&self, model: &Model, state: &mut State)
fn step(&self, model: &Model, state: &mut State)
Advance state by dt. Reads from state and writes the result back.
Sourcefn step_with_jacobians(&self, model: &Model, state: &mut State) -> StepJacobians
fn step_with_jacobians(&self, model: &Model, state: &mut State) -> StepJacobians
Advance state by dt and return step Jacobians.