From 6149b344dee7639b3d2f1bba45fc5491b4eae2ff Mon Sep 17 00:00:00 2001 From: sjplimp Date: Fri, 16 May 2008 19:33:24 +0000 Subject: [PATCH] git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@1833 f3b2605a-c512-4ea7-a41b-209d697bcdaa --- src/fix_nve.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/fix_nve.cpp b/src/fix_nve.cpp index baf415f5ce..ec1258b5f9 100644 --- a/src/fix_nve.cpp +++ b/src/fix_nve.cpp @@ -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; }