flag some more compatible time and out-of-bounds errors with errorurl()s
This commit is contained in:
@ -35,7 +35,7 @@ FixVector::FixVector(LAMMPS *lmp, int narg, char **arg) :
|
||||
if (narg < 5) utils::missing_cmd_args(FLERR, "fix vector", error);
|
||||
|
||||
nevery = utils::inumeric(FLERR, arg[3], false, lmp);
|
||||
if (nevery <= 0) error->all(FLERR, "Invalid fix vector every argument: {}", nevery);
|
||||
if (nevery <= 0) error->all(FLERR, 3, "Invalid fix vector every argument: {}", nevery);
|
||||
|
||||
nmaxval = MAXSMALLINT;
|
||||
nindex = 0;
|
||||
@ -91,7 +91,8 @@ FixVector::FixVector(LAMMPS *lmp, int narg, char **arg) :
|
||||
if (val.argindex && icompute->vector_flag == 0)
|
||||
error->all(FLERR, "Fix vector compute {} does not calculate a vector", val.id);
|
||||
if (val.argindex && (val.argindex > icompute->size_vector))
|
||||
error->all(FLERR, "Fix vector compute {} vector is accessed out-of-range", val.id);
|
||||
error->all(FLERR, "Fix vector compute {} vector is accessed out-of-range{}",
|
||||
val.id, utils::errorurl(20));
|
||||
|
||||
if (val.argindex == 0)
|
||||
value = icompute->extscalar;
|
||||
@ -109,9 +110,11 @@ FixVector::FixVector(LAMMPS *lmp, int narg, char **arg) :
|
||||
if (val.argindex && ifix->vector_flag == 0)
|
||||
error->all(FLERR, "Fix vector fix {} does not calculate a vector", val.id);
|
||||
if (val.argindex && val.argindex > ifix->size_vector)
|
||||
error->all(FLERR, "Fix vector fix {} vector is accessed out-of-range", val.id);
|
||||
error->all(FLERR, "Fix vector fix {} vector is accessed out-of-range{}",
|
||||
val.id, utils::errorurl(20));
|
||||
if (nevery % ifix->global_freq)
|
||||
error->all(FLERR, "Fix for fix {} vector not computed at compatible time", val.id);
|
||||
error->all(FLERR, "Fix for fix {} vector not computed at compatible time{}",
|
||||
val.id, utils::errorurl(7));
|
||||
|
||||
if (val.argindex == 0)
|
||||
value = ifix->extscalar;
|
||||
|
||||
Reference in New Issue
Block a user