Public Member Functions | |
| cr_sortop (const Lattice &lattice) | |
| bool | operator() (ComputeNonbondedCUDA::compute_record i, ComputeNonbondedCUDA::compute_record j) |
Public Attributes | |
| const Lattice & | l |
|
|
Definition at line 1109 of file ComputeNonbondedCUDA.C. 01109 : l(lattice) { }
|
|
||||||||||||
|
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 }
|
|
|
Definition at line 1108 of file ComputeNonbondedCUDA.C. |
1.3.9.1