Move the atomToInteractionLocality(...) into locality.h
authorArtem Zhmurov <zhmurov@gmail.com>
Thu, 18 Mar 2021 06:49:18 +0000 (09:49 +0300)
committerArtem Zhmurov <zhmurov@gmail.com>
Sun, 21 Mar 2021 19:19:59 +0000 (19:19 +0000)
commit97d2a2688f3a409e76e2e42024f82eb6f66f4fe6
tree18c4a9f5e10d22a5a4f084ac4324c0581cbc36c4
parent872b46deb8f6a67d95c6766cbcab15b0e050d4e3
Move the atomToInteractionLocality(...) into locality.h

The atomToInteractionLocality(...) does not depend on NBNXM
and can naturally reside alongside the definitions of localitiy
enumerations. This allows to combine haveGpuShortRangeWork(...)
functions in NBNXM, avoding confuciton of having two very similar
functions with different signatures.
src/gromacs/mdtypes/locality.h
src/gromacs/nbnxm/cuda/nbnxm_cuda.cu
src/gromacs/nbnxm/gpu_common.h
src/gromacs/nbnxm/gpu_common_utils.h
src/gromacs/nbnxm/nbnxm.cpp
src/gromacs/nbnxm/nbnxm_gpu.h
src/gromacs/nbnxm/nbnxm_gpu_data_mgmt.cpp