diff --git a/src/dump_atom.cpp b/src/dump_atom.cpp index 293ade6229..15f083ede2 100644 --- a/src/dump_atom.cpp +++ b/src/dump_atom.cpp @@ -166,11 +166,11 @@ int DumpAtom::modify_param(int narg, char **arg) } if (strcmp(arg[0],"triclinic/general") == 0) { - triclinic_general = 1; + if (narg < 2) error->all(FLERR,"Illegal dump_modify command"); + triclinic_general = utils::logical(FLERR,arg[1],false,lmp); if (triclinic_general && !domain->triclinic_general) - error->all(FLERR,"Dump_modify triclinic/general cannot be used " - "if simulation box is not general triclinic"); - return 1; + error->all(FLERR,"Dump_modify triclinic/general invalid b/c simulation box is not"); + return 2; } return 0;