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 1370 of file ComputeNonbondedCUDA.C.


Constructor & Destructor Documentation

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

Definition at line 1372 of file ComputeNonbondedCUDA.C.

01372 : l(lattice) { }

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

Definition at line 1539 of file CudaComputeNonbonded.C.

01539 : l(lattice) { }


Member Function Documentation

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

Definition at line 1540 of file CudaComputeNonbonded.C.

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

01541                                            {
01542     Vector a = l.a();
01543     Vector b = l.b();
01544     Vector c = l.c();
01545     BigReal ri = (i.offset.x * a + i.offset.y * b + i.offset.z * c).length2();
01546     BigReal rj = (j.offset.x * a + j.offset.y * b + j.offset.z * c).length2();
01547     return ( ri < rj );
01548   }

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

Definition at line 1373 of file ComputeNonbondedCUDA.C.

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

01374                                                               {
01375     Vector a = l.a();
01376     Vector b = l.b();
01377     Vector c = l.c();
01378     BigReal ri = (i.offset.x * a + i.offset.y * b + i.offset.z * c).length2();
01379     BigReal rj = (j.offset.x * a + j.offset.y * b + j.offset.z * c).length2();
01380     return ( ri < rj );
01381   }


Member Data Documentation

const Lattice& cr_sortop_distance::l

Definition at line 1538 of file CudaComputeNonbonded.C.

const Lattice& cr_sortop_distance::l

Definition at line 1371 of file ComputeNonbondedCUDA.C.

Referenced by operator()().


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