Move bonded function table into bonded.cpp
authorBerk Hess <hess@kth.se>
Wed, 7 Aug 2019 10:10:32 +0000 (12:10 +0200)
committerArtem Zhmurov <zhmurov@gmail.com>
Fri, 9 Aug 2019 17:59:49 +0000 (19:59 +0200)
commit146d923e42888984d68a1267fa4892dc06832105
treeff9499b05299270236740e3c6f62ce9493e95f75
parent0cd72f2b3643a607553876d48c7f6d3703d3b2dd
Move bonded function table into bonded.cpp

Instead of exposing the bonded functions for every function type
outside bonded.cpp, now a function in bonded.cpp dispatching
each bonded interaction fuction using a local table.
This is preparation for templating the bonded interaction functions.

This change is only refactoring.

Change-Id: I22d5f46b09fa00ca65e0359f963c1cc6bfb33aa9
src/gromacs/listed_forces/bonded.cpp
src/gromacs/listed_forces/bonded.h
src/gromacs/listed_forces/listed_forces.cpp
src/gromacs/listed_forces/tests/bonded.cpp