Increase const correctness of t_mdatoms use in md.cpp
authorejjordan <ejjordan@kth.se>
Thu, 22 Apr 2021 12:22:07 +0000 (14:22 +0200)
committerArtem Zhmurov <zhmurov@gmail.com>
Tue, 27 Apr 2021 05:04:36 +0000 (05:04 +0000)
commit579024247d9b2f2674db0ff9e0b2d0f0e6371c39
treee216505b4d007308f1444a5b4d192712d9f70560
parentc18c5072ef8d5a50da253d37b6ad33dc550e9514
Increase const correctness of t_mdatoms use in md.cpp

Previously two instances of t_mdatoms were made in do_md, once const
and one not. This replaces all instances where the non-const was not
used but could be with const usage. Also, non-const usage is now done
by calling MDAtoms->mdatoms() to indicate non-const usage more clearly.
src/gromacs/mdrun/md.cpp