18 #ifndef QMCPLUSPLUS_MPIOBJECTBASE_H 19 #define QMCPLUSPLUS_MPIOBJECTBASE_H 71 #endif // QMCPLUSPLUS_MPIOBJECTBASE_H Base class for any object which needs to know about a MPI communicator.
helper functions for EinsplineSetBuilder
int rank() const
return the rank
std::string myName
name of the object
mpi_comm_type getMPI() const
return MPI communicator if one wants to use MPI directly
int getGroupID() const
return the group id of the communicator
Wrapping information on parallelism.
Communicate * getCommunicator() const
return myComm
int getGroupID() const
return the group id
Communicate * myComm
pointer to Communicate
std::string ClassName
class Name
Communicate::mpi_comm_type mpi_comm_type
Communicate & getCommRef() const
return a TEMPORARY reference to Communicate
mpi_comm_type getMPI() const
return the Communicator ID (typically MPI_WORLD_COMM)
bool is_manager() const
return true if the rank == 0
const std::string & getName() const
return the name
MPIObjectBase(Communicate *c)
constructor with communicator
int rank() const
return the rank of the communicator
void setName(const std::string &aname)