MaMiCo 1.2
|
This class performs the conversion rank <-> process coordinates. More...
#include <ParallelTopology.h>
Public Member Functions | |
virtual | ~ParallelTopology () |
virtual unsigned int | getRank (tarch::la::Vector< dim, unsigned int > processCoordinates, unsigned int topologyOffset) const =0 |
converts process coordinates into a rank. | |
virtual tarch::la::Vector< dim, unsigned int > | getProcessCoordinates (unsigned int rank, unsigned int topologyOffset) const =0 |
converts rank into process coordinates. | |
This class performs the conversion rank <-> process coordinates.
namespace paralleltopology
interface for different parallel topologies. This can be adapted to the respective Cartesian topology that is applied to the MD simulation. This class solely performs the conversion rank<-> process coordinates, assuming a Cartesian grid-like splitting of the MD domain. It is the base class of the classe ZYXTopology and XYZTopology.
dim | Number of dimensions; it can be 1, 2 or 3 |
|
inlinevirtual |
Destructor
|
pure virtual |
converts rank into process coordinates.
This function takes rank as input and return the correpsponding process coordinates.
rank | Rank |
Implemented in coupling::paralleltopology::XYZTopology< dim >, and coupling::paralleltopology::ZYXTopology< dim >.
|
pure virtual |
converts process coordinates into a rank.
This function takes process coordinates as input and returns the correpsponding rank.
processCoordinates | Process coordinates |
Implemented in coupling::paralleltopology::XYZTopology< dim >, and coupling::paralleltopology::ZYXTopology< dim >.