Gromacs  2020.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Functions
gmx::anonymous_namespace{nbsearch.cpp} Namespace Reference

Classes

class  MindistAction
 Search action find the minimum distance. More...
 

Functions

void computeBoundingBox (int posCount, const rvec x[], rvec origin, rvec size)
 Computes the bounding box for a set of positions. More...
 
bool withinAction (int, real, const rvec)
 Search action to find the next neighbor. More...
 

Function Documentation

void gmx::anonymous_namespace{nbsearch.cpp}::computeBoundingBox ( int  posCount,
const rvec  x[],
rvec  origin,
rvec  size 
)

Computes the bounding box for a set of positions.

Parameters
[in]posCountNumber of positions in x.
[in]xPositions to compute the bounding box for.
[out]originOrigin of the bounding box.
[out]sizeSize of the bounding box.
bool gmx::anonymous_namespace{nbsearch.cpp}::withinAction ( int  ,
real  ,
const rvec   
)

Search action to find the next neighbor.

Used as the action for AnalysisNeighborhoodPairSearchImpl::searchNext() to find the next neighbor.

Simply breaks the loop on the first found neighbor.