Skip to content

Commit

Permalink
Merge pull request #256 from albertomercurio/patch-1
Browse files Browse the repository at this point in the history
Improve the update_coefficients of ScalarOperator
  • Loading branch information
ChrisRackauckas authored Nov 2, 2024
2 parents c613fe3 + 97c53cb commit de022fb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/scalar.jl
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,8 @@ function update_coefficients!(L::ScalarOperator, u, p, t; kwargs...)
nothing
end

function update_coefficients(L::ScalarOperator, u, p, t; kwargs...)
update_coefficients!(L, u, p, t; kwargs...)
L
function SciMLOperators.update_coefficients(L::ScalarOperator, u, p, t; kwargs...)
return ScalarOperator(L.update_func(L.val, u, p, t; kwargs...), L.update_func)
end

"""
Expand Down

0 comments on commit de022fb

Please sign in to comment.