Skip to content

Commit

Permalink
Remove u-dependence in WrapFunc
Browse files Browse the repository at this point in the history
  • Loading branch information
gaurav-arya committed Mar 28, 2023
1 parent 7f4218c commit 5a27063
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/update_coeffs_testutils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ mutable struct WrapFunc{F,U,P,T}
t::T
end

(w::WrapFunc)(u) = sum(w.u) * w.p * w.t * w.func(u)
(w::WrapFunc)(u) = w.p * w.t * w.func(u)
function (w::WrapFunc)(v, u)
w.func(v, u)
lmul!(sum(w.u) * w.p * w.t, v)
lmul!(w.p * w.t, v)
end

update_coefficients(w::WrapFunc, u, p, t) = WrapFunc(w.func, u, p, t)
Expand Down

0 comments on commit 5a27063

Please sign in to comment.