PDESolver

Trait PDESolver 

Source
pub trait PDESolver: Send + Sync {
    // Required methods
    fn solve(&self, pde: &Pde) -> PDEResult;
    fn can_solve(&self, pde_type: PdeType) -> bool;
    fn priority(&self) -> u8;
    fn name(&self) -> &'static str;
    fn description(&self) -> &'static str;
}
Expand description

Trait for PDE solvers that can be registered

Required Methods§

Source

fn solve(&self, pde: &Pde) -> PDEResult

Attempts to solve the given PDE

Source

fn can_solve(&self, pde_type: PdeType) -> bool

Returns true if this solver can handle the given PDE type

Source

fn priority(&self) -> u8

Priority for this solver (higher = try first)

Source

fn name(&self) -> &'static str

Solver name for diagnostics

Source

fn description(&self) -> &'static str

Solver description

Implementors§