Skip to content

Commit

Permalink
Try #8
Browse files Browse the repository at this point in the history
  • Loading branch information
abhijeetgangan committed May 22, 2024
1 parent 3ddd05d commit bec2667
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 bec2667

Please sign in to comment.