Skip to content

Commit

Permalink
Merge pull request #15 from abhijeetgangan/Tersoff_unit_test
Browse files Browse the repository at this point in the history
Try #8
  • Loading branch information
abhijeetgangan authored May 22, 2024
2 parents 7ef06d3 + bec2667 commit 21cc95b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/rigid_body_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ def total_energy(state, nbrs):
return (energy_fn(pos, neighbor=nbrs) +
simulate.kinetic_energy(state))

nbrs = neighbor_fn.allocate(body)
nbrs = neighbor_fn.allocate(body, extra_capacity=2)
state = init_fn(key, body, 1e-3, mass=shape.mass(), neighbor=nbrs)
E_initial = total_energy(state, nbrs)

Expand Down

0 comments on commit 21cc95b

Please sign in to comment.