densityfit: Fix typo in use of iterators
authorAndrey Alekseenko <al42and@gmail.com>
Sat, 9 Jan 2021 19:57:42 +0000 (22:57 +0300)
committerAndrey Alekseenko <al42and@gmail.com>
Sat, 9 Jan 2021 20:06:37 +0000 (23:06 +0300)
commitb18027e29c9b85a587ba5f51b2139995cdef60c9
tree059d89f48ed09be42887ee3dc4c9467d65e365ba
parent32973820d081703ee2514edfeec0da724299496b
densityfit: Fix typo in use of iterators

... and some typos in comments.

While both referenceDensity_ and referenceDensity are views into the same data,
it's clearer to use the same variable for both begin() and end().

This is a remake of MR !740. That MR was reverted (in !748) due to
failed tests. The test failures, however, were caused by an unrelated bug
(issue #3791, fix !827). So, this change is brought back.
src/gromacs/math/densityfit.cpp