pub struct DistributedMeshIO {
pub rank: usize,
pub n_ranks: usize,
pub local_nodes: Vec<[f64; 3]>,
pub ghost_nodes: Vec<[f64; 3]>,
pub local_global_ids: Vec<u64>,
pub ghost_global_ids: Vec<u64>,
pub elements: Vec<Vec<usize>>,
}Expand description
I/O for a distributed mesh partition.
Fields§
§rank: usizeRank index.
n_ranks: usizeTotal number of ranks.
local_nodes: Vec<[f64; 3]>Local node positions.
ghost_nodes: Vec<[f64; 3]>Ghost node positions (copies from neighbor ranks).
local_global_ids: Vec<u64>Global IDs of local nodes.
ghost_global_ids: Vec<u64>Global IDs of ghost nodes.
elements: Vec<Vec<usize>>Connectivity (local element node indices).
Implementations§
Source§impl DistributedMeshIO
impl DistributedMeshIO
Sourcepub fn add_local_node(&mut self, pos: [f64; 3], global_id: u64)
pub fn add_local_node(&mut self, pos: [f64; 3], global_id: u64)
Add a local node.
Sourcepub fn add_ghost_node(&mut self, pos: [f64; 3], global_id: u64)
pub fn add_ghost_node(&mut self, pos: [f64; 3], global_id: u64)
Add a ghost node.
Sourcepub fn add_element(&mut self, nodes: Vec<usize>)
pub fn add_element(&mut self, nodes: Vec<usize>)
Add an element (connectivity).
Sourcepub fn total_nodes(&self) -> usize
pub fn total_nodes(&self) -> usize
Total local + ghost nodes.
Trait Implementations§
Source§impl Clone for DistributedMeshIO
impl Clone for DistributedMeshIO
Source§fn clone(&self) -> DistributedMeshIO
fn clone(&self) -> DistributedMeshIO
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DistributedMeshIO
impl RefUnwindSafe for DistributedMeshIO
impl Send for DistributedMeshIO
impl Sync for DistributedMeshIO
impl Unpin for DistributedMeshIO
impl UnsafeUnpin for DistributedMeshIO
impl UnwindSafe for DistributedMeshIO
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.