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

Parallel reading. More...

#include <arcane/std/internal/ParallelDataReader.h>

Collaboration diagram for Arcane::ParallelDataReader:

Classes

class  Impl
 Parallel reading. More...

Public Member Functions

 ParallelDataReader (IParallelMng *pm)
 ParallelDataReader (const ParallelDataReader &rhs)=delete
Array< Int64 > & writtenUniqueIds ()
Array< Int64 > & wantedUniqueIds ()
void sort ()
void getSortedValues (IData *written_data, IData *data)

Private Attributes

Implm_p

Detailed Description

Parallel reading.

An instance of this class is associated with a mesh group.

To use it, each rank of IParallelMng must specify:

  • the list of uids it wants, to be filled in wantedUniqueIds()
  • the list of uids managed by this rank, sorted in ascending order, to be filled in writtenUniqueIds(). Once this is done, the sort() method must be called to calculate the information needed for sending and receiving values.

The instance is then usable for all variables that rely on this group, and getSortedValues() must be called to retrieve the values for a variable.

Definition at line 46 of file ParallelDataReader.h.

Constructor & Destructor Documentation

◆ ParallelDataReader()

Arcane::ParallelDataReader::ParallelDataReader ( IParallelMng * pm)
explicit

Definition at line 100 of file ParallelDataReader.cc.

◆ ~ParallelDataReader()

Arcane::ParallelDataReader::~ParallelDataReader ( )

Definition at line 106 of file ParallelDataReader.cc.

Member Function Documentation

◆ getSortedValues()

void Arcane::ParallelDataReader::getSortedValues ( IData * written_data,
IData * data )

Definition at line 127 of file ParallelDataReader.cc.

◆ sort()

void Arcane::ParallelDataReader::sort ( )

Definition at line 122 of file ParallelDataReader.cc.

◆ wantedUniqueIds()

Array< Int64 > & Arcane::ParallelDataReader::wantedUniqueIds ( )

Definition at line 117 of file ParallelDataReader.cc.

◆ writtenUniqueIds()

Array< Int64 > & Arcane::ParallelDataReader::writtenUniqueIds ( )

Definition at line 112 of file ParallelDataReader.cc.

Member Data Documentation

◆ m_p

Impl* Arcane::ParallelDataReader::m_p
private

Definition at line 65 of file ParallelDataReader.h.


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