@@ -233,14 +233,14 @@ function DiffEqBase.ODEFunction{iip}(sys::ODESystem, dvs, ps,
233233
234234 if Wfact
235235 _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)
244244 else
245245 Wfact_f_safe = nothing
246246 Wfact_f_t_safe = nothing
@@ -255,7 +255,7 @@ function DiffEqBase.ODEFunction{iip}(sys::ODESystem, dvs, ps,
255255 else
256256 ODEFunction {iip} (out_f,jac= jac_f,
257257 Wfact = Wfact_f,
258- Wfact_t = Wfact_t_f )
258+ Wfact_t = Wfact_f_t )
259259 end
260260end
261261
0 commit comments