Initializing pointers in PERI, QEQ and REPLICA
This commit is contained in:
@ -33,7 +33,8 @@ using namespace FixConst;
|
||||
/* ---------------------------------------------------------------------- */
|
||||
|
||||
FixEvent::FixEvent(LAMMPS *lmp, int narg, char **arg) :
|
||||
Fix(lmp, narg, arg)
|
||||
Fix(lmp, narg, arg), xevent(NULL), xold(NULL), vold(NULL),
|
||||
imageold(NULL), xorig(NULL), vorig(NULL), imageorig(NULL)
|
||||
{
|
||||
if (narg != 3) error->all(FLERR,"Illegal fix event command");
|
||||
|
||||
@ -42,14 +43,6 @@ FixEvent::FixEvent(LAMMPS *lmp, int narg, char **arg) :
|
||||
// perform initial allocation of atom-based array
|
||||
// register with Atom class
|
||||
|
||||
xevent = NULL;
|
||||
xold = NULL;
|
||||
vold = NULL;
|
||||
imageold = NULL;
|
||||
xorig = NULL;
|
||||
vorig = NULL;
|
||||
imageorig = NULL;
|
||||
|
||||
grow_arrays(atom->nmax);
|
||||
atom->add_callback(0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user