OpenMD  2.5
Molecular Dynamics in the Open
OpenMD::Plan< T > Class Template Reference

#include <Communicator.hpp>

Public Member Functions

 Plan (MPI_Comm comm, int nObjects)
 
void gather (vector< T > &v1, vector< T > &v2)
 
void scatter (vector< T > &v1, vector< T > &v2)
 
int getSize ()
 

Private Attributes

int planSize_
 how many are on local proc More...
 
int size_
 
vector< int > counts
 
vector< int > displacements
 
MPI_Comm myComm
 

Detailed Description

template<typename T>
class OpenMD::Plan< T >

Definition at line 152 of file Communicator.hpp.

Constructor & Destructor Documentation

◆ Plan()

template<typename T>
OpenMD::Plan< T >::Plan ( MPI_Comm  comm,
int  nObjects 
)
inline

Definition at line 155 of file Communicator.hpp.

Member Function Documentation

◆ gather()

template<typename T>
void OpenMD::Plan< T >::gather ( vector< T > &  v1,
vector< T > &  v2 
)
inline

◆ getSize()

template<typename T>
int OpenMD::Plan< T >::getSize ( )
inline

◆ scatter()

template<typename T>
void OpenMD::Plan< T >::scatter ( vector< T > &  v1,
vector< T > &  v2 
)
inline

Member Data Documentation

◆ counts

template<typename T>
vector<int> OpenMD::Plan< T >::counts
private

Definition at line 209 of file Communicator.hpp.

◆ displacements

template<typename T>
vector<int> OpenMD::Plan< T >::displacements
private

Definition at line 210 of file Communicator.hpp.

◆ myComm

template<typename T>
MPI_Comm OpenMD::Plan< T >::myComm
private

Definition at line 211 of file Communicator.hpp.

◆ planSize_

template<typename T>
int OpenMD::Plan< T >::planSize_
private

how many are on local proc

Definition at line 207 of file Communicator.hpp.

◆ size_

template<typename T>
int OpenMD::Plan< T >::size_
private

Definition at line 208 of file Communicator.hpp.


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