Fixed initialization of arrays in fixes

This commit is contained in:
Anders Hafreager
2016-08-25 10:33:33 +02:00
committed by Axel Kohlmeyer
parent 0192d2e359
commit db077ef186
8 changed files with 21 additions and 15 deletions

View File

@ -31,7 +31,8 @@ int Fix::instance_total = 0;
/* ---------------------------------------------------------------------- */
Fix::Fix(LAMMPS *lmp, int narg, char **arg) : Pointers(lmp)
Fix::Fix(LAMMPS *lmp, int narg, char **arg) : Pointers(lmp),
id(NULL), style(NULL), eatom(NULL), vatom(NULL)
{
instance_me = instance_total++;
@ -92,8 +93,6 @@ Fix::Fix(LAMMPS *lmp, int narg, char **arg) : Pointers(lmp)
// which may occur outside of timestepping
maxeatom = maxvatom = 0;
eatom = NULL;
vatom = NULL;
vflag_atom = 0;
// CUDA and KOKKOS per-fix data masks