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

This commit is contained in:
sjplimp
2014-01-26 00:11:21 +00:00
parent 10064ce603
commit 806a382bd0

View File

@ -61,6 +61,12 @@ void AtomVecTemplate::process_args(int narg, char **arg)
onemols = &atom->molecules[imol];
nset = atom->molecules[imol]->nset;
// error check on molecule template fields
for (int i = 0; i < nset; i++) {
if (onemols[i]->typeflag == 0)
error->all(FLERR,"Atom style template molecule must have atom types");
// set bonds_allow,angles_allow,etc based on the molecules in template set
// similar to how atom_style bond,angle,full set it