silence static code analysis warnings

This commit is contained in:
Axel Kohlmeyer
2023-03-03 02:01:25 -05:00
parent fa38047749
commit cfb967d309
3 changed files with 2 additions and 3 deletions

View File

@ -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");

View File

@ -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

View File

@ -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;
};