improve error messages for incorrect/inconsistent table data
This commit is contained in:
@ -291,9 +291,8 @@ void PairTable::coeff(int narg, char **arg)
|
|||||||
rlo = tb->rlo;
|
rlo = tb->rlo;
|
||||||
rhi = tb->rhi;
|
rhi = tb->rhi;
|
||||||
}
|
}
|
||||||
if (tb->cut <= rlo || tb->cut > rhi)
|
if (tb->cut <= rlo || tb->cut > rhi) error->all(FLERR, "Pair table cutoff outside of table");
|
||||||
error->all(FLERR,"Invalid pair table cutoff");
|
if (rlo <= 0.0) error->all(FLERR, "Invalid pair table lower boundary");
|
||||||
if (rlo <= 0.0) error->all(FLERR,"Invalid pair table cutoff");
|
|
||||||
|
|
||||||
// match = 1 if don't need to spline read-in tables
|
// match = 1 if don't need to spline read-in tables
|
||||||
// this is only the case if r values needed by final tables
|
// this is only the case if r values needed by final tables
|
||||||
|
|||||||
Reference in New Issue
Block a user