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
const Latticel

Detailed Description

Definition at line 1046 of file ComputeNonbondedCUDA.C.


Constructor & Destructor Documentation

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

Definition at line 1048 of file ComputeNonbondedCUDA.C.

01048 : l(lattice) { }

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

Definition at line 1529 of file CudaComputeNonbonded.C.

01529 : l(lattice) { }


Member Function Documentation

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

Definition at line 1530 of file CudaComputeNonbonded.C.

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

01531                                            {
01532     Vector a = l.a();
01533     Vector b = l.b();
01534     Vector c = l.c();
01535     BigReal ri = (i.offset.x * a + i.offset.y * b + i.offset.z * c).length2();
01536     BigReal rj = (j.offset.x * a + j.offset.y * b + j.offset.z * c).length2();
01537     return ( ri < rj );
01538   }

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

Definition at line 1049 of file ComputeNonbondedCUDA.C.

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

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


Member Data Documentation

const Lattice& cr_sortop_distance::l

Definition at line 1528 of file CudaComputeNonbonded.C.

const Lattice& cr_sortop_distance::l

Definition at line 1047 of file ComputeNonbondedCUDA.C.

Referenced by operator()().


The documentation for this struct was generated from the following files:
Generated on Mon Jun 25 01:17:18 2018 for NAMD by  doxygen 1.4.7