Skip to content

Commit ce386bd

Browse files
authored
Merge pull request #396 from SciML/oop
fix oop/iip choice
2 parents ee79407 + 80f006c commit ce386bd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/systems/diffeqs/abstractodesystem.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,10 +212,10 @@ function DiffEqBase.ODEProblem{iip}(sys::AbstractODESystem,u0map,tspan,
212212
checkbounds = false, sparse = false,
213213
linenumbers = true, parallel=SerialForm(),
214214
kwargs...) where iip
215-
f = ODEFunction(sys;tgrad=tgrad,jac=jac,Wfact=Wfact,checkbounds=checkbounds,
215+
f = ODEFunction{iip}(sys;tgrad=tgrad,jac=jac,Wfact=Wfact,checkbounds=checkbounds,
216216
linenumbers=linenumbers,parallel=parallel,
217217
sparse=sparse)
218218
u0 = varmap_to_vars(u0map,states(sys))
219219
p = varmap_to_vars(parammap,parameters(sys))
220-
ODEProblem(f,u0,tspan,p;kwargs...)
220+
ODEProblem{iip}(f,u0,tspan,p;kwargs...)
221221
end

src/systems/diffeqs/sdesystem.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ function DiffEqBase.SDEProblem{iip}(sys::SDESystem,u0map,tspan,parammap=DiffEqBa
177177
linenumbers = true, parallel=SerialForm(),
178178
kwargs...) where iip
179179

180-
f = SDEFunction(sys;tgrad=tgrad,jac=jac,Wfact=Wfact,checkbounds=checkbounds,
180+
f = SDEFunction{iip}(sys;tgrad=tgrad,jac=jac,Wfact=Wfact,checkbounds=checkbounds,
181181
linenumbers=linenumbers,parallel=parallel,
182182
sparse=sparse)
183183
u0 = varmap_to_vars(u0map,states(sys))
@@ -191,7 +191,7 @@ function DiffEqBase.SDEProblem{iip}(sys::SDESystem,u0map,tspan,parammap=DiffEqBa
191191
noise_rate_prototype = zeros(eltype(u0),size(sys.noiseeqs))
192192
end
193193

194-
SDEProblem(f,f.g,u0,tspan,p;noise_rate_prototype=noise_rate_prototype,kwargs...)
194+
SDEProblem{iip}(f,f.g,u0,tspan,p;noise_rate_prototype=noise_rate_prototype,kwargs...)
195195
end
196196

197197
function DiffEqBase.SDEProblem(sys::SDESystem, args...; kwargs...)

0 commit comments

Comments
 (0)