pub struct FieldSet { /* private fields */ }Expand description
Störmer-Verlet triple-buffer for w, u, and v.
Implementations§
Source§impl FieldSet
impl FieldSet
pub fn new(nx: usize, ny: usize) -> Self
pub fn w(&self) -> &Array2<f64>
pub fn w_prev(&self) -> &Array2<f64>
pub fn u(&self) -> &Array2<f64>
pub fn u_prev(&self) -> &Array2<f64>
pub fn v(&self) -> &Array2<f64>
pub fn v_prev(&self) -> &Array2<f64>
pub fn w_mut(&mut self) -> &mut Array2<f64>
pub fn u_mut(&mut self) -> &mut Array2<f64>
pub fn v_mut(&mut self) -> &mut Array2<f64>
Sourcepub fn split_bufs(&mut self) -> SplitBufs<'_>
pub fn split_bufs(&mut self) -> SplitBufs<'_>
Safety: current, previous, and next are distinct indices.
pub fn advance(&mut self)
pub fn to_checkpoint(&self) -> FieldSetCheckpoint
pub fn restore_checkpoint( &mut self, checkpoint: &FieldSetCheckpoint, ) -> Result<(), CheckpointError>
Auto Trait Implementations§
impl Freeze for FieldSet
impl RefUnwindSafe for FieldSet
impl Send for FieldSet
impl Sync for FieldSet
impl Unpin for FieldSet
impl UnsafeUnpin for FieldSet
impl UnwindSafe for FieldSet
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