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

@ -109,6 +109,7 @@ void AtomVecSphere::grow_pointers()
{
radius = atom->radius;
rmass = atom->rmass;
omega = atom->omega;
}
/* ----------------------------------------------------------------------
@ -135,6 +136,10 @@ void AtomVecSphere::data_atom_post(int ilocal)
if (rmass[ilocal] <= 0.0)
error->one(FLERR,"Invalid density in Atoms section of data file");
omega[ilocal][0] = 0.0;
omega[ilocal][1] = 0.0;
omega[ilocal][2] = 0.0;
}
/* ----------------------------------------------------------------------