Add check for allocating too many interactions
commit5c4b41ed47094d0bff2c04874a637c992ead885d
authorPaul Bauer <paul.bauer.q@gmail.com>
Tue, 21 May 2019 07:57:47 +0000 (21 09:57 +0200)
committerPaul Bauer <paul.bauer.q@gmail.com>
Thu, 23 May 2019 08:09:48 +0000 (23 10:09 +0200)
treeb0107c040f816795de497f9198f1da240de0ce0c
parente6805a762a7be462fe5f1ed94ada88d8578afd4d
Add check for allocating too many interactions

Also change argument to nbnxn reallocation function from int to
std::size_t to avoid signed integer overflow.

Fixes #2932

Change-Id: I97bdd825ba1e4d81b65b4e4c037f980164c571f2
docs/release-notes/2019/2019.3.rst
src/gromacs/mdlib/nbnxn_atomdata.cpp
src/gromacs/mdlib/nbnxn_atomdata.h
src/gromacs/mdlib/ns.cpp