Unverified Commit 3ff49dfd authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

avoid segfault when using per-particle masses

parent c19085dc
Loading
Loading
Loading
Loading
+2 −2
Changes for src/USER-MISC/fix_wall_reflect_stochastic.cpp: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -198,9 +198,9 @@ FixWallReflectStochastic::~FixWallReflectStochastic()
void FixWallReflectStochastic::wall_particle(int m, int which, double coord)
{
  int i, dir, dim, side, sign;
  double vsave,factor,timecol,difftest,theta;
  double factor,timecol,difftest,theta;

  double *rmass;
  double *rmass atom->rmass;
  double *mass = atom->mass;

  // coord = current position of wall