Fix flat-bottomed position restraints with multiple ranksrelease-5-1
commit62827ffd61f7d17d1af7d3726dfbd2bc0ceb85bd
authorMark Abraham <mark.j.abraham@gmail.com>
Fri, 25 Aug 2017 16:17:19 +0000 (25 18:17 +0200)
committerMark Abraham <mark.j.abraham@gmail.com>
Fri, 25 Aug 2017 16:18:27 +0000 (25 18:18 +0200)
tree8be8536737f396c714417d8b00835a269066ddfe
parent3f970c00ffaf60b47c140003e72f941b429d275b
Fix flat-bottomed position restraints with multiple ranks

Reallocation was never done for flat-bottomed restraints,
so the indexing could go out of range, leading to segfaults.

Fixes #2236

Change-Id: I866f96684fc5a2fef6391ed62a70abdaa1581a33
src/gromacs/domdec/domdec_topology.cpp