diff --git a/src/MC/fix_gcmc.cpp b/src/MC/fix_gcmc.cpp index 136310012f..31d7278f88 100644 --- a/src/MC/fix_gcmc.cpp +++ b/src/MC/fix_gcmc.cpp @@ -825,7 +825,7 @@ void FixGCMC::attempt_molecule_insertion() int nfix = modify->nfix; Fix **fix = modify->fix; for (int j = 0; j < nfix; j++) - if (fix[j]->create_attribute) fix[j]->set_arrays(i); + if (fix[j]->create_attribute) fix[j]->set_arrays(m); } else atom->nlocal--; }