use references when looping over fixes from list

This commit is contained in:
Axel Kohlmeyer
2021-10-25 21:41:57 -04:00
parent d0416757b7
commit 8bf016eaef
8 changed files with 17 additions and 17 deletions

View File

@ -53,7 +53,7 @@ void Verlet::init()
// warn if no fixes doing time integration
bool do_time_integrate = false;
for (auto fix : modify->get_fix_list())
for (const auto &fix : modify->get_fix_list())
if (fix->time_integrate) do_time_integrate;
if (!do_time_integrate && (comm->me == 0))