Separate flexible constraint counting
authorMark Abraham <mark.j.abraham@gmail.com>
Sun, 4 Mar 2018 16:25:49 +0000 (17:25 +0100)
committerBerk Hess <hess@kth.se>
Tue, 5 Jun 2018 07:30:45 +0000 (09:30 +0200)
commit143ab3d68e69d7b80f004c0824faaccc10489aa9
treeb52776957eed599b78354ad00a9a6942071cb48f
parente384d5305245eb6171ee0a299ebb92251430eb6a
Separate flexible constraint counting

Functions should do one thing, particularly when the thing is only
needed some of the time and complicates returning multiple things.

Minimized scope of some variables, avoiding risky re-use of variables
with the same name.

Refs #2423

Change-Id: I1860447b4780e76c20a53964a2a946512689b872
src/gromacs/gmxpreprocess/grompp.cpp
src/gromacs/mdlib/constr.cpp
src/gromacs/mdlib/constr.h
src/gromacs/mdlib/constraintrange.cpp
src/gromacs/mdlib/lincs.cpp