Unverified Commit 43edcf4c authored by Axel Kohlmeyer's avatar Axel Kohlmeyer Committed by GitHub
Browse files

Merge pull request #1275 from jrgissing/bond/react-check-template-topology-overflow

Bond/react: check for molecule template topology overflow
parents c26b2078 9ae84bc3
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -290,6 +290,8 @@ FixBondReact::FixBondReact(LAMMPS *lmp, int narg, char **arg) :
    open(files[i]);
    onemol = atom->molecules[unreacted_mol[i]];
    twomol = atom->molecules[reacted_mol[i]];
    onemol->check_attributes(0);
    twomol->check_attributes(0);
    if (onemol->natoms != twomol->natoms)
      error->all(FLERR,"Post-reacted template must contain the same "
                       "number of atoms as the pre-reacted template");