correct/improve warning messages related to per-atom properties
This commit is contained in:
@ -154,9 +154,9 @@ void AtomVecHybrid::process_args(int narg, char **arg)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (mass_pertype && mass_peratom && comm->me == 0)
|
if (mass_pertype && mass_peratom && comm->me == 0)
|
||||||
error->warning(FLERR,
|
error->warning(FLERR, "Atom style hybrid defines both, per-type "
|
||||||
"Atom_style hybrid defines both pertype and peratom masses "
|
"and per-atom masses; both must be set, but only "
|
||||||
"- both must be set, only peratom masses will be used");
|
"per-atom masses will be used");
|
||||||
|
|
||||||
// free allstyles created by build_styles()
|
// free allstyles created by build_styles()
|
||||||
|
|
||||||
@ -216,8 +216,8 @@ void AtomVecHybrid::process_args(int narg, char **arg)
|
|||||||
char *dup = (char *) dupfield[idup];
|
char *dup = (char *) dupfield[idup];
|
||||||
ptr = strstr(concat_grow,dup);
|
ptr = strstr(concat_grow,dup);
|
||||||
if ((ptr && strstr(ptr+1,dup)) && (comm->me == 0))
|
if ((ptr && strstr(ptr+1,dup)) && (comm->me == 0))
|
||||||
error->warning(FLERR,fmt::format("Peratom {} is in multiple sub-styles "
|
error->warning(FLERR,fmt::format("Per-atom {} is used in multiple sub-"
|
||||||
"- must be used consistently",dup));
|
"styles; must be used consistently",dup));
|
||||||
}
|
}
|
||||||
|
|
||||||
delete [] concat_grow;
|
delete [] concat_grow;
|
||||||
|
|||||||
Reference in New Issue
Block a user