print warning about missing fix nve/spin only on MPI rank 0
This commit is contained in:
@ -166,7 +166,7 @@ void PairSpinMagelec::init_style()
|
||||
if (strcmp(modify->fix[ifix]->style,"nve/spin") == 0) break;
|
||||
ifix++;
|
||||
}
|
||||
if (ifix == modify->nfix)
|
||||
if ((ifix == modify->nfix) && (comm->me == 0))
|
||||
error->warning(FLERR,"Using pair/spin style without nve/spin");
|
||||
|
||||
// get the lattice_flag from nve/spin
|
||||
|
||||
Reference in New Issue
Block a user