QDP++
qdp_layout.h File Reference

Lattice layout. More...

Go to the source code of this file.

Namespaces

namespace  QDP
 Yet another random number generator.
namespace  QDP::Layout
 Layout namespace holding info on problem size and machine info.

Functions

void QDP::Layout::init ()
 Initializer for layout.
void QDP::Layout::create ()
 Main lattice creation routine.
void QDP::Layout::destroy ()
 Main destruction routine.
void QDP::Layout::setLattSize (const multi1d< int > &nrows)
 Set virtual grid (problem grid) lattice size.
void QDP::Layout::setSMPFlag (bool flag)
 Set SMP flag – true if using smp/multiprocessor mode on a node.
void QDP::Layout::setNumProc (int N)
 Set number of processors in a multi-threaded implementation.
int QDP::Layout::nodeNumber (const multi1d< int > &coord)
 Returns the logical node number for the corresponding lattice coordinate.
multi1d< int > QDP::Layout::localLexiCoordFromLinear (const int &linearr)
int QDP::Layout::linearSiteIndex (const multi1d< int > &coord) QDP_CONST
 The linearized site index within a node for the corresponding lattice coordinate.
multi1d< int > QDP::Layout::siteCoords (int node, int index) QDP_CONST
 Reconstruct the lattice coordinate from the node and site number.
void QDP::Layout::QDPXX_getSiteCoords (int coord[], int node, int linear) QDP_CONST
int QDP::Layout::QDPXX_getLinearSiteIndex (const int coord[])
int QDP::Layout::QDPXX_nodeNumber (const int coord[])
int QDP::Layout::nodeNumber ()
 Returns the node number of this node.
int QDP::Layout::numNodes ()
 Returns the number of nodes.
const multi1d< int > & QDP::Layout::lattSize ()
 Virtual grid (problem grid) lattice size.
int QDP::Layout::vol ()
 Total lattice volume.
int QDP::Layout::sitesOnNode ()
 Subgrid lattice volume.
bool QDP::Layout::primaryNode ()
 Returns whether this is the primary node.
int QDP::Layout::linearSiteIndex (int site)
 The linearized site index for the corresponding lexicographic site.
const multi1d< int > & QDP::Layout::nodeCoord ()
 Returns the logical node coordinates for this node.
multi1d< int > QDP::Layout::nodeCoord (const multi1d< int > &coord)
 Returns the logical node coordinates for the corresponding lattice coordinate.
const multi1d< int > & QDP::Layout::subgridLattSize ()
 Subgrid (grid on each node) lattice size.
const multi1d< int > & QDP::Layout::logicalSize ()
 Returns the logical size of this machine.
int QDP::Layout::getNodeNumberFrom (const multi1d< int > &node_coord)
 Returns the node number given some logical node coordinate.
multi1d< int > QDP::Layout::getLogicalCoordFrom (int node)
 Returns the logical node coordinates given some node number.
bool QDP::Layout::isIOGridDefined (void) QDP_CONST
 check if I/O grid is defined
void QDP::Layout::setIONodeGrid (const multi1d< int > &io_grid)
 Set the I/O Node grid – satisfy interface.
int QDP::Layout::numIONodeGrid (void) QDP_CONST
 number of I/O nodes
const multi1d< int > & QDP::Layout::getIONodeGrid () QDP_CONST
 Get the I/O Node grid.

Detailed Description

Lattice layout.

Lattice layout namespace and operations

Definition in file qdp_layout.h.