Skip to content

Commit 3480bab

Browse files
committed
add isinplace for OptimizationCache
1 parent 4bd29a7 commit 3480bab

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/OptimizationBase/src/cache.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ function SciMLBase.__init(prob::SciMLBase.OptimizationProblem, opt;
9292
kwargs...)
9393
end
9494

95+
SciMLBase.isinplace(::OptimizationCache{o, iip}) where {o, iip} = iip
96+
9597
# Wrapper for fields that may change in `reinit!(cache)` of a cache.
9698
mutable struct ReInitCache{uType, P}
9799
u0::uType

0 commit comments

Comments
 (0)