Change nbnxm macros to constexpr
authorBerk Hess <hess@kth.se>
Wed, 13 Mar 2019 09:47:49 +0000 (10:47 +0100)
committerBerk Hess <hess@kth.se>
Thu, 14 Mar 2019 10:39:43 +0000 (11:39 +0100)
commit472fb54cc31e44533fcf4d593d6b03ae44440517
treed2128027078c4c7f7fae52c152bbd93e5f7a63ea
parent9b7bd3fd788e9bdef44546776c140a69dcae36b7
Change nbnxm macros to constexpr

Also added an inline function to clarify the code and avoid code
duplication.

Change-Id: If68ad4f745a9b6f1c68379af24305a47084b608b
src/gromacs/nbnxm/grid.cpp
src/gromacs/nbnxm/grid.h
src/gromacs/nbnxm/pairlist.cpp
src/gromacs/nbnxm/pairlistwork.h