Skip to content

Commit 3bfa34e

Browse files
committed
added bug fixed for init dt0
1 parent 2638a35 commit 3bfa34e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)