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

This commit is contained in:
sjplimp 2008-08-20 21:21:04 +00:00
parent 7e77b5a9c9
commit 7f0fad1844
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ using namespace LAMMPS_NS;
FixMSD::FixMSD(LAMMPS *lmp, int narg, char **arg) :
Fix(lmp, narg, arg)
{
if (narg != 5 && narg != 7) error->all("Illegal fix msd command");
if (narg < 5) error->all("Illegal fix msd command");
nevery = atoi(arg[3]);
if (nevery <= 0) error->all("Illegal fix msd command");
first = 1;