Make LJ combination rule enum into an enum class
authorArtem Zhmurov <zhmurov@gmail.com>
Thu, 4 Feb 2021 09:56:25 +0000 (09:56 +0000)
committerMark Abraham <mark.j.abraham@gmail.com>
Thu, 4 Feb 2021 09:56:25 +0000 (09:56 +0000)
commitf3dbd7334bdec032738d7bc7342fb62e06c30a01
treea195f4918c8d379a6415ac638bf20a602e41bf7a
parent07c3d8fc389fc33805ce2e77242b0013fb2459e0
Make LJ combination rule enum into an enum class

To introduce type-safety, the combination rule for LJ is madde into
enum class. This also fixes:
1. Out-of-order string assignment to enum values
2. Unsafe utilization of the enum for LJ PME combination rule
   (the values of this enum coincided so no bug by luck)
src/gromacs/nbnxm/atomdata.cpp
src/gromacs/nbnxm/atomdata.h
src/gromacs/nbnxm/cuda/nbnxm_cuda_data_mgmt.cu
src/gromacs/nbnxm/gpu_data_mgmt.h
src/gromacs/nbnxm/kerneldispatch.cpp
src/gromacs/nbnxm/nbnxm.h
src/gromacs/nbnxm/nbnxm_gpu_data_mgmt.cpp
src/gromacs/nbnxm/opencl/nbnxm_ocl_data_mgmt.cpp