Skip to content

Commit

Permalink
check bending before overlap
Browse files Browse the repository at this point in the history
  • Loading branch information
fgrunewald committed Aug 5, 2024
1 parent 5aa30a0 commit 6f168af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions polyply/src/random_walk.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,8 +356,8 @@ def update_positions(self, vector_bundle, current_node, prev_node):
if fulfill_geometrical_constraints(new_point, self.molecule.nodes[current_node])\
and self.checks_milestones(current_node, new_point, step_length)\
and is_restricted(new_point, last_point, self.molecule.nodes[current_node])\
and not self._is_overlap(new_point, current_node)\
and self.bendiness(new_point, current_node):
and self.bendiness(new_point, current_node)\
and not self._is_overlap(new_point, current_node):

self.nonbond_matrix.add_positions(new_point,
self.mol_idx,
Expand Down

0 comments on commit 6f168af

Please sign in to comment.