avoid segfault when using per-particle masses

This commit is contained in:
Axel Kohlmeyer
2020-01-20 07:12:12 -05:00
parent c19085dc08
commit 3ff49dfd59

View File

@ -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