Fix complexity for large exclusion orders
commitb7d5d9391ec0392f066947216cc4d3f31623a3cd
authorErik Lindahl <erik@kth.se>
Wed, 3 Jan 2018 09:25:09 +0000 (3 10:25 +0100)
committerErik Lindahl <erik.lindahl@gmail.com>
Wed, 3 Jan 2018 13:02:25 +0000 (3 14:02 +0100)
treeb8732de4bb2d94c3610e36b970ff63af63dca4dd
parent4d26abf1462d2547f004638264fc49c55a6dad00
Fix complexity for large exclusion orders

To avoid exploding computational complexity
for highly connected molecules with large
values for excluded neighbors, avoid
adding a neighbor to the temporary nnb
structure if it is already present as a
lower-order neighbor.

Fixes #2260.

Change-Id: I30c27a281ddcbbac175f79ab9d5bba49f2f988ae
src/gromacs/gmxpreprocess/gpp_nextnb.cpp