Initialized pointers in MISC and MOLECULE

This commit is contained in:
Anders Hafreager
2016-11-07 17:15:48 +01:00
parent 77bbf03f0f
commit 1ff75eaba2
12 changed files with 30 additions and 12 deletions

View File

@ -37,7 +37,8 @@ using namespace FixConst;
/* ---------------------------------------------------------------------- */
FixViscosity::FixViscosity(LAMMPS *lmp, int narg, char **arg) :
Fix(lmp, narg, arg)
Fix(lmp, narg, arg),
pos_index(NULL), neg_index(NULL), pos_delta(NULL), neg_delta(NULL)
{
if (narg < 7) error->all(FLERR,"Illegal fix viscosity command");