Skip to content

Commit

Permalink
Merge pull request #18 from abhijeetgangan/Tersoff_unit_test
Browse files Browse the repository at this point in the history
Try again
  • Loading branch information
abhijeetgangan authored May 23, 2024
2 parents 51eae85 + 6047a23 commit 425ca0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/rigid_body_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ def total_energy(state, nbrs):

# NOTE: This test only passes after using extra capacity when generating the neighbours.
# See the comment below for more details.
nbrs = neighbor_fn.allocate(body, extra_capacity=4)
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 Expand Up @@ -861,7 +861,7 @@ def test_nvt_2d_neighbor_list(self, dtype):
step_fn = jit(step_fn)
# NOTE: This test only passes after using extra capacity when generating the neighbours.
# See the comment in test_nve_2d_neighbor_list_multi_atom_species
nbrs = neighbor_fn.allocate(body, extra_capacity=4)
nbrs = neighbor_fn.allocate(body, extra_capacity=8)
state = init_fn(key, body, mass=shape.mass(), neighbor=nbrs)
E_initial = simulate.nvt_nose_hoover_invariant(energy_fn, state, kT,
neighbor=nbrs)
Expand Down

0 comments on commit 425ca0f

Please sign in to comment.