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 1840 of file WorkDistrib.C.


Constructor & Destructor Documentation

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

Definition at line 1843 of file WorkDistrib.C.

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


Member Function Documentation

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

Definition at line 1844 of file WorkDistrib.C.

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

01844                                              {
01845       int crds1[3], crds2[3];
01846       tmgr.coords(pe1,crds1);
01847       tmgr.coords(pe2,crds2);
01848       for ( int i=0; i<3; ++i ) {
01849         int d = sortdims[i];
01850         if ( crds1[d] != crds2[d] ) return ( crds1[d] < crds2[d] );
01851       }
01852       const int *index = WorkDistrib::peCompactOrderingIndex;
01853       return ( index[pe1] < index[pe2] );
01854     }


Member Data Documentation

Definition at line 1842 of file WorkDistrib.C.

Referenced by operator()().

Definition at line 1841 of file WorkDistrib.C.

Referenced by operator()().


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

Generated on 6 Dec 2019 for NAMD by  doxygen 1.6.1