remove dead code and address warnings from static code analysis

This commit is contained in:
Axel Kohlmeyer
2025-06-22 17:49:47 -04:00
parent c6478e245a
commit 1e6eeda958
7 changed files with 19 additions and 38 deletions

View File

@ -405,15 +405,11 @@ void FixLambdaThermostatAPIP::calculate_energy_change()
void FixLambdaThermostatAPIP::apply_thermostat()
{
double xtmp, ytmp, ztmp, delx, dely, delz, delvx, delvy, delvz, r, dotvu, masstmp, massj, muij,
delv, delv_m, epsilon, epsilonsq, deltaK, rinv;
double xtmp, ytmp, ztmp, masstmp, massj;
double m_cm, v_cm[3], beta_rescaling, k_rel, v_rel[3], radicand;
int i, ii, inum, *ilist;
int j, jj, jnum, *jlist;
int nlocal = atom->nlocal;
if (igroup == atom->firstgroup) nlocal = atom->nfirst;
double **x = atom->x;
double **v = atom->v;
double *rmass = atom->rmass;
@ -421,8 +417,6 @@ void FixLambdaThermostatAPIP::apply_thermostat()
int *type = atom->type;
int *mask = atom->mask;
double *e_simple = atom->apip_e_fast;
double *e_complex = atom->apip_e_precise;
double *lambda_const = atom->apip_lambda_const;
double *lambda = atom->apip_lambda;
@ -465,7 +459,6 @@ void FixLambdaThermostatAPIP::apply_thermostat()
"particles in neighbour list particle: {} {} {} groupbit {}\n",
xtmp, ytmp, ztmp, mask[i] & groupbit);
int i_collisions = 0;
double e_remain = energy_change_atom[i];
// copy ngh list