Match dump_modify syntax for atom and custom dump styles

This commit is contained in:
Daniel Utt
2024-04-29 13:51:26 +02:00
parent 628531dadb
commit b1e1b05e0b

View File

@ -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;