@@ -170,8 +170,8 @@ function (linfun::LinearizationFunction)(u, p, t)
170
170
if u != = nothing # Handle systems without unknowns
171
171
linfun. num_states == length (u) ||
172
172
error (" Number of unknown variables ($(linfun. num_states) ) does not match the number of input unknowns ($(length (u)) )" )
173
- integ_cache = linfun. caches
174
- integ = MockIntegrator {true} (u, p, t, integ_cache)
173
+ integ_cache = ( linfun. caches,)
174
+ integ = MockIntegrator {true} (u, p, t, integ_cache, nothing )
175
175
u, p, success = SciMLBase. get_initial_values (
176
176
linfun. prob, integ, fun, linfun. initializealg, Val (true );
177
177
linfun. initialize_kwargs... )
@@ -218,7 +218,7 @@ Mock `DEIntegrator` to allow using `CheckInit` without having to create a new in
218
218
219
219
$(TYPEDFIELDS)
220
220
"""
221
- struct MockIntegrator{iip, U, P, T, C} <: SciMLBase.DEIntegrator{Nothing, iip, U, T}
221
+ struct MockIntegrator{iip, U, P, T, C, O } <: SciMLBase.DEIntegrator{Nothing, iip, U, T}
222
222
"""
223
223
The state vector.
224
224
"""
@@ -235,10 +235,14 @@ struct MockIntegrator{iip, U, P, T, C} <: SciMLBase.DEIntegrator{Nothing, iip, U
235
235
The integrator cache.
236
236
"""
237
237
cache:: C
238
+ """
239
+ Integrator "options" for `CheckInit`.
240
+ """
241
+ opts:: O
238
242
end
239
243
240
- function MockIntegrator {iip} (u:: U , p:: P , t:: T , cache:: C ) where {iip, U, P, T, C}
241
- return MockIntegrator {iip, U, P, T, C} (u, p, t, cache)
244
+ function MockIntegrator {iip} (u:: U , p:: P , t:: T , cache:: C , opts :: O ) where {iip, U, P, T, C, O }
245
+ return MockIntegrator {iip, U, P, T, C, O } (u, p, t, cache, opts )
242
246
end
243
247
244
248
SymbolicIndexingInterface. state_values (integ:: MockIntegrator ) = integ. u
0 commit comments