modernize access for fixes and computes

This commit is contained in:
Axel Kohlmeyer
2023-07-16 20:05:52 -04:00
parent 89d82fde22
commit 27aa6898f8
10 changed files with 45 additions and 53 deletions

View File

@ -1818,17 +1818,16 @@ void Atom::data_bodies(int n, char *buf, AtomVec *avec_body, tagint id_offset)
void Atom::data_fix_compute_variable(int nprev, int nnew)
{
for (const auto &fix : modify->get_fix_list()) {
if (fix->create_attribute)
for (const auto &ifix : modify->get_fix_list()) {
if (ifix->create_attribute)
for (int i = nprev; i < nnew; i++)
fix->set_arrays(i);
ifix->set_arrays(i);
}
for (int m = 0; m < modify->ncompute; m++) {
Compute *compute = modify->compute[m];
if (compute->create_attribute)
for (const auto &icompute : modify->get_compute_list()) {
if (icompute->create_attribute)
for (int i = nprev; i < nnew; i++)
compute->set_arrays(i);
icompute->set_arrays(i);
}
for (int i = nprev; i < nnew; i++)