@@ -111,7 +111,8 @@ function __solve_nlproblem!(
111111 end
112112
113113 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 ))
115116
116117 ode_cache_jac_fn = __multiple_shooting_init_jacobian_odecache (
117118 ensemblealg, prob, jac_cache, diffmode, alg. ode_alg,
@@ -161,8 +162,8 @@ function __solve_nlproblem!(::StandardBVProblem, alg::MultipleShooting, bcresid_
161162 else
162163 alg. jac_alg. nonbc_diffmode
163164 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 ) )
166167 ode_cache_ode_jac_fn = __multiple_shooting_init_jacobian_odecache (
167168 ensemblealg, prob, ode_jac_cache, nonbc_diffmode,
168169 alg. ode_alg, cur_nshoot, u0; internal_ode_kwargs... )
@@ -175,7 +176,7 @@ function __solve_nlproblem!(::StandardBVProblem, alg::MultipleShooting, bcresid_
175176 bc_diffmode
176177 end
177178 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 ) )
179180 ode_cache_bc_jac_fn = __multiple_shooting_init_jacobian_odecache (
180181 ensemblealg, prob, bc_jac_cache, bc_diffmode,
181182 alg. ode_alg, cur_nshoot, u0; internal_ode_kwargs... )
0 commit comments