Commit a5b64ec8 by maarten

split off statistics

git-svn-id: svn+ssh://gitlab/srv/svn-repos/pdb-redo/trunk@275 a1961a4f-ab94-4bcc-80e8-33b5a54de466
parent 6dc40226
...@@ -225,15 +225,16 @@ bool BondMap::is1_4(const Atom& a, const Atom& b) const ...@@ -225,15 +225,16 @@ bool BondMap::is1_4(const Atom& a, const Atom& b) const
for (size_t ia = 0; result == false and ia + 1 < dim; ++ia) for (size_t ia = 0; result == false and ia + 1 < dim; ++ia)
{ {
if (ia == ixa or ia == ixb) if (ia == ixa or ia == ixb or not isBonded(ixa, ia))
continue; continue;
for (size_t ib = ia + 1; result == false and ib < dim; ++ib) for (size_t ib = ia + 1; result == false and ib < dim; ++ib)
{ {
if (ib == ixa or ib == ixb) if (ib == ixa or ib == ixb or not isBonded(ib, ixb))
continue; continue;
result = isBonded(ixa, ia) and isBonded(ia, ib) and isBonded(ib, ixb); size_t ix = ib + ia * dim - ia * (ia + 1) / 2;
result = bond[ix];
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment