Skip to content

Commit c7c2d25

Browse files
fix undef
1 parent a15e8d1 commit c7c2d25

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/OrdinaryDiffEqRosenbrock/src/rosenbrock_caches.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -764,8 +764,8 @@ function alg_cache(
764764
du2 = zero(rate_prototype)
765765

766766
# Promote t-type for AD
767-
dtC = similar(tab.C) .* dt .* false
768-
dtd = similar(tab.d) .* dt .* false
767+
dtC = zero(tab.C) .* dt
768+
dtd = zero(tab.d) .* dt
769769

770770
# Initialize other variables
771771
fsalfirst = zero(rate_prototype)

0 commit comments

Comments
 (0)