Unverified Commit 2fcd7b79 authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

make certain that internal data in RanMars is initialized to avoid false positive with valgrind

parent f1da2b2f
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@

#include "random_mars.h"
#include <cmath>
#include <cstring>
#include "error.h"
#include "math_const.h"

@@ -36,6 +37,7 @@ RanMars::RanMars(LAMMPS *lmp, int seed) : Pointers(lmp),

  save = 0;
  u = new double[97+1];
  memset(u,0,98*sizeof(double));

  ij = (seed-1)/30082;
  kl = (seed-1) - 30082*ij;