pub enum OdeError {
Invalid(String),
Newton {
t: f64,
residual: f64,
},
StepTooSmall {
t: f64,
},
MaxSteps {
t_final: f64,
max_steps: usize,
},
}Expand description
Errors raised while building or solving an OdeProblem.
Variants§
Invalid(String)
The problem definition was invalid (e.g. empty initial state).
Newton
The nonlinear solver (Newton) failed to converge within the iteration budget, or the linear solve was singular. Usually a sign that the step size is too large for the current state; the integrator retries with a smaller step before surfacing this error.
Fields
StepTooSmall
The step-size controller drove the step below the smallest representable
increment (e.g. at a discontinuity or a very stiff region), so the
requested t_final cannot be reached.
MaxSteps
The integrator exceeded its maximum step count (a safety rail against runaway step contraction); indicates the problem is far stiffer than the configured method can handle at the requested tolerances.
Trait Implementations§
Source§impl Error for OdeError
impl Error for OdeError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for OdeError
impl RefUnwindSafe for OdeError
impl Send for OdeError
impl Sync for OdeError
impl Unpin for OdeError
impl UnsafeUnpin for OdeError
impl UnwindSafe for OdeError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T, U> Imply<T> for U
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.