@@ -285,7 +285,7 @@ function (linfun::LinearizationFunction)(u, p, t)
285
285
linfun. num_states == length (u) ||
286
286
error (" Number of unknown variables ($(linfun. num_states) ) does not match the number of input unknowns ($(length (u)) )" )
287
287
integ_cache = (linfun. caches,)
288
- integ = MockIntegrator {true} (u, p, t, integ_cache, nothing )
288
+ integ = MockIntegrator {true} (u, p, t, fun, integ_cache, nothing )
289
289
u, p, success = SciMLBase. get_initial_values (
290
290
linfun. prob, integ, fun, linfun. initializealg, Val (true );
291
291
linfun. initialize_kwargs... )
@@ -325,7 +325,7 @@ Mock `DEIntegrator` to allow using `CheckInit` without having to create a new in
325
325
326
326
$(TYPEDFIELDS)
327
327
"""
328
- struct MockIntegrator{iip, U, P, T, C, O} <: SciMLBase.DEIntegrator{Nothing, iip, U, T}
328
+ struct MockIntegrator{iip, U, P, T, F, C, O} <: SciMLBase.DEIntegrator{Nothing, iip, U, T}
329
329
"""
330
330
The state vector.
331
331
"""
@@ -339,6 +339,10 @@ struct MockIntegrator{iip, U, P, T, C, O} <: SciMLBase.DEIntegrator{Nothing, iip
339
339
"""
340
340
t:: T
341
341
"""
342
+ The wrapped `SciMLFunction`.
343
+ """
344
+ f:: F
345
+ """
342
346
The integrator cache.
343
347
"""
344
348
cache:: C
@@ -348,8 +352,9 @@ struct MockIntegrator{iip, U, P, T, C, O} <: SciMLBase.DEIntegrator{Nothing, iip
348
352
opts:: O
349
353
end
350
354
351
- function MockIntegrator {iip} (u:: U , p:: P , t:: T , cache:: C , opts:: O ) where {iip, U, P, T, C, O}
352
- return MockIntegrator {iip, U, P, T, C, O} (u, p, t, cache, opts)
355
+ function MockIntegrator {iip} (
356
+ u:: U , p:: P , t:: T , f:: F , cache:: C , opts:: O ) where {iip, U, P, T, F, C, O}
357
+ return MockIntegrator {iip, U, P, T, F, C, O} (u, p, t, f, cache, opts)
353
358
end
354
359
355
360
SymbolicIndexingInterface. state_values (integ:: MockIntegrator ) = integ. u
0 commit comments