Skip to main content

ParallelMesh

Trait ParallelMesh 

Source
pub trait ParallelMesh {
    type T: Scalar;
    type LocalMesh: Mesh<T = Self::T>;
    type C: Communicator;

    // Required methods
    fn comm(&self) -> &Self::C;
    fn local_mesh(&self) -> &Self::LocalMesh;
    fn cell_layout(&self) -> Rc<IndexLayout<'_, Self::C>>;

    // Provided method
    fn global_cell_count(&self) -> usize { ... }
}
Expand description

Definition of an MPI parallel mesh

Required Associated Types§

Source

type T: Scalar

Type of the Mesh

Source

type LocalMesh: Mesh<T = Self::T>

Local mesh type

Source

type C: Communicator

Communicator

Required Methods§

Source

fn comm(&self) -> &Self::C

MPI communicator

Source

fn local_mesh(&self) -> &Self::LocalMesh

Local mesh on the current process

Source

fn cell_layout(&self) -> Rc<IndexLayout<'_, Self::C>>

Return the cell index layout that describes where each global cell lives

Provided Methods§

Source

fn global_cell_count(&self) -> usize

Return the global number of cells

Implementors§

Source§

impl<T: Scalar, C: Communicator, G: Mesh<T = T> + Sync> ParallelMesh for ParallelMeshImpl<'_, C, G>