Skip to content

Commit 730eef6

Browse files
committed
update_coefficients
1 parent 6488db7 commit 730eef6

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

src/func.jl

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,23 @@ function FunctionOperator(op,
171171
)
172172
end
173173

174-
# TODO - update_coefficients(L, u, p, t)
174+
function update_coefficients(L, u, p, t)
175+
op = update_coefficients(L.op, u, p, t)
176+
op_adjoint = update_coefficients(L.op_adjoint, u, p, t)
177+
op_inverse = update_coefficients(L.op_inverse, u, p, t)
178+
op_adjoint_inverse = update_coefficients(L.op_adjoint_inverse, u, p, t)
179+
180+
FunctionOperator(op,
181+
op_adjoint,
182+
op_inverse,
183+
op_adjoint_inverse,
184+
L.traits,
185+
p,
186+
t,
187+
L.cache
188+
)
189+
end
190+
175191
function update_coefficients!(L::FunctionOperator, u, p, t)
176192
ops = getops(L)
177193
for op in ops

0 commit comments

Comments
 (0)