TopoManagerWrapper::pe_sortop_topo Struct Reference

List of all members.

Public Member Functions

 pe_sortop_topo (TopoManagerWrapper &t, int *d)
bool operator() (int pe1, int pe2) const

Public Attributes

TopoManagerWrappertmgr
const int * sortdims

Detailed Description

Definition at line 1883 of file WorkDistrib.C.


Constructor & Destructor Documentation

TopoManagerWrapper::pe_sortop_topo::pe_sortop_topo ( TopoManagerWrapper t,
int *  d 
) [inline]

Definition at line 1886 of file WorkDistrib.C.

01886 : tmgr(t), sortdims(d) {}


Member Function Documentation

bool TopoManagerWrapper::pe_sortop_topo::operator() ( int  pe1,
int  pe2 
) const [inline]

Definition at line 1887 of file WorkDistrib.C.

References TopoManagerWrapper::coords(), WorkDistrib::peCompactOrderingIndex, sortdims, and tmgr.

01887                                              {
01888       int crds1[3], crds2[3];
01889       tmgr.coords(pe1,crds1);
01890       tmgr.coords(pe2,crds2);
01891       for ( int i=0; i<3; ++i ) {
01892         int d = sortdims[i];
01893         if ( crds1[d] != crds2[d] ) return ( crds1[d] < crds2[d] );
01894       }
01895       const int *index = WorkDistrib::peCompactOrderingIndex;
01896       return ( index[pe1] < index[pe2] );
01897     }


Member Data Documentation

const int* TopoManagerWrapper::pe_sortop_topo::sortdims

Definition at line 1885 of file WorkDistrib.C.

Referenced by operator()().

TopoManagerWrapper& TopoManagerWrapper::pe_sortop_topo::tmgr

Definition at line 1884 of file WorkDistrib.C.

Referenced by operator()().


The documentation for this struct was generated from the following file:
Generated on Sat Sep 23 01:17:21 2017 for NAMD by  doxygen 1.4.7