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: f64
max allowable dt
max_iter: u8
max number of iterations per time step
atol: f64
absolute euclidean error tolerance
rtol: f64
relative euclidean error tolerance
save: bool
save iteration history
save_states: bool
save states in iteration history
this is computationally expensive and should be generally false
state: SolverState
solver state
history: SolverStateHistoryVec
history 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§fn default() -> AdaptiveSolverConfig
fn default() -> AdaptiveSolverConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AdaptiveSolverConfig
impl<'de> Deserialize<'de> for AdaptiveSolverConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AdaptiveSolverConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AdaptiveSolverConfig, <__D as Deserializer<'de>>::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
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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
Self: Sized + for<'de> Deserialize<'de>,
fn from_file(filename: &str) -> Result<Self, Error>where
Self: Sized + for<'de> 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