auto loop optimizations

This commit is contained in:
Axel Kohlmeyer
2022-09-10 03:07:28 -04:00
parent 8030fc09e3
commit 22709b73e2
12 changed files with 28 additions and 28 deletions

View File

@ -882,7 +882,7 @@ void FixDeform::end_of_step()
if (mask[i] & groupbit)
domain->x2lamda(x[i],x[i]);
for (auto ifix : rfix)
for (auto &ifix : rfix)
ifix->deform(0);
}
@ -921,7 +921,7 @@ void FixDeform::end_of_step()
if (mask[i] & groupbit)
domain->lamda2x(x[i],x[i]);
for (auto ifix : rfix)
for (auto &ifix : rfix)
ifix->deform(1);
}