git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@11339 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -61,6 +61,12 @@ void AtomVecTemplate::process_args(int narg, char **arg)
|
|||||||
onemols = &atom->molecules[imol];
|
onemols = &atom->molecules[imol];
|
||||||
nset = atom->molecules[imol]->nset;
|
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
|
// set bonds_allow,angles_allow,etc based on the molecules in template set
|
||||||
// similar to how atom_style bond,angle,full set it
|
// similar to how atom_style bond,angle,full set it
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user