Skip to content

Commit

Permalink
Merge pull request #248 from albertomercurio/master
Browse files Browse the repository at this point in the history
Add missing inplace update_coefficients for `ScaledOperator`
  • Loading branch information
ChrisRackauckas authored Oct 13, 2024
2 parents 7ea582b + 5bce4de commit 120fc16
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/basic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,14 @@ function update_coefficients(L::ScaledOperator, u, p, t)

L
end

function update_coefficients!(L::ScaledOperator, u, p, t)
update_coefficients!(L.L, u, p, t)
update_coefficients!(L.λ, u, p, t)

L
end

getops(L::ScaledOperator) = (L.λ, L.L)
isconstant(L::ScaledOperator) = isconstant(L.L) & isconstant(L.λ)
islinear(L::ScaledOperator) = islinear(L.L)
Expand Down

0 comments on commit 120fc16

Please sign in to comment.