Clarify pushing of interaction types
commit0c0fdae8c466df33cb61d511c66c88cd4b0f2112
authorMark Abraham <mark.j.abraham@gmail.com>
Wed, 17 Apr 2019 09:24:00 +0000 (17 11:24 +0200)
committerMark Abraham <mark.j.abraham@gmail.com>
Tue, 23 Apr 2019 16:53:16 +0000 (23 18:53 +0200)
tree7ad03057fd08299cb529a4b74031da7054141d3a
parent7438a9f229797b454a789b5d77f8eafc46c5399b
Clarify pushing of interaction types

gcc was warning about possibly pushing atomNumber to a vector when its
value was not defined.  That was impossible because of the gmx_incons
earlier, but we can express the validity of the code much more clearly
to the reader/compiler.

Fixes CMAP implementation also

Extracted the common code to a function.

Change-Id: I74be61b125e05ff5505162440349fcef4ea50fdb
src/gromacs/gmxpreprocess/toppush.cpp