git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@622 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user