NAMD
Public Member Functions | Public Attributes | List of all members
nodesort Struct Reference

Public Member Functions

 nodesort ()
 
int operator== (const nodesort &o) const
 
int operator< (const nodesort &o) const
 

Public Attributes

int node
 
int a_total
 
int b_total
 
int c_total
 
int npatches
 

Detailed Description

Definition at line 1606 of file WorkDistrib.C.

Constructor & Destructor Documentation

◆ nodesort()

nodesort::nodesort ( )
inline

Definition at line 1612 of file WorkDistrib.C.

1612 : node(-1),a_total(0),b_total(0),c_total(0),npatches(0) { ; }
int npatches
Definition: WorkDistrib.C:1611

Member Function Documentation

◆ operator<()

int nodesort::operator< ( const nodesort o) const
inline

Definition at line 1622 of file WorkDistrib.C.

References a_total, b_total, c_total, and npatches.

1622  {
1623  float a1 = ((float)a_total)/((float)npatches);
1624  float a2 = ((float)o.a_total)/((float)o.npatches);
1625  float b1 = ((float)b_total)/((float)npatches);
1626  float b2 = ((float)o.b_total)/((float)o.npatches);
1627  float c1 = ((float)c_total)/((float)npatches);
1628  float c2 = ((float)o.c_total)/((float)o.npatches);
1629  return ( (a1 < a2) || ((a1 == a2) && (b1 < b2)) ||
1630  ((a1 == a2) && (b1 == b2) && (c1 < c2)) );
1631  }
int npatches
Definition: WorkDistrib.C:1611

◆ operator==()

int nodesort::operator== ( const nodesort o) const
inline

Definition at line 1613 of file WorkDistrib.C.

References a_total, b_total, c_total, and npatches.

1613  {
1614  float a1 = ((float)a_total)/((float)npatches);
1615  float a2 = ((float)o.a_total)/((float)o.npatches);
1616  float b1 = ((float)b_total)/((float)npatches);
1617  float b2 = ((float)o.b_total)/((float)o.npatches);
1618  float c1 = ((float)c_total)/((float)npatches);
1619  float c2 = ((float)o.c_total)/((float)o.npatches);
1620  return ((a1 == a2) && (b1 == b2) && (c1 == c2));
1621  }
int npatches
Definition: WorkDistrib.C:1611

Member Data Documentation

◆ a_total

int nodesort::a_total

Definition at line 1608 of file WorkDistrib.C.

Referenced by operator<(), and operator==().

◆ b_total

int nodesort::b_total

Definition at line 1609 of file WorkDistrib.C.

Referenced by operator<(), and operator==().

◆ c_total

int nodesort::c_total

Definition at line 1610 of file WorkDistrib.C.

Referenced by operator<(), and operator==().

◆ node

int nodesort::node

Definition at line 1607 of file WorkDistrib.C.

◆ npatches

int nodesort::npatches

Definition at line 1611 of file WorkDistrib.C.

Referenced by operator<(), and operator==().


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