diff --git a/src/utils.cpp b/src/utils.cpp index 4950e27d0c..31fcb5867e 100644 --- a/src/utils.cpp +++ b/src/utils.cpp @@ -1046,6 +1046,9 @@ int utils::expand_args(const char *file, int line, int narg, char **arg, int mod if (nhi < MAXSMALLINT) { nmax = nhi; expandflag = 1; + } else { + lmp->error->all(file, line, ioffset + iarg, + "Upper bound required to expand vector style variable {}", id); } } }