@@ -111,7 +111,8 @@ function __solve_nlproblem!(
111
111
end
112
112
113
113
resid_prototype_cached = similar (resid_prototype)
114
- jac_cache = DI. prepare_jacobian (nothing , resid_prototype_cached, diffmode, u_at_nodes)
114
+ jac_cache = DI. prepare_jacobian (
115
+ nothing , resid_prototype_cached, diffmode, u_at_nodes; strict = Val (false ))
115
116
116
117
ode_cache_jac_fn = __multiple_shooting_init_jacobian_odecache (
117
118
ensemblealg, prob, jac_cache, diffmode, alg. ode_alg,
@@ -161,8 +162,8 @@ function __solve_nlproblem!(::StandardBVProblem, alg::MultipleShooting, bcresid_
161
162
else
162
163
alg. jac_alg. nonbc_diffmode
163
164
end
164
- ode_jac_cache = DI. prepare_jacobian (
165
- nothing , similar ( u_at_nodes, cur_nshoot * N), nonbc_diffmode, u_at_nodes )
165
+ ode_jac_cache = DI. prepare_jacobian (nothing , similar (u_at_nodes, cur_nshoot * N),
166
+ nonbc_diffmode, u_at_nodes; strict = Val ( false ) )
166
167
ode_cache_ode_jac_fn = __multiple_shooting_init_jacobian_odecache (
167
168
ensemblealg, prob, ode_jac_cache, nonbc_diffmode,
168
169
alg. ode_alg, cur_nshoot, u0; internal_ode_kwargs... )
@@ -175,7 +176,7 @@ function __solve_nlproblem!(::StandardBVProblem, alg::MultipleShooting, bcresid_
175
176
bc_diffmode
176
177
end
177
178
bc_jac_cache = DI. prepare_jacobian (
178
- nothing , similar (bcresid_prototype), bc_diffmode, u_at_nodes)
179
+ nothing , similar (bcresid_prototype), bc_diffmode, u_at_nodes; strict = Val ( false ) )
179
180
ode_cache_bc_jac_fn = __multiple_shooting_init_jacobian_odecache (
180
181
ensemblealg, prob, bc_jac_cache, bc_diffmode,
181
182
alg. ode_alg, cur_nshoot, u0; internal_ode_kwargs... )
0 commit comments