deal.II version GIT relicensing-2173-gae8fc9d14b 2024-11-24 06:40:00+00:00
|
#include <deal.II/base/mpi.h>
Public Member Functions | |
DuplicatedCommunicator (const MPI_Comm communicator) | |
DuplicatedCommunicator (const DuplicatedCommunicator &)=delete | |
~DuplicatedCommunicator () | |
MPI_Comm | operator* () const |
DuplicatedCommunicator & | operator= (const DuplicatedCommunicator &)=delete |
Private Attributes | |
MPI_Comm | comm |
Helper class to automatically duplicate and free an MPI communicator.
This class duplicates the communicator given in the constructor using duplicate_communicator() and frees it automatically when this object gets destroyed by calling free_communicator(). You can access the wrapped communicator using operator*.
This class exists to easily allow duplicating communicators without having to worry when and how to free it after usage.
|
inlineexplicit |
|
delete |
Do not allow making copies.
|
inline |
|
inline |
|
delete |
Do not allow assignment of this class.
|
private |