Skip to content

Commit

Permalink
zeros in initdt for safety
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed May 17, 2017
1 parent 0f35b38 commit 9e160da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/initdt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ function sde_determine_initdt{tType,uType}(u0::uType,t::tType,tdir,dtmax,abstol,
f₁ = f(t+tdir*dt₀,u₁)
g₁ = 3g(t+tdir*dt₀,u₁)
else
f₁ = similar(u0)
g₁ = similar(u0)
f₁ = zeros(u0)
g₁ = zeros(u0)
f(t,u0,f₁)
g(t,u0,g₁); g₁.*=3
end
Expand Down

0 comments on commit 9e160da

Please sign in to comment.