#include <Moose.h>
Public Member Functions | |
ScopedCommSwapper (MPI_Comm new_comm) | |
Swaps the current libmesh MPI communicator for new_comm. More... | |
virtual | ~ScopedCommSwapper () |
void | forceSwap () |
Forcibly swap the currently swapped-out communicator back in to libmesh. More... | |
Private Attributes | |
MPI_Comm | _orig |
|
inline |
Swaps the current libmesh MPI communicator for new_comm.
new_comm will be automatically swapped back in as the current libmesh communicator when this object is destructed.
Definition at line 267 of file Moose.h.
|
inlinevirtual |
Definition at line 268 of file Moose.h.
|
inline |
Forcibly swap the currently swapped-out communicator back in to libmesh.
Calling this function twice in a row leaves communicators exactly as they were before this function was called. Usually you should not need/use this function because MPI communicators are swapped automatically when this object is constructed/destructed.
Definition at line 273 of file Moose.h.
Referenced by MultiAppUserObjectTransfer::execute().