Skip to content

Commit b71f8fa

Browse files
thibmonselpatrick-kidger
authored andcommitted
added bug fixed for init dt0
1 parent 2638a35 commit b71f8fa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

diffrax/integrate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ def diffeqsolve(
598598
)
599599
with jax.ensure_compile_time_eval():
600600
pred = (t1 - t0) * dt0 < 0
601-
dt0 = eqxi.error_if(dt0, pred, msg)
601+
dt0 = eqxi.error_if(jnp.array(dt0), pred, msg)
602602

603603
# Backward compatibility
604604
if isinstance(

0 commit comments

Comments
 (0)