Skip to content

Commit 08fa265

Browse files
committed
undo minor change
1 parent b7aa4d8 commit 08fa265

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/initialize_dae.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ function _initialize_dae!(integrator, prob::ODEProblem, alg::ShampineCollocation
154154
update_coefficients!(M, u, p, t)
155155
# f(u,p,t) + M * (u0 - u)/dt
156156
tmp = isAD ? PreallocationTools.get_tmp(_tmp, u) : _tmp
157-
tmp .= (u0 .- u) .* inv(dt)
157+
@. tmp = (u0 - u) / dt
158158
mul!(_vec(out), M, _vec(tmp))
159159
f(tmp, u, p, t)
160160
out .-= tmp

0 commit comments

Comments
 (0)