From 405a2fd48797a1ad6c01212d52dc8938d51c3ba7 Mon Sep 17 00:00:00 2001 From: sjplimp Date: Thu, 14 Aug 2014 13:10:39 +0000 Subject: [PATCH] git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@12309 f3b2605a-c512-4ea7-a41b-209d697bcdaa --- src/compute_bond_local.cpp | 4 ++-- src/dump_image.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/compute_bond_local.cpp b/src/compute_bond_local.cpp index 826e1aeeb9..06405312ab 100644 --- a/src/compute_bond_local.cpp +++ b/src/compute_bond_local.cpp @@ -157,8 +157,8 @@ int ComputeBondLocal::compute_bonds(int flag) atom2 = atom->map(bond_atom[atom1][i]); } else { tagprev = tag[atom1] - iatom - 1; - btype = atom->map(onemols[imol]->bond_type[atom1][i]); - atom2 = atom->map(onemols[imol]->bond_atom[atom1][i]+tagprev); + btype = atom->map(onemols[imol]->bond_type[iatom][i]); + atom2 = atom->map(onemols[imol]->bond_atom[iatom][i]+tagprev); } if (atom2 < 0 || !(mask[atom2] & groupbit)) continue; diff --git a/src/dump_image.cpp b/src/dump_image.cpp index bc8256817c..c6fd9be3ca 100644 --- a/src/dump_image.cpp +++ b/src/dump_image.cpp @@ -766,7 +766,7 @@ void DumpImage::create_image() atom2 = atom->map(bond_atom[atom1][m]); } else { tagprev = tag[i] - iatom - 1; - btype = atom->map(onemols[imol]->bond_type[atom1][m]); + btype = atom->map(onemols[imol]->bond_type[iatom][m]); atom2 = atom->map(onemols[imol]->bond_atom[iatom][m]+tagprev); }