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§
Sourcetype ParallelGrid<'a, C: Communicator + 'a>: ParallelGrid<C = C>
type ParallelGrid<'a, C: Communicator + 'a>: ParallelGrid<C = C>
Parallel grid type when distrubuted
Required Methods§
Sourcefn distribute<'a, C: Communicator>(
&self,
comm: &'a C,
partitioner: GraphPartitioner,
) -> Self::ParallelGrid<'a, C>
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.
impl<T: Scalar + Equivalence, E: MappedFiniteElement<CellType = ReferenceCellType, T = T>> DistributableGrid for MixedGrid<T, E>
Available on crate feature
mpi only.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.
impl<T: Scalar + Equivalence, E: MappedFiniteElement<CellType = ReferenceCellType, T = T>> DistributableGrid for SingleElementGrid<T, E>
Available on crate feature
mpi only.