Unverified Commit edfb4076 authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

remove dead code and unused variables

parent eafcc066
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -316,7 +316,6 @@ void PPPMDisp::init()
  for (int i=0; i<=EWALD_MAXORDER; ++i)                 // transcribe order
    if (ewald_order&(1<<i)) {                           // from pair_style
      int  k=0;
      char str[128];
      switch (i) {
        case 1:
          k = 0; break;
+1 −3
Original line number Diff line number Diff line
@@ -149,15 +149,13 @@ void MLIAPDescriptorSNAP::forward(int* map, NeighList* list, double **descriptor
void MLIAPDescriptorSNAP::backward(PairMLIAP* pairmliap, NeighList* list, double **beta, int vflag)
{
  int i,j,jnum,ninside;
  double delx,dely,delz,evdwl,rsq;
  double delx,dely,delz,rsq;
  double fij[3];
  int *jlist,*numneigh,**firstneigh;

  double **x = atom->x;
  double **f = atom->f;
  int *type = atom->type;
  int nlocal = atom->nlocal;
  int newton_pair = force->newton_pair;

  numneigh = list->numneigh;
  firstneigh = list->firstneigh;
+0 −3
Original line number Diff line number Diff line
@@ -142,7 +142,6 @@ void MLIAPModel::read_coeffs(char *coefffilename)
  }

  if (comm->me == 0) fclose(fpcoeff);

}

/* ----------------------------------------------------------------------
@@ -153,9 +152,7 @@ double MLIAPModel::memory_usage()
{
  double bytes = 0;

  int n = atom->ntypes+1;
  bytes += nelements*nparams*sizeof(double);  // coeffelem

  return bytes;
}
+4 −4
Original line number Diff line number Diff line
@@ -588,7 +588,7 @@ void FixAdapt::change_settings()
      // for scaleflag, previous_diam_scale is the scale factor on previous step

      if (ad->aparam == DIAMETER) {
        double density,scale;
        double scale;
        double *radius = atom->radius;
        double *rmass = atom->rmass;
        int *mask = atom->mask;
@@ -691,7 +691,7 @@ void FixAdapt::restore_settings()

    } else if (ad->which == ATOM) {
      if (diamflag) {
        double density,scale;
        double scale;

        double *vec = fix_diam->vstore;
        double *radius = atom->radius;
+0 −1
Original line number Diff line number Diff line
@@ -793,7 +793,6 @@ bool Info::is_active(const char *category, const char *name)
{
  if ((category == NULL) || (name == NULL)) return false;
  const char *style = "none";
  const int len = strlen(name);

  if (strcmp(category,"package") == 0) {
    if (strcmp(name,"gpu") == 0) {
Loading