Avoid bonded forces loops/timers on inputs with no bondeds
commita3502742b47b00cc1436511eaa7b8c355cdab757
authorBerk Hess <hess@kth.se>
Tue, 8 Aug 2017 13:19:09 +0000 (8 15:19 +0200)
committerAleksei Iupinov <a.yupinov@gmail.com>
Mon, 28 Aug 2017 11:11:00 +0000 (28 13:11 +0200)
tree46dc15eeaa3acb6a0085d8649c0f4493a36c3e20
parentef481a44f57a8ad83b79b7a7ca6319c8d7123e2a
Avoid bonded forces loops/timers on inputs with no bondeds

This excludes near-zero "Bonded F" and "Listed buffer ops." subcounters
on such inputs.
Moved the bonded loop and thread parallelization to a separate function.
Also made the lambda input array const.

Change-Id: I862fc601e8adcf6d0b1eb7bd88390b0ea073e4fb
src/gromacs/listed-forces/listed-forces.cpp
src/gromacs/listed-forces/listed-forces.h
src/gromacs/listed-forces/pairs.cpp
src/gromacs/listed-forces/pairs.h
src/gromacs/listed-forces/position-restraints.cpp
src/gromacs/listed-forces/position-restraints.h