diff --git a/src/raphson.jl b/src/raphson.jl index 111a61a7a..81a05e34b 100644 --- a/src/raphson.jl +++ b/src/raphson.jl @@ -258,7 +258,7 @@ end ## some helper func ### function value_f(cache::NewtonRaphsonCache, x) - iip = get_iip(cache.prob) + iip = SciMLBase.isinplace(cache.prob) @unpack f, p = cache if iip res = zero(x) diff --git a/src/utils.jl b/src/utils.jl index 98a6cfcb4..eacf06727 100644 --- a/src/utils.jl +++ b/src/utils.jl @@ -158,8 +158,5 @@ function rfunc(r::R, c2::R, M::R, γ1::R, γ2::R, β::R) where {R <: Real} # R-f end end -function get_iip(prob::NonlinearProblem{uType, iip}) where {uType, iip} - iip -end