From 87525561950f1af258db9e38d730947c02373415 Mon Sep 17 00:00:00 2001 From: Yash Raj Singh Date: Fri, 15 Sep 2023 02:42:39 +0200 Subject: [PATCH] isinplace use --- src/raphson.jl | 2 +- src/utils.jl | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) 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