pub struct AdaptiveSolverConfig {
pub dt_max: f64,
pub max_iter: u8,
pub atol: f64,
pub rtol: f64,
pub save: bool,
pub save_states: bool,
pub state: SolverState,
pub history: SolverStateHistoryVec,
}Fields§
§dt_max: f64max allowable dt
max_iter: u8max number of iterations per time step
atol: f64absolute euclidean error tolerance
rtol: f64relative euclidean error tolerance
save: boolsave iteration history
save_states: boolsave states in iteration history
this is computationally expensive and should be generally false
state: SolverStatesolver state
history: SolverStateHistoryVechistory of solver state
Implementations§
Trait Implementations§
Source§impl AsMut<AdaptiveSolverConfig> for AdaptiveSolverConfig
impl AsMut<AdaptiveSolverConfig> for AdaptiveSolverConfig
Source§fn as_mut(&mut self) -> &mut AdaptiveSolverConfig
fn as_mut(&mut self) -> &mut AdaptiveSolverConfig
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl Clone for AdaptiveSolverConfig
impl Clone for AdaptiveSolverConfig
Source§fn clone(&self) -> AdaptiveSolverConfig
fn clone(&self) -> AdaptiveSolverConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AdaptiveSolverConfig
impl Debug for AdaptiveSolverConfig
Source§impl Default for AdaptiveSolverConfig
impl Default for AdaptiveSolverConfig
Source§impl<'de> Deserialize<'de> for AdaptiveSolverConfig
impl<'de> Deserialize<'de> for AdaptiveSolverConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AdaptiveSolverConfig
impl PartialEq for AdaptiveSolverConfig
Source§impl PartialOrd for AdaptiveSolverConfig
impl PartialOrd for AdaptiveSolverConfig
Source§impl Serialize for AdaptiveSolverConfig
impl Serialize for AdaptiveSolverConfig
impl StructuralPartialEq for AdaptiveSolverConfig
Auto Trait Implementations§
impl Freeze for AdaptiveSolverConfig
impl RefUnwindSafe for AdaptiveSolverConfig
impl Send for AdaptiveSolverConfig
impl Sync for AdaptiveSolverConfig
impl Unpin for AdaptiveSolverConfig
impl UnwindSafe for AdaptiveSolverConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> SerdeAPI for Twhere
T: Serialize + for<'a> Deserialize<'a>,
impl<T> SerdeAPI for Twhere
T: Serialize + for<'a> Deserialize<'a>,
Source§fn to_file(&self, filename: &str) -> Result<(), Error>
fn to_file(&self, filename: &str) -> Result<(), Error>
Save current data structure to file. Method adaptively calls serialization methods
dependent on the suffix of the file given as str. Read more
Source§fn from_file(filename: &str) -> Result<Self, Error>where
for<'de> Self: Sized + Deserialize<'de>,
fn from_file(filename: &str) -> Result<Self, Error>where
for<'de> Self: Sized + Deserialize<'de>,
Read from file and return instantiated struct. Method adaptively calls deserialization
methods dependent on the suffix of the file name given as str.
Function returns a dynamic Error Result if it fails. Read more