@@ -233,14 +233,14 @@ function DiffEqBase.ODEFunction{iip}(sys::ODESystem, dvs, ps,
233
233
234
234
if Wfact
235
235
_Wfact,_Wfact_t = eval .(generate_factorized_W (sys, dvs, ps))
236
- Wfact_f_safe (u,p,t) = ModelingToolkit. fast_invokelatest (_Wfact,Matrix{eltype (u)},u,p,t)
237
- Wfact_f_safe (J,u,p,t) = ModelingToolkit. fast_invokelatest (_Wfact,Nothing,J,u,p,t)
238
- Wfact_f_t_safe (u,p,t) = ModelingToolkit. fast_invokelatest (_Wfact,Matrix{eltype (u)},u,p,t)
239
- Wfact_f_t_safe (J,u,p,t) = ModelingToolkit. fast_invokelatest (_Wfact,Nothing,J,u,p,t)
240
- Wfact_f (u,p,t) = _Wfact (u,p,t)
241
- Wfact_f (J,u,p,t) = _Wfact (J,u,p,t)
242
- Wfact_f_t (u,p,t) = _Wfact_t (u,p,t)
243
- Wfact_f_t (J,u,p,t) = _Wfact_t (J,u,p,t)
236
+ Wfact_f_safe (u,p,gam, t) = ModelingToolkit. fast_invokelatest (_Wfact,Matrix{eltype (u)},u,p,gam ,t)
237
+ Wfact_f_safe (J,u,p,gam, t) = ModelingToolkit. fast_invokelatest (_Wfact,Nothing,J,u,p,gam ,t)
238
+ Wfact_f_t_safe (u,p,gam, t) = ModelingToolkit. fast_invokelatest (_Wfact,Matrix{eltype (u)},u,p,gam ,t)
239
+ Wfact_f_t_safe (J,u,p,gam, t) = ModelingToolkit. fast_invokelatest (_Wfact,Nothing,J,u,p,gam ,t)
240
+ Wfact_f (u,p,gam, t) = _Wfact (u,p,gam ,t)
241
+ Wfact_f (J,u,p,gam, t) = _Wfact (J,u,p,gam ,t)
242
+ Wfact_f_t (u,p,gam, t) = _Wfact_t (u,p,gam ,t)
243
+ Wfact_f_t (J,u,p,gam, t) = _Wfact_t (J,u,p,gam ,t)
244
244
else
245
245
Wfact_f_safe = nothing
246
246
Wfact_f_t_safe = nothing
@@ -255,7 +255,7 @@ function DiffEqBase.ODEFunction{iip}(sys::ODESystem, dvs, ps,
255
255
else
256
256
ODEFunction {iip} (out_f,jac= jac_f,
257
257
Wfact = Wfact_f,
258
- Wfact_t = Wfact_t_f )
258
+ Wfact_t = Wfact_f_t )
259
259
end
260
260
end
261
261
0 commit comments