forked from lijiext/lammps
print warning when using pair_write on EAM pair style
This commit is contained in:
parent
070bb8c5cd
commit
79f9ede38a
|
@ -1664,6 +1664,8 @@ void Pair::write_file(int narg, char **arg)
|
||||||
|
|
||||||
Pair *epair = force->pair_match("^eam",0);
|
Pair *epair = force->pair_match("^eam",0);
|
||||||
if (epair) epair->swap_eam(eamfp,&eamfp_hold);
|
if (epair) epair->swap_eam(eamfp,&eamfp_hold);
|
||||||
|
if ((comm->me == 0) && (epair))
|
||||||
|
error->warning(FLERR,"EAM pair style. Table will not include embedding term");
|
||||||
|
|
||||||
// if atom style defines charge, swap in dummy q vec
|
// if atom style defines charge, swap in dummy q vec
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue