fix error message
This commit is contained in:
@ -1738,7 +1738,7 @@ void Atom::set_mass(const char *file, int line, int itype, double value)
|
|||||||
|
|
||||||
void Atom::set_mass(const char *file, int line, int /*narg*/, char **arg)
|
void Atom::set_mass(const char *file, int line, int /*narg*/, char **arg)
|
||||||
{
|
{
|
||||||
if (mass == nullptr) error->all(file,line,"Cannot set atom mass for atom style", atom_style);
|
if (mass == nullptr) error->all(file,line, "Cannot set atom mass for atom style {}", atom_style);
|
||||||
|
|
||||||
int lo,hi;
|
int lo,hi;
|
||||||
utils::bounds(file,line,arg[0],1,ntypes,lo,hi,error);
|
utils::bounds(file,line,arg[0],1,ntypes,lo,hi,error);
|
||||||
|
|||||||
Reference in New Issue
Block a user