Fix clang-tidy-11 errors in NBNXM module, part 2
authorAndrey Alekseenko <al42and@gmail.com>
Tue, 9 Feb 2021 13:13:37 +0000 (13:13 +0000)
committerPaul Bauer <paul.bauer.q@gmail.com>
Tue, 9 Feb 2021 13:13:37 +0000 (13:13 +0000)
commit0715c460f1743ce0884f43228d6ced1a569b4681
treed81d1a1c656f7af6369487c1f2ffd2557d86761d
parent4d5aeff9c1ac037fcf6c7b65ed37b905eba00afa
Fix clang-tidy-11 errors in NBNXM module, part 2

In some cases, extracted problematic pieces into static functions to
simplify the logic. Maybe a bit too much here, but, I believe, it improves readability.

Also fixed some grammar.

Refs #3897
src/gromacs/nbnxm/grid.cpp
src/gromacs/nbnxm/pairlist_simd_2xmm.h
src/gromacs/nbnxm/pairlist_simd_4xm.h
src/gromacs/nbnxm/pairlist_tuning.cpp