NAMD
Public Member Functions | List of all members
pid_sortop_reverse_priority Struct Reference

Public Member Functions

bool operator() (int pidj, int pidi)
 
bool operator() (int2 pidj, int2 pidi)
 

Detailed Description

Definition at line 648 of file ComputeNonbondedCUDA.C.

Member Function Documentation

bool pid_sortop_reverse_priority::operator() ( int2  pidj,
int2  pidi 
)
inline

Definition at line 293 of file CudaComputeNonbonded.C.

References PATCH_PRIORITY.

293  { // i and j reversed
294  int ppi = PATCH_PRIORITY(pidi.x);
295  int ppj = PATCH_PRIORITY(pidj.x);
296  if ( ppi != ppj ) return ppi < ppj;
297  return pidi.x < pidj.x;
298  }
#define PATCH_PRIORITY(PID)
Definition: Priorities.h:25
bool pid_sortop_reverse_priority::operator() ( int  pidj,
int  pidi 
)
inline

Definition at line 649 of file ComputeNonbondedCUDA.C.

References PATCH_PRIORITY.

649  { // i and j reversed
650  int ppi = PATCH_PRIORITY(pidi);
651  int ppj = PATCH_PRIORITY(pidj);
652  if ( ppi != ppj ) return ppi < ppj;
653  return pidi < pidj;
654  }
#define PATCH_PRIORITY(PID)
Definition: Priorities.h:25

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