Skip to content

Commit

Permalink
Set energies_iters to max compatible with diffrax
Browse files Browse the repository at this point in the history
  • Loading branch information
francesco-innocenti committed Jun 28, 2024
1 parent f6fea82 commit 9f1d7df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jpc/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def loop_body(state):
energies_iters = energies_iters.at[:, t].set(energies)
return t + 1, energies_iters

energies_iters = zeros((len(model), 1000))
energies_iters = zeros((len(model), 4096))
_, energies_iters = jax.lax.while_loop(
lambda state: state[0] < t_max,
loop_body,
Expand Down

0 comments on commit 9f1d7df

Please sign in to comment.