Skip to content

Commit

Permalink
keep out of place functions
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed Jan 23, 2017
1 parent f0704f7 commit 747f90d
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/solve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,9 @@ function solve{uType,tType,isinplace,NoiseClass,F,F2,F3,algType<:AbstractSDEAlgo
end

u = copy(u0)
if !isinplace && typeof(u)<:AbstractArray
f = (t,u,du) -> (du[:] = prob.f(t,u))
g = (t,u,du) -> (du[:] = prob.g(t,u))
else
f = prob.f
g = prob.g
end

f = prob.f
g = prob.g

if typeof(alg) <: StochasticDiffEqAdaptiveAlgorithm
if adaptive
Expand Down

0 comments on commit 747f90d

Please sign in to comment.