revert bogus change

This commit is contained in:
Axel Kohlmeyer
2023-12-14 17:19:45 -05:00
parent 5f0bdca3f2
commit c4626e982f
2 changed files with 2 additions and 2 deletions

View File

@ -233,7 +233,7 @@ void Balance::command(int narg, char **arg)
}
if (style == SHIFT) {
const int blen = bstr.size() + 1;
const int blen = bstr.size();
for (int i = 0; i < blen; i++) {
if (bstr[i] != 'x' && bstr[i] != 'y' && bstr[i] != 'z')
error->all(FLERR,"Balance shift string is invalid");

View File

@ -83,7 +83,7 @@ FixBalance::FixBalance(LAMMPS *lmp, int narg, char **arg) :
// error checks
if (lbstyle == SHIFT) {
const int blen = bstr.size() + 1;
const int blen = bstr.size();
for (int i = 0; i < blen; i++) {
if (bstr[i] != 'x' && bstr[i] != 'y' && bstr[i] != 'z')
error->all(FLERR,"Fix balance shift string is invalid");