diff --git a/src/MC/fix_gcmc.cpp b/src/MC/fix_gcmc.cpp index c6cfff6d2f..2f61357afb 100644 --- a/src/MC/fix_gcmc.cpp +++ b/src/MC/fix_gcmc.cpp @@ -1156,6 +1156,7 @@ void FixGCMC::get_model_molecule() double com[3]; gas_mass = group->mass(0); group->xcm(0,gas_mass,com); + gas_mass /= comm->nprocs; double **x = atom->x; for (int i = 0; i < nlocal; i++) {