Unverified Commit 7547e1da authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

make certain that the vector storage and the size_vector variable are consistent in computes

parent 5e3a7059
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -78,7 +78,7 @@ ComputeTempAsphere::ComputeTempAsphere(LAMMPS *lmp, int narg, char **arg) :

  if (mode == ROTATE) extra_dof = 0;

  vector = new double[6];
  vector = new double[size_vector];

}

+1 −1
Original line number Diff line number Diff line
@@ -71,7 +71,7 @@ ComputeTempBody::ComputeTempBody(LAMMPS *lmp, int narg, char **arg) :
    } else error->all(FLERR,"Illegal compute temp/body command");
  }

  vector = new double[6];
  vector = new double[size_vector];

}

+1 −1
Original line number Diff line number Diff line
@@ -101,7 +101,7 @@ ComputeTempCS::ComputeTempCS(LAMMPS *lmp, int narg, char **arg) :

  // allocate memory

  vector = new double[6];
  vector = new double[size_vector];
  maxatom = 0;
  vint = NULL;

+1 −1
Original line number Diff line number Diff line
@@ -149,6 +149,6 @@ void ComputeSpin::compute_vector()

void ComputeSpin::allocate()
{
  memory->create(vector,6,"compute/spin:vector");
  memory->create(vector,size_vector,"compute/spin:vector");
}
+3 −3
Original line number Diff line number Diff line
@@ -108,7 +108,7 @@ ComputePressureBocs::ComputePressureBocs(LAMMPS *lmp, int narg, char **arg) :
    error->all(FLERR,"Compute pressure/bocs requires temperature ID "
               "to include kinetic energy");

  vector = new double[6];
  vector = new double[size_vector];
  nvirial = 0;
  vptr = NULL;
}
Loading