add explanations for "before/after simulation box is defined" errors

This commit is contained in:
Axel Kohlmeyer
2025-03-21 20:17:17 -04:00
parent 649fd86e11
commit 1b58a4695b
45 changed files with 107 additions and 73 deletions

View File

@ -339,9 +339,11 @@ void ReadData::command(int narg, char **arg)
"Reading a data file with shrinkwrap boundaries is not "
"compatible with a MSM KSpace style");
if (domain->box_exist && !addflag)
error->all(FLERR, "Cannot use read_data without add keyword after simulation box is defined");
error->all(FLERR, "Cannot use read_data without add keyword after simulation box is defined"
+ utils::errorurl(34));
if (!domain->box_exist && addflag)
error->all(FLERR, "Cannot use read_data add before simulation box is defined");
error->all(FLERR, "Cannot use read_data add before simulation box is defined"
+ utils::errorurl(33));
if (offsetflag) {
if (addflag == NONE) {
error->all(FLERR, "Cannot use read_data offset without add keyword");