Skip to content

Commit

Permalink
Merge pull request #41 from zadorlab/internals_bug
Browse files Browse the repository at this point in the history
Internals bug
  • Loading branch information
juditzador authored Jun 10, 2024
2 parents 00f318a + aebd6b5 commit f260f0e
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions sella/internal.py
Original file line number Diff line number Diff line change
Expand Up @@ -1393,10 +1393,13 @@ def find_all_bonds(
self.add_bond((i, j), ts)
except DuplicateInternalError:
continue
c10y[i, nbonds[i]] = j
nbonds[i] += 1
c10y[j, nbonds[j]] = i
nbonds[j] += 1
if nbonds[i] < max_bonds and nbonds[j] < max_bonds:
c10y[i, nbonds[i]] = j
nbonds[i] += 1
c10y[j, nbonds[j]] = i
nbonds[j] += 1
else:
pass
first_run = False
scale *= 1.05

Expand Down

0 comments on commit f260f0e

Please # to comment.