DistributableGrid

Trait DistributableGrid 

Source
pub trait DistributableGrid {
    type ParallelGrid<'a, C: Communicator + 'a>: ParallelGrid<C = C>;

    // Required method
    fn distribute<'a, C: Communicator>(
        &self,
        comm: &'a C,
        partitioner: GraphPartitioner,
    ) -> Self::ParallelGrid<'a, C>;
}
Expand description

A grid that can be be distributed across processes

Required Associated Types§

Source

type ParallelGrid<'a, C: Communicator + 'a>: ParallelGrid<C = C>

Parallel grid type when distrubuted

Required Methods§

Source

fn distribute<'a, C: Communicator>( &self, comm: &'a C, partitioner: GraphPartitioner, ) -> Self::ParallelGrid<'a, C>

Distribute this grid in parallel

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T: Scalar + Equivalence, E: MappedFiniteElement<CellType = ReferenceCellType, T = T>> DistributableGrid for MixedGrid<T, E>

Available on crate feature mpi only.
Source§

type ParallelGrid<'a, C: Communicator + 'a> = ParallelGridImpl<'a, C, MixedGrid<T, CiarletElement<T, IdentityMap, T>>>

Source§

impl<T: Scalar + Equivalence, E: MappedFiniteElement<CellType = ReferenceCellType, T = T>> DistributableGrid for SingleElementGrid<T, E>

Available on crate feature mpi only.
Source§

type ParallelGrid<'a, C: Communicator + 'a> = ParallelGridImpl<'a, C, SingleElementGrid<T, CiarletElement<T, IdentityMap, T>>>