pub struct CartesianTile {
pub rank: usize,
pub pz_idx: usize,
pub pr_idx: usize,
pub pz: usize,
pub pr: usize,
pub global_nz: usize,
pub global_nr: usize,
pub halo: usize,
pub z_start: usize,
pub z_end: usize,
pub r_start: usize,
pub r_end: usize,
}Expand description
2D Cartesian tile descriptor — one per rank in a (pz × pr) topology.
Fields§
§rank: usizeLinear rank index (0 .. pz*pr - 1).
pz_idx: usizeProcess grid index along Z (row).
pr_idx: usizeProcess grid index along R (column).
pz: usizeTotal process-grid dimensions.
pr: usize§global_nz: usizeGlobal grid dimensions.
global_nr: usize§halo: usizeHalo width (same on all faces).
z_start: usizeOwned Z range [z_start, z_end) in global indexing.
z_end: usize§r_start: usizeOwned R range [r_start, r_end) in global indexing.
r_end: usizeImplementations§
Source§impl CartesianTile
impl CartesianTile
Sourcepub fn core_z_offset(&self) -> usize
pub fn core_z_offset(&self) -> usize
Offset of the first owned row within the padded local array.
Sourcepub fn core_r_offset(&self) -> usize
pub fn core_r_offset(&self) -> usize
Offset of the first owned column within the padded local array.
pub fn has_neighbor_top(&self) -> bool
pub fn has_neighbor_bottom(&self) -> bool
pub fn has_neighbor_left(&self) -> bool
pub fn has_neighbor_right(&self) -> bool
Trait Implementations§
Source§impl Clone for CartesianTile
impl Clone for CartesianTile
Source§fn clone(&self) -> CartesianTile
fn clone(&self) -> CartesianTile
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 moreSource§impl Debug for CartesianTile
impl Debug for CartesianTile
Source§impl PartialEq for CartesianTile
impl PartialEq for CartesianTile
impl Eq for CartesianTile
impl StructuralPartialEq for CartesianTile
Auto Trait Implementations§
impl Freeze for CartesianTile
impl RefUnwindSafe for CartesianTile
impl Send for CartesianTile
impl Sync for CartesianTile
impl Unpin for CartesianTile
impl UnwindSafe for CartesianTile
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more