SUNphi  1.0
SUNphi::PartitioningRelation< NDims, Coord, Idx > Class Template Reference

Type to describe a partition relation between grid to be partitioned. More...

#include <Partitioner.hpp>

Public Types

enum  { FATHER, CHILD1, CHILD2, NO_RELATIVE }
 Position of father, child1 and child2 in the list of relatives.
 
using SGrid = ShadowGrid< NDims, Coord, Idx >
 Short alias of the ShadowGrid.
 

Public Member Functions

int getDeducible () const
 
 PartitioningRelation (const SGrid *father, const SGrid *child1, const SGrid *child2)
 Constructor.
 
bool operator< (const PartitioningRelation &oth) const
 Comparison operator.
 

Public Attributes

std::array< const SGrid *, 3 > relatives
 List of relatives.
 
const SGrid *& father
 Pointer to the grid to be partitioned. More...
 
const SGrid *& child1
 Pointer to the dividing grid. More...
 
const SGrid *& child2
 Pointer to the divisor grid. More...
 

Detailed Description

template<int NDims, typename Coord, typename Idx>
class SUNphi::PartitioningRelation< NDims, Coord, Idx >

Type to describe a partition relation between grid to be partitioned.

Definition at line 208 of file Partitioner.hpp.

Member Function Documentation

template<int NDims, typename Coord , typename Idx >
int SUNphi::PartitioningRelation< NDims, Coord, Idx >::getDeducible ( ) const
inline

Returns whether we can deduce something:

  • father and child1 is set, so child2 can be deduced
  • father and child2 is set, so child1 can be deduced
  • child1 and child2 is set, so father can be deduced

Take trace of the last relative not fixed

Count how many relatives are fixed

Definition at line 239 of file Partitioner.hpp.

Member Data Documentation

template<int NDims, typename Coord , typename Idx >
const SGrid*& SUNphi::PartitioningRelation< NDims, Coord, Idx >::child1
Initial value:
=
relatives[CHILD1]

Pointer to the dividing grid.

Definition at line 227 of file Partitioner.hpp.

template<int NDims, typename Coord , typename Idx >
const SGrid*& SUNphi::PartitioningRelation< NDims, Coord, Idx >::child2
Initial value:
=
relatives[CHILD2]

Pointer to the divisor grid.

Definition at line 231 of file Partitioner.hpp.

template<int NDims, typename Coord , typename Idx >
const SGrid*& SUNphi::PartitioningRelation< NDims, Coord, Idx >::father
Initial value:
=
relatives[FATHER]

Pointer to the grid to be partitioned.

Definition at line 223 of file Partitioner.hpp.


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