Skip to content

Commit 2e5b253

Browse files
committed
small changes to bratu
1 parent 34f3dc5 commit 2e5b253

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

examples/bratu.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ using CairoMakie
99
# ## 1D Bratu equations
1010
# $y′′ + λ * exp(y) = 0$
1111

12+
# F(u) = 0
13+
1214
function bratu!(res, y, Δx, λ)
1315
N = length(y)
1416
for i in 1:N
@@ -48,10 +50,10 @@ lines(x, u₀, label = "Inital guess")
4850
# ## Reference solution evaluated over domain
4951
reference = true_sol_bratu.(x)
5052

51-
f, ax = lines(x, u₀, label = "Inital guess")
53+
fig, ax = lines(x, u₀, label = "Inital guess")
5254
lines!(ax, x, reference, label = "Reference solution")
5355
axislegend(ax, position = :cb)
54-
f
56+
fig
5557

5658
# ## Solving using inplace variant and CG
5759
uₖ, _ = newton_krylov!(

0 commit comments

Comments
 (0)