pub enum TimeStep {
Courant(f64),
Fixed(f64),
}Expand description
How the time step is chosen.
Variants§
Courant(f64)
dt = S · dt_max with Courant number S in (0, 1], see
courant_limit.
Fixed(f64)
A fixed dt [s]; rejected if it exceeds courant_limit.
Implementations§
Trait Implementations§
impl Copy for TimeStep
impl StructuralPartialEq for TimeStep
Auto Trait Implementations§
impl Freeze for TimeStep
impl RefUnwindSafe for TimeStep
impl Send for TimeStep
impl Sync for TimeStep
impl Unpin for TimeStep
impl UnsafeUnpin for TimeStep
impl UnwindSafe for TimeStep
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