Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::VariableSyncInfo Class Reference

Information about the list of shared/ghost entities for a given rank for a synchronization. More...

#include <arcane/impl/DataSynchronizeInfo.h>

Collaboration diagram for Arcane::VariableSyncInfo:

Public Member Functions

 VariableSyncInfo (Int32ConstArrayView share_ids, Int32ConstArrayView ghost_ids, Int32 rank)
 VariableSyncInfo (const VariableSyncInfo &rhs)
Int32 targetRank () const
 Target processor rank.
ConstArrayView< Int32shareIds () const
 localIds() of entities to send to rank targetRank()
ConstArrayView< Int32ghostIds () const
 localIds() of entities to receive from rank targetRank()
Int32 nbShare () const
 Number of shared entities.
Int32 nbGhost () const
 Number of ghost entities.
void changeLocalIds (Int32ConstArrayView old_to_new_ids)
 Updates the information when the localId() of entities changes.

Private Member Functions

void _changeIds (Array< Int32 > &ids, Int32ConstArrayView old_to_new_ids)

Private Attributes

UniqueArray< Int32m_share_ids
 localIds() of entities to send to processor #m_rank
UniqueArray< Int32m_ghost_ids
 localIds() of entities to receive from processor #m_rank
Int32 m_target_rank = A_NULL_RANK
 Target processor rank.

Detailed Description

Information about the list of shared/ghost entities for a given rank for a synchronization.

TODO: Use a single array for all VariableSyncInfo for shared entities and a single array for ghost entities, which will be managed by ItemGroupSynchronizeInfo.

Definition at line 73 of file DataSynchronizeInfo.h.

Constructor & Destructor Documentation

◆ VariableSyncInfo() [1/3]

Arcane::VariableSyncInfo::VariableSyncInfo ( Int32ConstArrayView share_ids,
Int32ConstArrayView ghost_ids,
Int32 rank )

Definition at line 63 of file DataSynchronizeInfo.cc.

◆ VariableSyncInfo() [2/3]

Arcane::VariableSyncInfo::VariableSyncInfo ( const VariableSyncInfo & rhs)

Definition at line 76 of file DataSynchronizeInfo.cc.

◆ VariableSyncInfo() [3/3]

Arcane::VariableSyncInfo::VariableSyncInfo ( )

Definition at line 53 of file DataSynchronizeInfo.cc.

Member Function Documentation

◆ _changeIds()

void Arcane::VariableSyncInfo::_changeIds ( Array< Int32 > & ids,
Int32ConstArrayView old_to_new_ids )
private

Definition at line 90 of file DataSynchronizeInfo.cc.

◆ changeLocalIds()

void Arcane::VariableSyncInfo::changeLocalIds ( Int32ConstArrayView old_to_new_ids)

Updates the information when the localId() of entities changes.

Definition at line 107 of file DataSynchronizeInfo.cc.

References m_ghost_ids, and m_share_ids.

◆ ghostIds()

ConstArrayView< Int32 > Arcane::VariableSyncInfo::ghostIds ( ) const
inline

localIds() of entities to receive from rank targetRank()

Definition at line 89 of file DataSynchronizeInfo.h.

References m_ghost_ids.

Referenced by Arcane::DataSynchronizeBufferInfoList::localIds().

Here is the caller graph for this function:

◆ nbGhost()

Int32 Arcane::VariableSyncInfo::nbGhost ( ) const
inline

Number of ghost entities.

Definition at line 94 of file DataSynchronizeInfo.h.

References m_ghost_ids.

Referenced by Arcane::DataSynchronizeBufferInfoList::nbItem().

Here is the caller graph for this function:

◆ nbShare()

Int32 Arcane::VariableSyncInfo::nbShare ( ) const
inline

Number of shared entities.

Definition at line 92 of file DataSynchronizeInfo.h.

References m_share_ids.

Referenced by Arcane::DataSynchronizeBufferInfoList::nbItem().

Here is the caller graph for this function:

◆ shareIds()

ConstArrayView< Int32 > Arcane::VariableSyncInfo::shareIds ( ) const
inline

localIds() of entities to send to rank targetRank()

Definition at line 87 of file DataSynchronizeInfo.h.

References m_share_ids.

Referenced by Arcane::DataSynchronizeBufferInfoList::localIds().

Here is the caller graph for this function:

◆ targetRank()

Int32 Arcane::VariableSyncInfo::targetRank ( ) const
inline

Target processor rank.

Definition at line 84 of file DataSynchronizeInfo.h.

References m_target_rank.

Member Data Documentation

◆ m_ghost_ids

UniqueArray<Int32> Arcane::VariableSyncInfo::m_ghost_ids
private

localIds() of entities to receive from processor #m_rank

Definition at line 104 of file DataSynchronizeInfo.h.

Referenced by changeLocalIds(), ghostIds(), and nbGhost().

◆ m_share_ids

UniqueArray<Int32> Arcane::VariableSyncInfo::m_share_ids
private

localIds() of entities to send to processor #m_rank

Definition at line 102 of file DataSynchronizeInfo.h.

Referenced by changeLocalIds(), nbShare(), and shareIds().

◆ m_target_rank

Int32 Arcane::VariableSyncInfo::m_target_rank = A_NULL_RANK
private

Target processor rank.

Definition at line 106 of file DataSynchronizeInfo.h.

Referenced by targetRank().


The documentation for this class was generated from the following files: