initialze omega and angmom when read data file

This commit is contained in:
Steve Plimpton
2020-05-15 13:07:34 -06:00
parent 20ad924a54
commit f1a9eab5da
6 changed files with 14 additions and 2 deletions

View File

@ -84,6 +84,7 @@ void AtomVecEllipsoid::grow_pointers()
{
ellipsoid = atom->ellipsoid;
rmass = atom->rmass;
angmom = atom->angmom;
}
/* ----------------------------------------------------------------------
@ -444,6 +445,10 @@ void AtomVecEllipsoid::data_atom_post(int ilocal)
if (rmass[ilocal] <= 0.0)
error->one(FLERR,"Invalid density in Atoms section of data file");
angmom[ilocal][0] = 0.0;
angmom[ilocal][1] = 0.0;
angmom[ilocal][2] = 0.0;
}
/* ----------------------------------------------------------------------