cr_sortop_distance Struct Reference

List of all members.

Public Member Functions

 cr_sortop_distance (const Lattice &lattice)
bool operator() (ComputeNonbondedCUDA::compute_record i, ComputeNonbondedCUDA::compute_record j)
 cr_sortop_distance (const Lattice &lattice)
bool operator() (CudaComputeNonbonded::ComputeRecord i, CudaComputeNonbonded::ComputeRecord j)

Public Attributes

const Latticel

Detailed Description

Definition at line 1045 of file ComputeNonbondedCUDA.C.


Constructor & Destructor Documentation

cr_sortop_distance::cr_sortop_distance ( const Lattice lattice  )  [inline]

Definition at line 1047 of file ComputeNonbondedCUDA.C.

01047 : l(lattice) { }

cr_sortop_distance::cr_sortop_distance ( const Lattice lattice  )  [inline]

Definition at line 1547 of file CudaComputeNonbonded.C.

01547 : l(lattice) { }


Member Function Documentation

bool cr_sortop_distance::operator() ( CudaComputeNonbonded::ComputeRecord  i,
CudaComputeNonbonded::ComputeRecord  j 
) [inline]

Definition at line 1548 of file CudaComputeNonbonded.C.

References Lattice::a(), Lattice::b(), Lattice::c(), l, CudaComputeNonbonded::ComputeRecord::offset, Vector::x, Vector::y, and Vector::z.

01549                                            {
01550     Vector a = l.a();
01551     Vector b = l.b();
01552     Vector c = l.c();
01553     BigReal ri = (i.offset.x * a + i.offset.y * b + i.offset.z * c).length2();
01554     BigReal rj = (j.offset.x * a + j.offset.y * b + j.offset.z * c).length2();
01555     return ( ri < rj );
01556   }

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

Definition at line 1048 of file ComputeNonbondedCUDA.C.

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

01049                                                               {
01050     Vector a = l.a();
01051     Vector b = l.b();
01052     Vector c = l.c();
01053     BigReal ri = (i.offset.x * a + i.offset.y * b + i.offset.z * c).length2();
01054     BigReal rj = (j.offset.x * a + j.offset.y * b + j.offset.z * c).length2();
01055     return ( ri < rj );
01056   }


Member Data Documentation

Definition at line 1046 of file ComputeNonbondedCUDA.C.

Referenced by operator()().


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

Generated on 5 Aug 2020 for NAMD by  doxygen 1.6.1