Fixed initialization of arrays in computes

This commit is contained in:
Anders Hafreager 2016-08-24 16:03:44 +02:00 committed by Axel Kohlmeyer
parent 0e7ce194eb
commit d09a85733b
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}
/* ---------------------------------------------------------------------- */