Skip to content

Commit 1909958

Browse files
authored
Fix complex output
1 parent a065551 commit 1909958

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/adjoint.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ for alg in (
9999

100100
sol1 = solve(prob, alg)
101101

102-
sum(sol1.u)
102+
sum(abs2.(sol1.u))
103103
end
104104
fb(b1)
105105

@@ -116,7 +116,7 @@ for alg in (
116116

117117
sol1 = solve(prob, alg)
118118

119-
sum(sol1.u)
119+
sum(abs2.(sol1.u))
120120
end
121121
fA(A)
122122

0 commit comments

Comments
 (0)