initialize pointers in order of definition
This commit is contained in:
@ -44,8 +44,9 @@ enum{BOND,LBOUND,ANGLE,DIHEDRAL};
|
||||
|
||||
FixRestrain::FixRestrain(LAMMPS *lmp, int narg, char **arg) :
|
||||
Fix(lmp, narg, arg),
|
||||
rstyle(NULL), mult(NULL), ids(NULL), kstart(NULL), kstop(NULL), target(NULL),
|
||||
deqstart(NULL), deqstop(NULL), cos_target(NULL), sin_target(NULL)
|
||||
rstyle(NULL), mult(NULL), ids(NULL), kstart(NULL), kstop(NULL),
|
||||
deqstart(NULL), deqstop(NULL), target(NULL), cos_target(NULL),
|
||||
sin_target(NULL)
|
||||
{
|
||||
if (narg < 4) error->all(FLERR,"Illegal fix restrain command");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user