11mutable struct HistoryODEIntegrator{algType, IIP, uType, tType, tdirType, ksEltype, SolType,
2- CacheType} < :
2+ CacheType, DV } < :
33 AbstractODEIntegrator{algType, IIP, uType, tType}
44 sol:: SolType
55 u:: uType
@@ -14,6 +14,7 @@ mutable struct HistoryODEIntegrator{algType, IIP, uType, tType, tdirType, ksElty
1414 saveiter:: Int
1515 saveiter_dense:: Int
1616 cache:: CacheType
17+ differential_vars:: DV
1718end
1819
1920function (integrator:: HistoryODEIntegrator )(t, deriv:: Type = Val{0 }; idxs = nothing )
@@ -31,7 +32,7 @@ mutable struct DDEIntegrator{algType, IIP, uType, tType, P, eigenType, tTypeNoUn
3132 ksEltype, SolType, F, CacheType, IType, FP, O, dAbsType,
3233 dRelType, H,
3334 tstopsType, discType, FSALType, EventErrorType,
34- CallbackCacheType} < :
35+ CallbackCacheType, DV } < :
3536 AbstractDDEIntegrator{algType, IIP, uType, tType}
3637 sol:: SolType
3738 u:: uType
@@ -89,6 +90,7 @@ mutable struct DDEIntegrator{algType, IIP, uType, tType, P, eigenType, tTypeNoUn
8990 opts:: O
9091 stats:: DDEStats
9192 history:: H
93+ differential_vars:: DV
9294 integrator:: IType
9395 fsalfirst:: FSALType
9496 fsallast:: FSALType
@@ -97,7 +99,7 @@ mutable struct DDEIntegrator{algType, IIP, uType, tType, P, eigenType, tTypeNoUn
9799 function DDEIntegrator{algType, IIP, uType, tType, P, eigenType, tTypeNoUnits,
98100 tdirType, ksEltype, SolType, F, CacheType, IType, FP,
99101 O, dAbsType, dRelType, H, tstopsType, discType,
100- FSALType, EventErrorType, CallbackCacheType}(sol, u, k, t, dt, f,
102+ FSALType, EventErrorType, CallbackCacheType, DV }(sol, u, k, t, dt, f,
101103 p, uprev, uprev2,
102104 tprev, prev_idx,
103105 prev2_idx,
@@ -133,15 +135,16 @@ mutable struct DDEIntegrator{algType, IIP, uType, tType, P, eigenType, tTypeNoUn
133135 u_modified, isdae,
134136 opts, stats,
135137 history,
138+ differential_vars,
136139 integrator) where
137140 {algType, IIP, uType, tType, P, eigenType, tTypeNoUnits, tdirType, ksEltype,
138141 SolType, F,
139142 CacheType, IType, FP, O, dAbsType, dRelType, H, tstopsType, discType,
140- FSALType, EventErrorType, CallbackCacheType}
143+ FSALType, EventErrorType, CallbackCacheType, DV }
141144 new{algType, IIP, uType, tType, P, eigenType, tTypeNoUnits, tdirType, ksEltype,
142145 SolType, F,
143146 CacheType, IType, FP, O, dAbsType, dRelType, H, tstopsType, discType, FSALType,
144- EventErrorType, CallbackCacheType}(sol, u, k, t, dt, f, p, uprev, uprev2, tprev,
147+ EventErrorType, CallbackCacheType, DV }(sol, u, k, t, dt, f, p, uprev, uprev2, tprev,
145148 prev_idx, prev2_idx, fpsolver,
146149 order_discontinuity_t0,
147150 tracked_discontinuities,
@@ -159,7 +162,7 @@ mutable struct DDEIntegrator{algType, IIP, uType, tType, P, eigenType, tTypeNoUn
159162 vector_event_last_time,
160163 last_event_error, accept_step, isout,
161164 reeval_fsal, u_modified, isdae, opts,
162- stats, history, integrator)
165+ stats, history, differential_vars, integrator)
163166 end
164167end
165168
0 commit comments