pid_sortop_reverse_priority Struct Reference

List of all members.

Public Member Functions

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

Detailed Description

Definition at line 652 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.

00293                                          {  // i and j reversed
00294     int ppi = PATCH_PRIORITY(pidi.x);
00295     int ppj = PATCH_PRIORITY(pidj.x);
00296     if ( ppi != ppj ) return ppi < ppj;
00297     return pidi.x < pidj.x;
00298   }

bool pid_sortop_reverse_priority::operator() ( int  pidj,
int  pidi 
) [inline]

Definition at line 653 of file ComputeNonbondedCUDA.C.

References PATCH_PRIORITY.

00653                                        {  // i and j reversed
00654     int ppi = PATCH_PRIORITY(pidi);
00655     int ppj = PATCH_PRIORITY(pidj);
00656     if ( ppi != ppj ) return ppi < ppj;
00657     return pidi < pidj;
00658   }


The documentation for this struct was generated from the following files:
Generated on Sat Jun 23 01:17:21 2018 for NAMD by  doxygen 1.4.7