QNANO
Communicator.h
1 #ifndef QNANO_NEW_COMMUNICATOR_DEFINED_H
2 #define QNANO_NEW_COMMUNICATOR_DEFINED_H
3 
4 #include<vector>
5 #include<complex>
6 
20 public:
21 
23  virtual void Barrier()const{}
24 
25 
28  virtual void Reduce_Sum_Complex(std::complex<double> &c)const{}
29 
31  virtual void Reduce_Max_Double(double &d)const{}
32 
33  Communicator(){}
34  virtual ~Communicator(){}
35 };
36 
37 #endif
virtual void Reduce_Sum_Complex(std::complex< double > &c) const
Definition: Communicator.h:28
Definition: Communicator.h:19
virtual void Reduce_Max_Double(double &d) const
Maximal value from all thread is communicated to the root.
Definition: Communicator.h:31
virtual void Barrier() const
Emulates MPI_Barrier.
Definition: Communicator.h:23