forked from lijiext/lammps
Fixed initialization of arrays in fixes
This commit is contained in:
parent
db077ef186
commit
ee2f6ded29
|
@ -35,7 +35,8 @@ enum{LAYOUT_UNIFORM,LAYOUT_NONUNIFORM,LAYOUT_TILED}; // several files
|
|||
/* ---------------------------------------------------------------------- */
|
||||
|
||||
FixBalance::FixBalance(LAMMPS *lmp, int narg, char **arg) :
|
||||
Fix(lmp, narg, arg)
|
||||
Fix(lmp, narg, arg),
|
||||
fp(NULL), nimbalance(0), imbalance(NULL), imb_fix(NULL), balance(NULL), irregular(NULL)
|
||||
{
|
||||
if (narg < 6) error->all(FLERR,"Illegal fix balance command");
|
||||
|
||||
|
|
|
@ -41,7 +41,8 @@ enum{ISO,ANISO,TRICLINIC};
|
|||
/* ---------------------------------------------------------------------- */
|
||||
|
||||
FixBoxRelax::FixBoxRelax(LAMMPS *lmp, int narg, char **arg) :
|
||||
Fix(lmp, narg, arg)
|
||||
Fix(lmp, narg, arg),
|
||||
id_temp(NULL), id_press(NULL), tflag(0), pflag(0)
|
||||
{
|
||||
if (narg < 5) error->all(FLERR,"Illegal fix box/relax command");
|
||||
|
||||
|
|
Loading…
Reference in New Issue