Nektar++
Loading...
Searching...
No Matches
Public Attributes | List of all members
Nektar::LibUtilities::detail::CrystalStep Struct Reference

Crystal-router routing decision for one bisection step. More...

#include <Transport.hpp>

Public Attributes

int lo
 Lower bound (inclusive) of the current group.
 
int hi
 Upper bound (inclusive) of the current group.
 
int mid
 Split point: low half is [lo, mid].
 
int lowSize
 Number of ranks in the low half, mid - lo + 1.
 
int highSize
 Number of ranks in the high half, hi - mid.
 
bool inLow
 Whether the querying rank is in the low half.
 
int partner
 Rank to exchange with, or -1 if unpaired extra.
 
int forwardTo
 One-way forward target (valid iff partner == -1).
 
int recvForwardFrom
 Rank we must receive a one-way forward from, or -1.
 

Detailed Description

Crystal-router routing decision for one bisection step.

This is the single source of truth for who this rank should communicate with in the recursive-bisection hypercube route. Group [lo, hi] splits into low = [lo, mid] and high = [mid+1, hi]. Equal halves pair directly; an odd split leaves one unpaired rank in the larger half that forwards its cross-group messages one-way (forwardTo) to the first rank of the other half. The mirror side of that forward is recvForwardFrom.

Definition at line 240 of file Transport.hpp.

Member Data Documentation

◆ forwardTo

int Nektar::LibUtilities::detail::CrystalStep::forwardTo

One-way forward target (valid iff partner == -1).

Definition at line 257 of file Transport.hpp.

Referenced by Nektar::LibUtilities::detail::CrystalPlanStep(), and Nektar::LibUtilities::CrystalRouterTransport::Route().

◆ hi

int Nektar::LibUtilities::detail::CrystalStep::hi

Upper bound (inclusive) of the current group.

Definition at line 245 of file Transport.hpp.

Referenced by Nektar::LibUtilities::detail::CrystalPlanStep().

◆ highSize

int Nektar::LibUtilities::detail::CrystalStep::highSize

Number of ranks in the high half, hi - mid.

Definition at line 251 of file Transport.hpp.

Referenced by Nektar::LibUtilities::detail::CrystalPlanStep().

◆ inLow

bool Nektar::LibUtilities::detail::CrystalStep::inLow

◆ lo

int Nektar::LibUtilities::detail::CrystalStep::lo

Lower bound (inclusive) of the current group.

Definition at line 243 of file Transport.hpp.

Referenced by Nektar::LibUtilities::detail::CrystalPlanStep().

◆ lowSize

int Nektar::LibUtilities::detail::CrystalStep::lowSize

Number of ranks in the low half, mid - lo + 1.

Definition at line 249 of file Transport.hpp.

Referenced by Nektar::LibUtilities::detail::CrystalPlanStep().

◆ mid

int Nektar::LibUtilities::detail::CrystalStep::mid

◆ partner

int Nektar::LibUtilities::detail::CrystalStep::partner

Rank to exchange with, or -1 if unpaired extra.

Definition at line 255 of file Transport.hpp.

Referenced by Nektar::LibUtilities::detail::CrystalPlanStep(), and Nektar::LibUtilities::CrystalRouterTransport::Route().

◆ recvForwardFrom

int Nektar::LibUtilities::detail::CrystalStep::recvForwardFrom

Rank we must receive a one-way forward from, or -1.

Definition at line 259 of file Transport.hpp.

Referenced by Nektar::LibUtilities::detail::CrystalPlanStep(), and Nektar::LibUtilities::CrystalRouterTransport::Route().