print the warning about using group all with fix gcmc only from MPI rank 0

This commit is contained in:
Axel Kohlmeyer
2018-04-04 12:26:43 -04:00
parent d1356c1d76
commit e1a17d428f

View File

@ -686,7 +686,7 @@ void FixGCMC::init()
// warning if group id is "all"
if (groupbit & 1)
if ((comm->me == 0) && (groupbit & 1))
error->warning(FLERR, "Fix gcmc is being applied "
"to the default group all");