fix typos
This commit is contained in:
@ -233,7 +233,7 @@ void Balance::command(int narg, char **arg)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (style == SHIFT) {
|
if (style == SHIFT) {
|
||||||
const int blen = bstr.size();
|
const int blen = bstr.size() + 1;
|
||||||
for (int i = 0; i < blen; i++) {
|
for (int i = 0; i < blen; i++) {
|
||||||
if (bstr[i] != 'x' && bstr[i] != 'y' && bstr[i] != 'z')
|
if (bstr[i] != 'x' && bstr[i] != 'y' && bstr[i] != 'z')
|
||||||
error->all(FLERR,"Balance shift string is invalid");
|
error->all(FLERR,"Balance shift string is invalid");
|
||||||
|
|||||||
@ -83,7 +83,7 @@ FixBalance::FixBalance(LAMMPS *lmp, int narg, char **arg) :
|
|||||||
// error checks
|
// error checks
|
||||||
|
|
||||||
if (lbstyle == SHIFT) {
|
if (lbstyle == SHIFT) {
|
||||||
int blen = bstr.size();
|
const int blen = bstr.size() + 1;
|
||||||
for (int i = 0; i < blen; i++) {
|
for (int i = 0; i < blen; i++) {
|
||||||
if (bstr[i] != 'x' && bstr[i] != 'y' && bstr[i] != 'z')
|
if (bstr[i] != 'x' && bstr[i] != 'y' && bstr[i] != 'z')
|
||||||
error->all(FLERR,"Fix balance shift string is invalid");
|
error->all(FLERR,"Fix balance shift string is invalid");
|
||||||
|
|||||||
Reference in New Issue
Block a user