31#ifndef _MPTENSOR_MPI_HPP_
32#define _MPTENSOR_MPI_HPP_
std::complex< double > complex
Definition complex.hpp:38
void initialize(int argc, char **argv)
True if the calling process is the root (rank 0), false otherwise.
Definition mpi.cc:70
void finalize()
Finalize MPI environment.
Definition mpi.cc:83
MPI_Comm comm_type
Definition mpi.hpp:45
int size
Rank of the calling process in the communicator.
Definition mpi.cc:61
void get_info(const comm_type &comm, int &rank, int &size, bool &is_root)
Get MPI information: rank, size, and whether the process is the root.
Definition mpi.cc:102
int rank
Type for MPI communicator.
Definition mpi.cc:60
void barrier(const comm_type &comm)
Barrier synchronization among processes in the communicator.
Definition mpi.cc:93
bool is_root
Number of processes in the communicator.
Definition mpi.cc:62
Definition complex.hpp:34