From cfb967d309165587af11f3847f82313ff566f975 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Fri, 3 Mar 2023 02:01:25 -0500 Subject: [PATCH] silence static code analysis warnings --- src/REPLICA/compute_pressure_alchemy.cpp | 2 +- src/REPLICA/fix_alchemy.cpp | 2 +- src/REPLICA/fix_alchemy.h | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/REPLICA/compute_pressure_alchemy.cpp b/src/REPLICA/compute_pressure_alchemy.cpp index d19ea1b893..bad2785fb8 100644 --- a/src/REPLICA/compute_pressure_alchemy.cpp +++ b/src/REPLICA/compute_pressure_alchemy.cpp @@ -24,7 +24,7 @@ using namespace LAMMPS_NS; /* ---------------------------------------------------------------------- */ ComputePressureAlchemy::ComputePressureAlchemy(LAMMPS *lmp, int narg, char **arg) : - Compute(lmp, narg, arg) + Compute(lmp, narg, arg), fix(nullptr) { if (narg != 4) error->all(FLERR, "Illegal compute pressure/alchemy command"); if (igroup) error->all(FLERR, "Compute pressure/alchemy must use group all"); diff --git a/src/REPLICA/fix_alchemy.cpp b/src/REPLICA/fix_alchemy.cpp index c6617c4600..29801d5c8d 100644 --- a/src/REPLICA/fix_alchemy.cpp +++ b/src/REPLICA/fix_alchemy.cpp @@ -53,8 +53,8 @@ FixAlchemy::FixAlchemy(LAMMPS *lmp, int narg, char **arg) : Fix(lmp, narg, arg), vector_flag = 1; size_vector = 3; extvector = 1; - ilevel_respa = 0; nmax = 6; + ivar = -1; sync_box = 0; // set up rank-to-rank communicator for inter-partition communication diff --git a/src/REPLICA/fix_alchemy.h b/src/REPLICA/fix_alchemy.h index 677a29b643..53c369d551 100644 --- a/src/REPLICA/fix_alchemy.h +++ b/src/REPLICA/fix_alchemy.h @@ -48,7 +48,6 @@ class FixAlchemy : public Fix { double pressure[6]; // joined pressure int progress; // for progress indicator int sync_box; // 1 of box dimensions need to be synchronized - int ilevel_respa; int nmax; int ivar; };