QNANO
Public Member Functions | Public Attributes | List of all members
MPI_Communicator Class Reference

#include <MPI_Communicator.h>

Inheritance diagram for MPI_Communicator:
Inheritance graph
[legend]
Collaboration diagram for MPI_Communicator:
Collaboration graph
[legend]

Public Member Functions

virtual void Reduce_Sum_Complex (std::complex< double > &c) const
 
virtual void Reduce_Max_Double (double &d) const
 Maximal value from all thread is communicated to the root.
 
virtual void Barrier () const
 Emulates MPI_Barrier.
 

Public Attributes

int MPI_rank
 
int MPI_size
 

Detailed Description

Specific implementation of 'Communicator' class for MPI parallelization

Member Function Documentation

void MPI_Communicator::Reduce_Sum_Complex ( std::complex< double > &  c) const
virtual

Takes complex numbers from each thread, sends them to the root (thread 0) and sums them. For the root, input and output pointers are the same

Reimplemented from Communicator.


The documentation for this class was generated from the following files: