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

This commit is contained in:
sjplimp 2015-07-16 23:36:46 +00:00
parent f39666ef0b
commit 3341c4de6b
1 changed files with 3 additions and 2 deletions

View File

@ -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) {