forked from lijiext/lammps
make certain class member list is initialized to NULL before assigned to a neighbor list
This commit is contained in:
parent
87c028ed02
commit
cccf72a21d
src
|
@ -50,7 +50,7 @@ enum{NCOMMON};
|
|||
|
||||
ComputeCNPAtom::ComputeCNPAtom(LAMMPS *lmp, int narg, char **arg) :
|
||||
Compute(lmp, narg, arg),
|
||||
nearest(NULL), nnearest(NULL), cnpv(NULL)
|
||||
list(NULL), nearest(NULL), nnearest(NULL), cnpv(NULL)
|
||||
{
|
||||
if (narg != 4) error->all(FLERR,"Illegal compute cnp/atom command");
|
||||
|
||||
|
|
|
@ -43,7 +43,7 @@ enum{NCOMMON,NBOND,MAXBOND,MINBOND};
|
|||
|
||||
ComputeCNAAtom::ComputeCNAAtom(LAMMPS *lmp, int narg, char **arg) :
|
||||
Compute(lmp, narg, arg),
|
||||
nearest(NULL), nnearest(NULL), pattern(NULL)
|
||||
list(NULL), nearest(NULL), nnearest(NULL), pattern(NULL)
|
||||
{
|
||||
if (narg != 4) error->all(FLERR,"Illegal compute cna/atom command");
|
||||
|
||||
|
|
Loading…
Reference in New Issue