Skip to content
This repository has been archived by the owner on Jul 19, 2023. It is now read-only.

Commit

Permalink
update for syntax changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed Jan 23, 2018
1 parent e59ce97 commit 2298ea3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/array_operator.jl
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,12 @@ Base.size(L::DiffEqArrayOperator) = size(L.A)
DiffEqBase.update_coefficients!(L::DiffEqArrayOperator,t,u) = (L.update_func(L.A,t,u); L.α = L.α(t); nothing)
DiffEqBase.update_coefficients(L::DiffEqArrayOperator,t,u) = (L.update_func(L.A,t,u); L.α = L.α(t); L)

function (L::DiffEqArrayOperator)(t,u)
function (L::DiffEqArrayOperator)(u,p,t)
update_coefficients!(L,t,u)
L*u
end

function (L::DiffEqArrayOperator)(t,u,du)
function (L::DiffEqArrayOperator)(du,u,p,t)
update_coefficients!(L,t,u)
A_mul_B!(du,L,u)
end
Expand Down
4 changes: 2 additions & 2 deletions src/derivative_operators/derivative_operator.jl
Original file line number Diff line number Diff line change
Expand Up @@ -434,8 +434,8 @@ end
#################################################################################################


(L::DerivativeOperator)(t,u) = L*u
(L::DerivativeOperator)(t,u,du) = A_mul_B!(du,L,u)
(L::DerivativeOperator)(u,p,t) = L*u
(L::DerivativeOperator)(du,u,p,t) = A_mul_B!(du,L,u)
get_LBC(::DerivativeOperator{A,B,C,D}) where {A,B,C,D} = C
get_RBC(::DerivativeOperator{A,B,C,D}) where {A,B,C,D} = D

Expand Down

0 comments on commit 2298ea3

Please sign in to comment.