Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

cr_sortop Struct Reference

List of all members.

Public Member Functions

 cr_sortop (const Lattice &lattice)
bool operator() (ComputeNonbondedCUDA::compute_record i, ComputeNonbondedCUDA::compute_record j)

Public Attributes

const Latticel

Constructor & Destructor Documentation

cr_sortop::cr_sortop const Lattice lattice  )  [inline]
 

Definition at line 1109 of file ComputeNonbondedCUDA.C.

01109 : l(lattice) { }


Member Function Documentation

bool cr_sortop::operator() ComputeNonbondedCUDA::compute_record  i,
ComputeNonbondedCUDA::compute_record  j
[inline]
 

Definition at line 1110 of file ComputeNonbondedCUDA.C.

References Lattice::a(), Lattice::b(), BigReal, Lattice::c(), j, Vector::length2(), ComputeNonbondedCUDA::compute_record::offset, Vector::x, Vector::y, and Vector::z.

01111                                                               {
01112     Vector a = l.a();
01113     Vector b = l.b();
01114     Vector c = l.c();
01115     BigReal ri = (i.offset.x * a + i.offset.y * b + i.offset.z * c).length2();
01116     BigReal rj = (j.offset.x * a + j.offset.y * b + j.offset.z * c).length2();
01117     return ( ri < rj );
01118   }


Member Data Documentation

const Lattice& cr_sortop::l
 

Definition at line 1108 of file ComputeNonbondedCUDA.C.


The documentation for this struct was generated from the following file:
Generated on Sun May 19 04:07:53 2013 for NAMD by  doxygen 1.3.9.1