dead code removal

This commit is contained in:
Axel Kohlmeyer
2023-01-10 21:55:45 -05:00
parent 9030c59932
commit 419af0cf28
6 changed files with 2 additions and 24 deletions

View File

@ -92,7 +92,6 @@ void PairBrownian::compute(int eflag, int vflag)
double prethermostat;
double xl[3], a_sq, a_sh, a_pu, Fbmag;
double p1[3], p2[3], p3[3];
int overlaps = 0;
// This section of code adjusts R0/RT0/RS0 if necessary due to changes
// in the volume fraction as a result of fix deform or moving walls
@ -187,10 +186,6 @@ void PairBrownian::compute(int eflag, int vflag)
h_sep = r - 2.0 * radi;
// check for overlaps
if (h_sep < 0.0) overlaps++;
// if less than minimum gap, use minimum gap instead
if (r < cut_inner[itype][jtype]) h_sep = cut_inner[itype][jtype] - 2.0 * radi;
@ -336,9 +331,6 @@ void PairBrownian::compute(int eflag, int vflag)
}
}
int print_overlaps = 0;
if (print_overlaps && overlaps) printf("Number of overlaps=%d\n", overlaps);
if (vflag_fdotr) virial_fdotr_compute();
}

View File

@ -72,7 +72,6 @@ void PairBrownianPoly::compute(int eflag, int vflag)
int nlocal = atom->nlocal;
double vxmu2f = force->vxmu2f;
int overlaps = 0;
double randr;
double prethermostat;
double xl[3],a_sq,a_sh,a_pu,Fbmag;
@ -176,10 +175,6 @@ void PairBrownianPoly::compute(int eflag, int vflag)
h_sep = r - radi-radj;
// check for overlaps
if (h_sep < 0.0) overlaps++;
// if less than minimum gap, use minimum gap instead
if (r < cut_inner[itype][jtype])

View File

@ -407,7 +407,6 @@ void FixSAEDVTK::invoke_vector(bigint ntimestep)
// Finding the intersection of the reciprical space and Ewald sphere
int NROW1 = 0;
int NROW2 = 0;
double dinv2 = 0.0;
double r = 0.0;
double K[3];
@ -425,11 +424,9 @@ void FixSAEDVTK::invoke_vector(bigint ntimestep)
fprintf(fp,"%g\n",vector_total[NROW1]/norm);
fflush(fp);
NROW1++;
NROW2++;
} else {
fprintf(fp,"%d\n",-1);
fflush(fp);
NROW2++;
}
}
}
@ -449,17 +446,14 @@ void FixSAEDVTK::invoke_vector(bigint ntimestep)
if ( (r > (R_Ewald - dR_Ewald) ) && (r < (R_Ewald + dR_Ewald) )) {
fprintf(fp,"%g\n",vector_total[NROW1]/norm);
fflush(fp);
NROW2++;
NROW1++;
} else {
fprintf(fp,"%d\n",-1);
fflush(fp);
NROW2++;
}
} else {
fprintf(fp,"%d\n",-1);
fflush(fp);
NROW2++;
}
}
}

View File

@ -31,7 +31,6 @@
#include "update.h"
#include <cmath>
#include <cstring>
using namespace LAMMPS_NS;

View File

@ -33,10 +33,8 @@
#include "modify.h"
#include "molecule.h"
#include "neigh_list.h"
#include "neigh_request.h"
#include "neighbor.h"
#include "pair.h"
#include "universe.h"
#include "update.h"
#include <cmath>

View File

@ -1,7 +1,7 @@
/* ----------------------------------------------------------------------
LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
http://www.lammps.org/, Sandia National Laboratories
Steve Plimpton, sjplimp@sandia.gov
https://www.lammps.org/, Sandia National Laboratories
LAMMPS development team: developers@lammps.org
Copyright (2003) Sandia Corporation. Under the terms of Contract
DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains