diff --git a/src/EXTRA-FIX/fix_deform_pressure.cpp b/src/EXTRA-FIX/fix_deform_pressure.cpp index e2bcdd7f4e..672f097c2d 100644 --- a/src/EXTRA-FIX/fix_deform_pressure.cpp +++ b/src/EXTRA-FIX/fix_deform_pressure.cpp @@ -438,8 +438,6 @@ void FixDeformPressure::init() // error if style PRESSURE/ERATEER for yz, can't calculate if box flip occurs if (set[3].style && set[5].style) { - int flag = 0; - double lo,hi; if (flipflag && set[3].style == PRESSURE) error->all(FLERR, "Fix {} cannot use yz pressure with xy", style); if (flipflag && set[3].style == ERATERS) diff --git a/src/ML-IAP/mliap_unified.cpp b/src/ML-IAP/mliap_unified.cpp index 7697204e44..3f0d0b2a8f 100644 --- a/src/ML-IAP/mliap_unified.cpp +++ b/src/ML-IAP/mliap_unified.cpp @@ -246,7 +246,6 @@ void LAMMPS_NS::update_pair_energy(MLIAPData *data, double *eij) { double e_total = 0.0; const auto nlistatoms = data->nlistatoms; - const auto nlocal = data->nlocal; for (int ii = 0; ii < nlistatoms; ii++) data->eatoms[ii] = 0; for (int ii = 0; ii < data->npairs; ii++) { @@ -268,7 +267,6 @@ void LAMMPS_NS::update_pair_forces(MLIAPData *data, double *fij) { //Bugfix: need to account for Null atoms in local atoms //const auto nlistatoms = data->nlistatoms; - const auto nlocal = data->nlocal; double **f = data->f; for (int ii = 0; ii < data->npairs; ii++) { int ii3 = ii * 3; diff --git a/src/create_atoms.cpp b/src/create_atoms.cpp index 2912701159..ded040b567 100644 --- a/src/create_atoms.cpp +++ b/src/create_atoms.cpp @@ -1505,7 +1505,7 @@ void CreateAtoms::get_xmol(double *center) onemol->quat_external = quatone; - int n, natoms = onemol->natoms; + int natoms = onemol->natoms; double xnew[3]; for (int m = 0; m < natoms; m++) { MathExtra::matvec(rotmat, onemol->dx[m], xnew);