OpenLB 1.7
Loading...
Searching...
No Matches
Public Member Functions | List of all members
olb::MPI_Group_Wrapper Class Reference

#include <mpiGroup.h>

+ Collaboration diagram for olb::MPI_Group_Wrapper:

Public Member Functions

 MPI_Group_Wrapper ()
 
 ~MPI_Group_Wrapper ()
 
MPI_Comm & getComm ()
 

Detailed Description

Definition at line 34 of file mpiGroup.h.

Constructor & Destructor Documentation

◆ MPI_Group_Wrapper()

olb::MPI_Group_Wrapper::MPI_Group_Wrapper ( )

Definition at line 36 of file mpiGroup.hh.

37{
38 if (MPI_Comm_dup(MPI_COMM_WORLD, &_commGroup) != MPI_SUCCESS) {
39 throw std::runtime_error("Unable to duplicate MPI communicator");
40 }
41}

◆ ~MPI_Group_Wrapper()

olb::MPI_Group_Wrapper::~MPI_Group_Wrapper ( )

Definition at line 43 of file mpiGroup.hh.

44{
45 MPI_Comm_free(&_commGroup);
46}

Member Function Documentation

◆ getComm()

MPI_Comm & olb::MPI_Group_Wrapper::getComm ( )

Definition at line 48 of file mpiGroup.hh.

48 {
49 return _commGroup;
50}

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