33 const std::string&
tag()
const
MPI_Comm comm_
wrapped communicator (never owned/freed here)
Definition para_world.h:134
std::string tag_
domain tag
Definition para_world.h:130
virtual ~ParaWorld()=default
MPI_Comm comm() const
Underlying MPI communicator (MPI builds only).
Definition para_world.h:60
int size_
number of processes in domain
Definition para_world.h:132
static std::unique_ptr< ParaWorld > make_mpi_ptr(const std::string &tag, const MPI_Comm &comm)
Definition para_world.h:99
int rank() const
Rank of this process inside the domain (0 in serial builds).
Definition para_world.h:39
int rank_
rank inside domain
Definition para_world.h:131
const std::string & tag() const
Domain tag string.
Definition para_world.h:33
static std::unique_ptr< ParaWorld > make_serial(const std::string &tag)
Build a serial domain as a heap-allocated unique_ptr.
Definition para_world.h:82
ParaWorld(const std::string &tag)
Construct a serial (single-process) domain.
Definition para_world.cpp:6
bool valid() const
True if this process belongs to the domain.
Definition para_world.cpp:34
static ParaWorld make_mpi(const std::string &tag, const MPI_Comm &comm)
Build a domain wrapping an MPI communicator.
Definition para_world.h:94
int size() const
Number of processes in the domain (1 in serial builds).
Definition para_world.h:45
static ParaWorld serial(const std::string &tag)
Build a serial (size=1, rank=0) domain for the given tag.
Definition para_world.h:72
Definition para_band_output.cpp:11