pub struct DistributedMeshData<V, St, CtSt>{
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: MeshSieveLocal topology with ghost layers included.
overlap: OverlapOverlap graph with resolved remote IDs.
point_owners: Vec<usize>Point owners derived from the cell partition.
ownership: PointOwnershipOwnership 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: MixedSectionStoreTagged 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>
impl<V, St, CtSt> DistributedMeshData<V, St, CtSt>
Sourcepub fn build_global_map_for_section<C>(
&self,
section: &Section<V, St>,
comm: &C,
) -> Result<LocalToGlobalMap, MeshSieveError>where
C: Communicator + Sync,
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.
Sourcepub fn build_global_section_maps<C>(
&self,
comm: &C,
) -> Result<BTreeMap<String, LocalToGlobalMap>, MeshSieveError>where
C: Communicator + Sync,
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.
Sourcepub fn distribute_fields<C>(&mut self, comm: &C) -> Result<(), MeshSieveError>
pub fn distribute_fields<C>(&mut self, comm: &C) -> Result<(), MeshSieveError>
Update ghost values for all registered sections and labels.