Skip to content

Commit 7613da5

Browse files
Merge pull request #558 from ChrisRackauckas-Claude/fix-basis-isinplace-554
Fix isinplace detection for Basis types (#554)
2 parents 46d8a0e + 872dace commit 7613da5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/basis/type.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -605,3 +605,8 @@ end
605605
function Base.show(io::IO, ::MIME"text/plain", b::AbstractBasis)
606606
Base.print(io, b)
607607
end
608+
609+
# SciMLBase interface - declare whether this is an in-place function
610+
# IMPL=true means the basis has implicit variables and supports in-place evaluation
611+
# IMPL=false means the basis is out-of-place only
612+
DiffEqBase.isinplace(::Basis{IMPL, CTRLS}, n) where {IMPL, CTRLS} = IMPL

0 commit comments

Comments
 (0)