simplify and modernize code a little

This commit is contained in:
Axel Kohlmeyer
2021-09-15 23:15:14 -04:00
parent 272badfa7f
commit 94f83c172a
7 changed files with 23 additions and 35 deletions

View File

@ -171,7 +171,7 @@ void ComputeTempDeform::compute_vector()
double *h_ratelo = domain->h_ratelo;
double massone, t[6];
for (int i = 0; i < 6; i++) t[i] = 0.0;
for (auto &ti : t) ti = 0.0;
for (int i = 0; i < nlocal; i++)
if (mask[i] & groupbit) {