Skip to main content

DistributedMeshData

Struct DistributedMeshData 

Source
pub struct DistributedMeshData<V, St, CtSt>
where St: Storage<V> + Clone, CtSt: Storage<CellType> + Clone,
{ pub sieve: MeshSieve, pub overlap: Overlap, pub point_owners: Vec<usize>, pub ownership: PointOwnership, pub cell_parts: Vec<usize>, pub coordinates: Option<Coordinates<V, St>>, pub sections: BTreeMap<String, Section<V, St>>, pub mixed_sections: MixedSectionStore, pub labels: Option<LabelSet>, pub cell_types: Option<Section<CellType, CtSt>>, pub discretization: Option<Discretization>, }
Expand description

Result of distributing a mesh plus associated data.

Fields§

§sieve: MeshSieve

Local topology with ghost layers included.

§overlap: Overlap

Overlap graph with resolved remote IDs.

§point_owners: Vec<usize>

Point owners derived from the cell partition.

§ownership: PointOwnership

Ownership metadata for local points, including ghost status.

§cell_parts: Vec<usize>

Cell partition assignment used for distribution.

§coordinates: Option<Coordinates<V, St>>

Optional coordinate section for local points.

§sections: BTreeMap<String, Section<V, St>>

Named local sections for distributed points.

§mixed_sections: MixedSectionStore

Tagged local sections with mixed scalar types.

§labels: Option<LabelSet>

Point labels filtered to the local point set.

§cell_types: Option<Section<CellType, CtSt>>

Optional cell-type section for local points.

§discretization: Option<Discretization>

Optional discretization metadata keyed by regions.

Implementations§

Source§

impl<V, St, CtSt> DistributedMeshData<V, St, CtSt>
where St: Storage<V> + Clone, CtSt: Storage<CellType> + Clone,

Source

pub fn build_global_map_for_section<C>( &self, section: &Section<V, St>, comm: &C, ) -> Result<LocalToGlobalMap, MeshSieveError>
where C: Communicator + Sync,

Build a global DOF map for a specific local section using ownership metadata.

Source

pub fn build_global_section_maps<C>( &self, comm: &C, ) -> Result<BTreeMap<String, LocalToGlobalMap>, MeshSieveError>
where C: Communicator + Sync,

Build global DOF maps for all named sections in this distributed mesh.

Source

pub fn distribute_fields<C>(&mut self, comm: &C) -> Result<(), MeshSieveError>
where C: Communicator + Sync, V: Clone + Default + Send + PartialEq + Pod + 'static,

Update ghost values for all registered sections and labels.

Trait Implementations§

Source§

impl<V: Debug, St, CtSt> Debug for DistributedMeshData<V, St, CtSt>
where St: Storage<V> + Clone + Debug, CtSt: Storage<CellType> + Clone + Debug,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<V, St, CtSt> !Freeze for DistributedMeshData<V, St, CtSt>

§

impl<V, St, CtSt> RefUnwindSafe for DistributedMeshData<V, St, CtSt>

§

impl<V, St, CtSt> Send for DistributedMeshData<V, St, CtSt>
where CtSt: Send, St: Send, V: Send,

§

impl<V, St, CtSt> Sync for DistributedMeshData<V, St, CtSt>
where CtSt: Sync, St: Sync, V: Sync,

§

impl<V, St, CtSt> Unpin for DistributedMeshData<V, St, CtSt>
where CtSt: Unpin, St: Unpin, V: Unpin,

§

impl<V, St, CtSt> UnsafeUnpin for DistributedMeshData<V, St, CtSt>
where CtSt: UnsafeUnpin, St: UnsafeUnpin,

§

impl<V, St, CtSt> UnwindSafe for DistributedMeshData<V, St, CtSt>

Blanket Implementations§

Source§

impl<T> AccumulatePathExt for T

Source§

fn accumulate_path<O, I>(path: I) -> O
where O: Orientation, I: IntoIterator<Item = O>,

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.