pub trait ParallelGrid {
type T: Scalar;
type LocalGrid: Grid<T = Self::T>;
type C: Communicator;
// Required methods
fn comm(&self) -> &Self::C;
fn local_grid(&self) -> &Self::LocalGrid;
fn cell_layout(&self) -> Rc<IndexLayout<'_, Self::C>>;
// Provided method
fn global_cell_count(&self) -> usize { ... }
}Expand description
Definition of an MPI parallel grid
Required Associated Types§
Required Methods§
Sourcefn local_grid(&self) -> &Self::LocalGrid
fn local_grid(&self) -> &Self::LocalGrid
Local grid on the current process
Sourcefn cell_layout(&self) -> Rc<IndexLayout<'_, Self::C>>
fn cell_layout(&self) -> Rc<IndexLayout<'_, Self::C>>
Return the cell index layout that describes where each global cell lives
Provided Methods§
Sourcefn global_cell_count(&self) -> usize
fn global_cell_count(&self) -> usize
Return the global number of cells