Skip to content

Commit 3854874

Browse files
committed
tests passing
1 parent 4818a66 commit 3854874

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/total.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,10 @@ end
8282

8383
A = rand(N,N)
8484
# Introduce update function for B
85-
B = MatrixOperator(zeros(N,N); update_func=(A, u, p, t) -> (A .= p))
85+
B = MatrixOperator(zeros(N,N); update_func! = (A, u, p, t) -> (A .= p))
8686
C = rand(N,N)
8787
# Introduce update function for D dependent on kwarg "matrix"
88-
D = MatrixOperator(zeros(N,N); update_func=(A, u, p, t; matrix) -> (A .= p*t*matrix),
88+
D = MatrixOperator(zeros(N,N); update_func! = (A, u, p, t; matrix) -> (A .= p*t*matrix),
8989
accepted_kwargs = (:matrix,))
9090

9191
u = rand(N2,K)
@@ -99,8 +99,8 @@ end
9999
T1 = (A, B)
100100
T2 = (C, D)
101101

102-
D1 = DiagonalOperator(zeros(N2); update_func = (d, u, p, t) -> p)
103-
D2 = DiagonalOperator(zeros(N2); update_func = (d, u, p, t; diag) -> p*t*diag,
102+
D1 = DiagonalOperator(zeros(N2); update_func! = (d, u, p, t) -> d .= p)
103+
D2 = DiagonalOperator(zeros(N2); update_func! = (d, u, p, t; diag) -> d .= p*t*diag,
104104
accepted_kwargs = (:diag,))
105105

106106
TT = [T1, T2]

0 commit comments

Comments
 (0)