Analysis grid nbsearch for more cases
commit11a0accb55eb3a98d016cedac91cd57feb03f54b
authorTeemu Murtola <teemu.murtola@gmail.com>
Sun, 24 Aug 2014 04:16:41 +0000 (24 07:16 +0300)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Tue, 2 Dec 2014 13:46:04 +0000 (2 14:46 +0100)
tree4be96fe0b48999393c21fe70f37d170bd40b96c9
parent5324b41aa605758d1ab25dc3dbf4213156a6ec17
Analysis grid nbsearch for more cases

Add support for grid neighborhood searching also for epbcXY and
epbcNONE, as well as the XY mode in the analysis neighborhood search.
The grid is done based on the input box size also for the non-periodic
dimensions, or a single grid cell is used if the box size is unknown in
that dimension.  In the future, an option could be added to determine
the grid automatically from the bounding box, but that is outside the
scope of this change.  For the XY mode, a single grid cell is always
used in Z.

Improved the logic of determining when grid search is possible and/or
reasonable and implemented the option to force the grid
searching (since the test data currently would not trigger it
otherwise).

Change-Id: I0c43bf95d7d5dd46e57923cdf0d6864fbb3dfe59
src/gromacs/selection/nbsearch.cpp
src/gromacs/selection/tests/nbsearch.cpp