From 3341c4de6bbd0fff75b03173e5a530b2c6828796 Mon Sep 17 00:00:00 2001
From: sjplimp <sjplimp@f3b2605a-c512-4ea7-a41b-209d697bcdaa>
Date: Thu, 16 Jul 2015 23:36:46 +0000
Subject: [PATCH] git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@13627
 f3b2605a-c512-4ea7-a41b-209d697bcdaa

---
 src/atom.cpp | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/atom.cpp b/src/atom.cpp
index 0ca34c8d86..5b0908221f 100644
--- a/src/atom.cpp
+++ b/src/atom.cpp
@@ -1414,7 +1414,8 @@ int Atom::shape_consistency(int itype,
 
 void Atom::add_molecule(int narg, char **arg)
 {
-  if (narg < 2) error->all(FLERR,"Illegal molecule command");
+  if (narg < 1) error->all(FLERR,"Illegal molecule command");
+
   if (find_molecule(arg[0]) >= 0) 
     error->all(FLERR,"Reuse of molecule template ID");
 
@@ -1424,7 +1425,7 @@ void Atom::add_molecule(int narg, char **arg)
     memory->srealloc(molecules,(nmolecule+narg-1)*sizeof(Molecule *),
                      "atom::molecules");
 
-  // 1st molecule in set stores nset = # of sets, others store nset = 0
+  // 1st molecule in set stores nset = # of mols, others store nset = 0
 
   int ifile = 1;
   while (1) {
-- 
GitLab