From d09a85733bce19a61ae79a4cca858fcc8fc23ce6 Mon Sep 17 00:00:00 2001 From: Anders Hafreager Date: Wed, 24 Aug 2016 16:03:44 +0200 Subject: [PATCH] Fixed initialization of arrays in computes --- src/compute_cluster_atom.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compute_cluster_atom.cpp b/src/compute_cluster_atom.cpp index c81785f215..80c002d39f 100644 --- a/src/compute_cluster_atom.cpp +++ b/src/compute_cluster_atom.cpp @@ -34,7 +34,8 @@ using namespace LAMMPS_NS; /* ---------------------------------------------------------------------- */ ComputeClusterAtom::ComputeClusterAtom(LAMMPS *lmp, int narg, char **arg) : - Compute(lmp, narg, arg) + Compute(lmp, narg, arg), + clusterID(NULL) { if (narg != 4) error->all(FLERR,"Illegal compute cluster/atom command"); @@ -46,7 +47,6 @@ ComputeClusterAtom::ComputeClusterAtom(LAMMPS *lmp, int narg, char **arg) : comm_forward = 1; nmax = 0; - clusterID = NULL; } /* ---------------------------------------------------------------------- */