We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f05304 commit 06321beCopy full SHA for 06321be
src/solvers/imex_ark.jl
@@ -66,7 +66,7 @@ function cache(prob::DiffEqBase.AbstractODEProblem, alg::IMEXARKAlgorithm; kwarg
66
γs = unique(filter(!iszero, diag(a_imp)))
67
γ = length(γs) == 1 ? γs[1] : nothing # TODO: This could just be a constant.
68
jac_prototype = has_jac(T_imp!) ? T_imp!.jac_prototype : nothing
69
- newtons_method_cache = allocate_cache(newtons_method, u0, jac_prototype)
+ newtons_method_cache = isnothing(T_imp!) ? nothing : allocate_cache(newtons_method, u0, jac_prototype)
70
return IMEXARKCache(U, T_lim, T_exp, T_imp, temp, γ, newtons_method_cache)
71
end
72
0 commit comments