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

This commit is contained in:
sjplimp 2008-05-16 19:33:24 +00:00
parent 32046ee4ab
commit 6149b344de
1 changed files with 2 additions and 1 deletions

View File

@ -27,7 +27,8 @@ using namespace LAMMPS_NS;
FixNVE::FixNVE(LAMMPS *lmp, int narg, char **arg) :
Fix(lmp, narg, arg)
{
if (narg < 3) error->all("Illegal fix nve command");
if (strcmp(style,"nve/sphere") != 0 && narg < 3)
error->all("Illegal fix nve command");
time_integrate = 1;
}