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;
|
||||
rhi = tb->rhi;
|
||||
}
|
||||
if (tb->cut <= rlo || tb->cut > rhi)
|
||||
error->all(FLERR,"Invalid pair table cutoff");
|
||||
if (rlo <= 0.0) error->all(FLERR,"Invalid pair table cutoff");
|
||||
if (tb->cut <= rlo || tb->cut > rhi) error->all(FLERR, "Pair table cutoff outside of table");
|
||||
if (rlo <= 0.0) error->all(FLERR, "Invalid pair table lower boundary");
|
||||
|
||||
// match = 1 if don't need to spline read-in tables
|
||||
// this is only the case if r values needed by final tables
|
||||
|
||||
Reference in New Issue
Block a user