Break apart update_constraints
commitacc3940a76a72786347e37d0b3989c6aad823f17
authorMark Abraham <mark.j.abraham@gmail.com>
Fri, 2 Mar 2018 21:42:06 +0000 (2 22:42 +0100)
committerMark Abraham <mark.j.abraham@gmail.com>
Tue, 17 Apr 2018 08:03:25 +0000 (17 10:03 +0200)
tree856e821de3bd8b2db88e5c8078e09ccaea676157
parented00961b618be960f8b8e91632d539eb6578410b
Break apart update_constraints

There are four distinct kinds of work being done, and never was any
call to update_constraints doing all of them, so it's better to have a
group of functions, each of which do one thing, and the relevant ones
called. This also makes it simpler to express by returning fast that
when we don't have constraints, we do nothing.

Made the logic for whether this is a log or energy step match that of
the main MD loop. The old implementation may not have prepared for the
last step correctly when it was triggered by something other than the
nsteps inputrec value.

Removed a commment mentioning iteration, which is a feature
that was removed a while ago.

Removed some ancient debug dump output.

Refs #2423, #1793

Change-Id: I21c10826721ddc9a79a33b1dc75971a20d0855d9
src/gromacs/mdlib/update.cpp
src/gromacs/mdlib/update.h
src/gromacs/mdrun/md.cpp