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 1544 of file CudaComputeNonbonded.C.

01544 : l(lattice) { }


Member Function Documentation

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

Definition at line 1545 of file CudaComputeNonbonded.C.

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

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

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 8 Dec 2019 for NAMD by  doxygen 1.6.1