Corrected parameter for sorting on search grid
authorBerk Hess <hess@kth.se>
Fri, 31 Oct 2014 18:10:13 +0000 (19:10 +0100)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Wed, 12 Nov 2014 11:10:23 +0000 (12:10 +0100)
commite036b6721d561a6c2b552d2143883ab4a8dfcdf3
treeef49c96731da4debcc1e19b958bfcf2ae84935b2
parentb9e2e8419153977c59f78de90a3feebd80befa37
Corrected parameter for sorting on search grid

The nbnxn grid search sorting range parameter used the whole box
height instead of the local DD cell height with domain decomposition
along z. This could not cause errors, but the search used O(N^2) time
with more than 4 domains along z, instead of O(N).

Change-Id: I324df6b15635a5ecff7c8bfeb124fdb933e5f845
src/gromacs/mdlib/nbnxn_internal.h
src/gromacs/mdlib/nbnxn_search.c