v0.9.1
Public Member Functions | Private Attributes | List of all members
MoFEM::Core::WrapMPIComm Struct Reference

Public Member Functions

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

Private Attributes

MPI_Comm & comm
 
MPI_Comm & duplicatedComm
 

Detailed Description

Definition at line 868 of file Core.hpp.

Constructor & Destructor Documentation

◆ WrapMPIComm()

MoFEM::Core::WrapMPIComm::WrapMPIComm ( MPI_Comm &  comm,
MPI_Comm &  duplicated_comm 
)

Definition at line 869 of file Core.hpp.

870  : comm(comm), duplicatedComm(duplicated_comm) {
871  ierr = PetscCommDuplicate(comm, &duplicated_comm, NULL);
872  CHKERRABORT(comm, ierr);
873  }
MPI_Comm & duplicatedComm
Definition: Core.hpp:881

◆ ~WrapMPIComm()

MoFEM::Core::WrapMPIComm::~WrapMPIComm ( )

Definition at line 874 of file Core.hpp.

874  {
875  ierr = PetscCommDestroy(&duplicatedComm);
876  CHKERRABORT(comm, ierr);
877  }
MPI_Comm & duplicatedComm
Definition: Core.hpp:881

Member Data Documentation

◆ comm

MPI_Comm& MoFEM::Core::WrapMPIComm::comm
private

Definition at line 880 of file Core.hpp.

◆ duplicatedComm

MPI_Comm& MoFEM::Core::WrapMPIComm::duplicatedComm
private

Definition at line 881 of file Core.hpp.


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