diff --git a/src/compute_reduce.cpp b/src/compute_reduce.cpp index 645dbac738..bb750a2ada 100644 --- a/src/compute_reduce.cpp +++ b/src/compute_reduce.cpp @@ -156,7 +156,7 @@ ComputeReduce::ComputeReduce(LAMMPS *lmp, int narg, char **arg) : int col2 = atoi(arg[iarg+2]) - 1; if (col1 < 0 || col1 >= nvalues || col2 < 0 || col2 >= nvalues) error->all(FLERR,"Illegal compute reduce command"); - if (col1 == col2) error->all(FLERR,"Illegal compute reduce command"); + if (col1 == col2) error->all(FLERR,"Illegal compute reduce command"); if (replace[col1] >= 0 || replace[col2] >= 0) error->all(FLERR,"Invalid replace values in compute reduce"); replace[col1] = col2; diff --git a/src/verlet.cpp b/src/verlet.cpp index ad8263d9a8..43a4d69949 100644 --- a/src/verlet.cpp +++ b/src/verlet.cpp @@ -316,12 +316,11 @@ void Verlet::cleanup() /* ---------------------------------------------------------------------- clear force on own & ghost atoms - setup and clear other arrays as needed + clear other arrays as needed ------------------------------------------------------------------------- */ void Verlet::force_clear() { - if (external_force_clear) return; int i; if (external_force_clear) return;