Skip to content

Commit

Permalink
added bug fixed for init dt0
Browse files Browse the repository at this point in the history
  • Loading branch information
thibmonsel authored and patrick-kidger committed Jul 28, 2023
1 parent 2638a35 commit b71f8fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion diffrax/integrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ def diffeqsolve(
)
with jax.ensure_compile_time_eval():
pred = (t1 - t0) * dt0 < 0
dt0 = eqxi.error_if(dt0, pred, msg)
dt0 = eqxi.error_if(jnp.array(dt0), pred, msg)

# Backward compatibility
if isinstance(
Expand Down

0 comments on commit b71f8fa

Please sign in to comment.