Zoltan2
Public Member Functions | Public Attributes
Zoltan2::MachineRepresentation< pcoord_t > Class Template Reference

MachineRepresentation Class Finds the coordinate of the processor. Used to find the processor coordinates or graph. More...

#include <Zoltan2_MachineRepresentation.hpp>

List of all members.

Public Member Functions

 MachineRepresentation (RCP< const Comm< int > > comm_)
 Constructor MachineRepresentation Class.
 MachineRepresentation (RCP< Comm< int > > comm_)
 Constructor MachineRepresentation Class.
void getMyCoordinate ()
 getMyCoordinate function stores the coordinate of the current processor in procCoords[*][rank]
void gatherMachineCoordinates ()
 gatherMachineCoordinates function reduces and stores all machine coordinates.
 ~MachineRepresentation ()
 destructor of the class free memory in procCoords.
int getProcDim () const
 getProcDim function returns the dimension of the physical processor layout.
pcoord_t ** getProcCoords () const
 getProcDim function returns the coordinates of processors in two dimensional array.
int getNumProcs () const
 getNumProcs function returns the number of processors.

Public Attributes

int networkDim
int numProcs
pcoord_t ** procCoords
RCP< const Comm< int > > comm

Detailed Description

template<typename pcoord_t>
class Zoltan2::MachineRepresentation< pcoord_t >

MachineRepresentation Class Finds the coordinate of the processor. Used to find the processor coordinates or graph.

Definition at line 13 of file Zoltan2_MachineRepresentation.hpp.


Constructor & Destructor Documentation

template<typename pcoord_t>
Zoltan2::MachineRepresentation< pcoord_t >::MachineRepresentation ( RCP< const Comm< int > >  comm_) [inline]

Constructor MachineRepresentation Class.

Parameters:
comm_Communication object.

Definition at line 25 of file Zoltan2_MachineRepresentation.hpp.

template<typename pcoord_t>
Zoltan2::MachineRepresentation< pcoord_t >::MachineRepresentation ( RCP< Comm< int > >  comm_) [inline]

Constructor MachineRepresentation Class.

Parameters:
comm_Communication object.

Definition at line 66 of file Zoltan2_MachineRepresentation.hpp.

template<typename pcoord_t>
Zoltan2::MachineRepresentation< pcoord_t >::~MachineRepresentation ( ) [inline]

destructor of the class free memory in procCoords.

Definition at line 150 of file Zoltan2_MachineRepresentation.hpp.


Member Function Documentation

template<typename pcoord_t>
void Zoltan2::MachineRepresentation< pcoord_t >::getMyCoordinate ( ) [inline]

getMyCoordinate function stores the coordinate of the current processor in procCoords[*][rank]

Definition at line 107 of file Zoltan2_MachineRepresentation.hpp.

template<typename pcoord_t>
void Zoltan2::MachineRepresentation< pcoord_t >::gatherMachineCoordinates ( ) [inline]

gatherMachineCoordinates function reduces and stores all machine coordinates.

Definition at line 130 of file Zoltan2_MachineRepresentation.hpp.

template<typename pcoord_t>
int Zoltan2::MachineRepresentation< pcoord_t >::getProcDim ( ) const [inline]

getProcDim function returns the dimension of the physical processor layout.

Definition at line 162 of file Zoltan2_MachineRepresentation.hpp.

template<typename pcoord_t>
pcoord_t** Zoltan2::MachineRepresentation< pcoord_t >::getProcCoords ( ) const [inline]

getProcDim function returns the coordinates of processors in two dimensional array.

Definition at line 169 of file Zoltan2_MachineRepresentation.hpp.

template<typename pcoord_t>
int Zoltan2::MachineRepresentation< pcoord_t >::getNumProcs ( ) const [inline]

getNumProcs function returns the number of processors.

Definition at line 176 of file Zoltan2_MachineRepresentation.hpp.


Member Data Documentation

template<typename pcoord_t>
int Zoltan2::MachineRepresentation< pcoord_t >::networkDim

Definition at line 16 of file Zoltan2_MachineRepresentation.hpp.

template<typename pcoord_t>
int Zoltan2::MachineRepresentation< pcoord_t >::numProcs

Definition at line 17 of file Zoltan2_MachineRepresentation.hpp.

template<typename pcoord_t>
pcoord_t** Zoltan2::MachineRepresentation< pcoord_t >::procCoords

Definition at line 19 of file Zoltan2_MachineRepresentation.hpp.

template<typename pcoord_t>
RCP<const Comm<int> > Zoltan2::MachineRepresentation< pcoord_t >::comm

Definition at line 20 of file Zoltan2_MachineRepresentation.hpp.


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