MaMiCo 1.2
Loading...
Searching...
No Matches
coupling::paralleltopology::ParallelTopology< dim > Class Template Referenceabstract

This class performs the conversion rank <-> process coordinates. More...

#include <ParallelTopology.h>

Inheritance diagram for coupling::paralleltopology::ParallelTopology< dim >:

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.
 

Detailed Description

template<unsigned int dim>
class coupling::paralleltopology::ParallelTopology< dim >

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.

Template Parameters
dimNumber of dimensions; it can be 1, 2 or 3
Author
Philipp Neumann

Constructor & Destructor Documentation

◆ ~ParallelTopology()

template<unsigned int dim>
virtual coupling::paralleltopology::ParallelTopology< dim >::~ParallelTopology ( )
inlinevirtual

Destructor

Member Function Documentation

◆ getProcessCoordinates()

template<unsigned int dim>
virtual tarch::la::Vector< dim, unsigned int > coupling::paralleltopology::ParallelTopology< dim >::getProcessCoordinates ( unsigned int rank,
unsigned int topologyOffset ) const
pure virtual

converts rank into process coordinates.

This function takes rank as input and return the correpsponding process coordinates.

Parameters
rankRank

Implemented in coupling::paralleltopology::XYZTopology< dim >, and coupling::paralleltopology::ZYXTopology< dim >.

◆ getRank()

template<unsigned int dim>
virtual unsigned int coupling::paralleltopology::ParallelTopology< dim >::getRank ( tarch::la::Vector< dim, unsigned int > processCoordinates,
unsigned int topologyOffset ) const
pure virtual

converts process coordinates into a rank.

This function takes process coordinates as input and returns the correpsponding rank.

Parameters
processCoordinatesProcess coordinates

Implemented in coupling::paralleltopology::XYZTopology< dim >, and coupling::paralleltopology::ZYXTopology< dim >.


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