Skip to content

Commit 28f74d4

Browse files
Merge pull request #188 from ranocha/pull-request/bd831ffd
removed rate_prototype from ODEIntegrator
2 parents e38f14f + bd831ff commit 28f74d4

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

src/integrators/type.jl

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ mutable struct DEOptions{uEltype,uEltypeNoUnits,tTypeNoUnits,tType,F2,F3,F4,F5,F
4040
stop_at_next_tstop::Bool
4141
end
4242

43-
mutable struct ODEIntegrator{algType<:OrdinaryDiffEqAlgorithm,uType,tType,tTypeNoUnits,tdirType,ksEltype,SolType,rateType,F,ProgressType,CacheType,O,FSALType} <: AbstractODEIntegrator
43+
mutable struct ODEIntegrator{algType<:OrdinaryDiffEqAlgorithm,uType,tType,tTypeNoUnits,tdirType,ksEltype,SolType,F,ProgressType,CacheType,O,FSALType} <: AbstractODEIntegrator
4444
sol::SolType
4545
u::uType
4646
k::ksEltype
@@ -51,7 +51,6 @@ mutable struct ODEIntegrator{algType<:OrdinaryDiffEqAlgorithm,uType,tType,tTypeN
5151
uprev2::uType
5252
tprev::tType
5353
alg::algType
54-
rate_prototype::rateType
5554
notsaveat_idxs::Vector{Int}
5655
dtcache::tType
5756
dtchangeable::Bool
@@ -81,19 +80,19 @@ mutable struct ODEIntegrator{algType<:OrdinaryDiffEqAlgorithm,uType,tType,tTypeN
8180
fsallast::FSALType
8281

8382
function (::Type{ODEIntegrator{algType,uType,tType,tTypeNoUnits,tdirType,ksEltype,SolType,
84-
rateType,F,ProgressType,CacheType,O,FSALType}}){algType,uType,tType,tTypeNoUnits,tdirType,ksEltype,SolType,
85-
rateType,F,ProgressType,CacheType,O,FSALType}(
83+
F,ProgressType,CacheType,O,FSALType}}){algType,uType,tType,tTypeNoUnits,tdirType,ksEltype,SolType,
84+
F,ProgressType,CacheType,O,FSALType}(
8685
sol,u,k,t,dt,f,uprev,uprev2,tprev,
87-
alg,rate_prototype,notsaveat_idxs,dtcache,dtchangeable,dtpropose,tdir,
86+
alg,notsaveat_idxs,dtcache,dtchangeable,dtpropose,tdir,
8887
EEst,qold,q11,erracc,dtacc,success_iter,
8988
iter,saveiter,saveiter_dense,prog,cache,
9089
kshortsize,force_stepfail,last_stepfail,just_hit_tstop,
9190
accept_step,isout,reeval_fsal,u_modified,opts)
9291

9392
new{algType,uType,tType,tTypeNoUnits,tdirType,ksEltype,SolType,
94-
rateType,F,ProgressType,CacheType,O,FSALType}(
93+
F,ProgressType,CacheType,O,FSALType}(
9594
sol,u,k,t,dt,f,uprev,uprev2,tprev,
96-
alg,rate_prototype,notsaveat_idxs,dtcache,dtchangeable,dtpropose,tdir,
95+
alg,notsaveat_idxs,dtcache,dtchangeable,dtpropose,tdir,
9796
EEst,qold,q11,erracc,dtacc,success_iter,
9897
iter,saveiter,saveiter_dense,prog,cache,
9998
kshortsize,force_stepfail,last_stepfail,just_hit_tstop,

src/solve.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,10 +293,10 @@ function init{algType<:OrdinaryDiffEqAlgorithm,recompile_flag}(
293293

294294
integrator = ODEIntegrator{algType,uType,tType,
295295
tTypeNoUnits,typeof(tdir),typeof(k),SolType,
296-
typeof(rate_prototype),FType,typeof(prog),cacheType,
296+
FType,typeof(prog),cacheType,
297297
typeof(opts),fsal_typeof(alg,rate_prototype)}(
298298
sol,u,k,t,tType(dt),f,uprev,uprev2,tprev,
299-
alg,rate_prototype,notsaveat_idxs,dtcache,dtchangeable,
299+
alg,notsaveat_idxs,dtcache,dtchangeable,
300300
dtpropose,tdir,EEst,qoldinit,q11,
301301
erracc,dtacc,success_iter,
302302
iter,saveiter,saveiter_dense,prog,cache,

0 commit comments

Comments
 (0)