Nektar++
Public Member Functions | Private Attributes | List of all members
Nektar::LibUtilities::CommRequestMpi Class Referencefinal

Class for communicator request type. More...

#include <CommMpi.h>

Inheritance diagram for Nektar::LibUtilities::CommRequestMpi:
[legend]

Public Member Functions

 CommRequestMpi (int num)
 Creates an instance of this class. More...
 
 ~CommRequestMpi () final=default
 Default destructor. More...
 
MPI_Request * GetRequest (int i)
 
int & GetNumRequest ()
 
- Public Member Functions inherited from Nektar::LibUtilities::CommRequest
 CommRequest ()=default
 Default constructor. More...
 
virtual ~CommRequest ()=default
 Default destructor. More...
 

Private Attributes

int m_num
 
Array< OneD, MPI_Request > m_request
 

Detailed Description

Class for communicator request type.

Definition at line 59 of file CommMpi.h.

Constructor & Destructor Documentation

◆ CommRequestMpi()

Nektar::LibUtilities::CommRequestMpi::CommRequestMpi ( int  num)
inlineexplicit

Creates an instance of this class.

Definition at line 63 of file CommMpi.h.

63 : m_num(num)
64 {
65 m_request = Array<OneD, MPI_Request>(num, MPI_REQUEST_NULL);
66 }
Array< OneD, MPI_Request > m_request
Definition: CommMpi.h:83

References m_request.

◆ ~CommRequestMpi()

Nektar::LibUtilities::CommRequestMpi::~CommRequestMpi ( )
inlinefinaldefault

Default destructor.

Member Function Documentation

◆ GetNumRequest()

int & Nektar::LibUtilities::CommRequestMpi::GetNumRequest ( )
inline

Definition at line 76 of file CommMpi.h.

77 {
78 return m_num;
79 }

References m_num.

◆ GetRequest()

MPI_Request * Nektar::LibUtilities::CommRequestMpi::GetRequest ( int  i)
inline

Definition at line 71 of file CommMpi.h.

72 {
73 return &m_request[i];
74 }

References m_request.

Member Data Documentation

◆ m_num

int Nektar::LibUtilities::CommRequestMpi::m_num
private

Definition at line 82 of file CommMpi.h.

Referenced by GetNumRequest().

◆ m_request

Array<OneD, MPI_Request> Nektar::LibUtilities::CommRequestMpi::m_request
private

Definition at line 83 of file CommMpi.h.

Referenced by CommRequestMpi(), and GetRequest().