Skip to main content

ParallelFunctionSpace

Trait ParallelFunctionSpace 

Source
pub trait ParallelFunctionSpace {
    type ProcessSpace: FunctionSpace;
    type C: Communicator;

    // Required methods
    fn comm(&self) -> &Self::C;
    fn process_space(&self) -> &Self::ProcessSpace;
    fn global_size(&self) -> usize;
}
Expand description

MPI parallel function space.

Required Associated Types§

Source

type ProcessSpace: FunctionSpace

Process space type

Source

type C: Communicator

Communicator

Required Methods§

Source

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

MPI communicator

Source

fn process_space(&self) -> &Self::ProcessSpace

Space on the current process

Source

fn global_size(&self) -> usize

Get the number of DOFs on all processes

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<'a, T: RlstScalar, TMesh: RlstScalar, E: Debug + PartialEq + Eq + Clone + Copy + Hash, G: Mesh<EntityDescriptor = E, T = TMesh>, PG: ParallelMesh<LocalMesh = G>, F: MappedFiniteElement<CellType = E, T = T>, S: FunctionSpace<Mesh = G, EntityDescriptor = E, FiniteElement = F>> ParallelFunctionSpace for ParallelFunctionSpaceImpl<'a, T, TMesh, E, G, PG, F, S>

Source§

type ProcessSpace = ProcessFunctionSpace<S>

Source§

type C = <PG as ParallelMesh>::C