v0.10.0
Public Member Functions | Private Attributes | List of all members
MoFEM::CoreTmp< 0 >::WrapMPIComm Struct Reference

#include <src/interfaces/Core.hpp>

Public Member Functions

 WrapMPIComm (MPI_Comm &comm, MPI_Comm &duplicated_comm)
 
 ~WrapMPIComm ()
 

Private Attributes

MPI_Comm & comm
 
MPI_Comm & duplicatedComm
 

Detailed Description

template<>
struct MoFEM::CoreTmp< 0 >::WrapMPIComm

Definition at line 989 of file Core.hpp.

Constructor & Destructor Documentation

◆ WrapMPIComm()

MoFEM::CoreTmp< 0 >::WrapMPIComm::WrapMPIComm ( MPI_Comm &  comm,
MPI_Comm &  duplicated_comm 
)

Definition at line 990 of file Core.hpp.

991  : comm(comm), duplicatedComm(duplicated_comm) {
992  ierr = PetscCommDuplicate(comm, &duplicated_comm, NULL);
993  CHKERRABORT(comm, ierr);
994  }
static MoFEMErrorCodeGeneric< PetscErrorCode > ierr
Definition: Exceptions.hpp:87

◆ ~WrapMPIComm()

MoFEM::CoreTmp< 0 >::WrapMPIComm::~WrapMPIComm ( )

Definition at line 995 of file Core.hpp.

995  {
996  ierr = PetscCommDestroy(&duplicatedComm);
997  CHKERRABORT(comm, ierr);
998  }
static MoFEMErrorCodeGeneric< PetscErrorCode > ierr
Definition: Exceptions.hpp:87

Member Data Documentation

◆ comm

MPI_Comm& MoFEM::CoreTmp< 0 >::WrapMPIComm::comm
private

Definition at line 1001 of file Core.hpp.

◆ duplicatedComm

MPI_Comm& MoFEM::CoreTmp< 0 >::WrapMPIComm::duplicatedComm
private

Definition at line 1002 of file Core.hpp.


The documentation for this struct was generated from the following file: