pub struct IntegratorConfig {
pub method: IntegrationMethod,
pub dt: f64,
pub max_steps: usize,
pub tolerance: f64,
}Expand description
Configuration for the ODE integrator.
Fields§
§method: IntegrationMethodIntegration scheme.
dt: f64Time step.
max_steps: usizeMaximum number of steps.
tolerance: f64Error tolerance.
Implementations§
Source§impl IntegratorConfig
impl IntegratorConfig
Sourcepub fn new(method: IntegrationMethod, dt: f64) -> IntegratorConfig
pub fn new(method: IntegrationMethod, dt: f64) -> IntegratorConfig
Creates a config with default max_steps and tolerance.
Trait Implementations§
Source§impl Clone for IntegratorConfig
impl Clone for IntegratorConfig
Source§fn clone(&self) -> IntegratorConfig
fn clone(&self) -> IntegratorConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for IntegratorConfig
impl RefUnwindSafe for IntegratorConfig
impl Send for IntegratorConfig
impl Sync for IntegratorConfig
impl Unpin for IntegratorConfig
impl UnsafeUnpin for IntegratorConfig
impl UnwindSafe for IntegratorConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more