fix cut-n-paste error and improve error message

This commit is contained in:
Axel Kohlmeyer
2022-07-17 11:42:28 -04:00
parent e856bb2364
commit a9c072488a

View File

@ -1151,7 +1151,8 @@ void Dump::modify_params(int narg, char **arg)
}
}
if ((icol < 0) || (icol >= (int)keyword_user.size()))
error->all(FLERR, "Illegal thermo_modify command");
error->all(FLERR, "Incorrect dump_modify arguments: {} {} {}",
arg[iarg], arg[iarg+1], arg[iarg+2]);
keyword_user[icol] = arg[iarg+2];
iarg += 3;
}