git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@622 f3b2605a-c512-4ea7-a41b-209d697bcdaa

This commit is contained in:
sjplimp
2007-06-20 13:17:59 +00:00
parent bde732bced
commit aaed6ebc33
131 changed files with 4277 additions and 2222 deletions

View File

@ -30,8 +30,9 @@ ComputeRotateGran::ComputeRotateGran(LAMMPS *lmp, int narg, char **arg) :
{
if (narg != 3) error->all("Illegal compute rotate/gran command");
if (atom->check_style("granular") == 0)
error->all("Must use atom style granular with compute rotate/gran");
if (atom->radius == NULL || atom->rmass == NULL || atom->omega == NULL)
error->all("Compute rotate/gran requires atom attributes "
"radius, rmass, omega");
scalar_flag = 1;
extensive = 1;