1 #ifndef QNANO_NEW_MPI_COMMUNICATOR_DEFINED_H 2 #define QNANO_NEW_MPI_COMMUNICATOR_DEFINED_H 5 #include "tools/Communicator.h" 10 int MPI_rank, MPI_size;
20 MPI_Comm_size(MPI_COMM_WORLD, &MPI_size);
21 MPI_Comm_rank(MPI_COMM_WORLD, &MPI_rank);
Definition: Communicator.h:19
Definition: MPI_Communicator.h:8
virtual void Reduce_Max_Double(double &d) const
Maximal value from all thread is communicated to the root.
Definition: MPI_Communicator.cc:17
virtual void Barrier() const
Emulates MPI_Barrier.
Definition: MPI_Communicator.cc:3
virtual void Reduce_Sum_Complex(std::complex< double > &c) const
Definition: MPI_Communicator.cc:8