Gromacs  2026.0-dev-20250123-1eb81f7
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions
gmx::DomainPairComm Class Reference

#include <gromacs/domdec/domainpaircomm.h>

Description

Setup for communication between pairs of domains, both backward and forward along the DD grid.

This object is a holder a DomainCommBackward and DomainCommForward object. Both objects communicate along the same DD-grid displacement vector but with opposite direction.

Public Member Functions

 DomainPairComm (int backwardRank, int forwardRank, int zone, const IVec &domainShift, PbcType pbcType, bool commOverPbc, IVec pbcCoordinateShift, MPI_Comm mpiCommAll)
 Constructor. More...
 
DomainCommBackwardbackward ()
 Returns the object for communicating backward along the DD grid.
 
const DomainCommBackwardbackward () const
 Returns the object for communicating backward along the DD grid.
 
DomainCommForwardforward ()
 Returns the object for communicating forward along the DD grid.
 
const DomainCommForwardforward () const
 Returns the object for communicating forward along the DD grid.
 

Constructor & Destructor Documentation

gmx::DomainPairComm::DomainPairComm ( int  backwardRank,
int  forwardRank,
int  zone,
const IVec domainShift,
PbcType  pbcType,
bool  commOverPbc,
IVec  pbcCoordinateShift,
MPI_Comm  mpiCommAll 
)

Constructor.

Parameters
[in]backwardRankThe MPI rank we communicate with in backward direction
[in]forwardRankThe MPI rank we communicate with in forward direction
[in]zoneThe domain decomposition zone this pair of domains belongs to
[in]domainShiftThe shift >=0 in domain indices between the two domains
[in]pbcTypeThe type of PBC
[in]commOverPbcWhether we are communicating backward over a periodic boundary
[in]pbcCoordinateShiftThe PBC coordinate shift, 0 or 1 for each dimension
[in]mpiCommAllMPI communicator for all PP ranks

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