Skip to content

Commit

Permalink
A fix that actually works
Browse files Browse the repository at this point in the history
  • Loading branch information
YingboMa committed Oct 31, 2018
1 parent a7feb13 commit 90871fa
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/initdt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,13 @@
f₀ = integrator.fsallast
f(f₀,u0,p,t)
else
# TODO: use more caches
Tf = typeof(oneunit(eltype(u0))/oneunit(t))
f₀ = similar(u0,Tf)
f₀ = OrdinaryDiffEq.get_du(integrator)
f(f₀,u0,p,t)
end

# TODO: use more caches
#tmp = cache[2]
Ttmp = typeof(oneunit(eltype(u0))/oneunit(eltype(sk)))
tmp = similar(u0,Ttmp)
tmp = similar(u0)

This comment has been minimized.

Copy link
@ChrisRackauckas

ChrisRackauckas Oct 31, 2018

Member

are the units correct?

@. tmp = u0/sk

d₀ = internalnorm(tmp)
Expand Down

0 comments on commit 90871fa

Please sign in to comment.