Skip to content

Commit 547a36c

Browse files
committed
Fix tests
1 parent 599640c commit 547a36c

10 files changed

+2
-2
lines changed
628 KB
Loading
99 KB
Loading
24.7 KB
Loading
365 KB
Loading
-15 KB
Binary file not shown.
221 KB
Loading
82.7 KB
Loading
43.5 KB
Loading
511 KB
Loading

docs/src/literate_wyos/diffusion_equations.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ using LinearSolve #src
309309
sol1 = solve(diff_eq, Tsit5(); saveat=0.05) #src
310310
sol2 = solve(fvm_prob, TRBDF2(linsolve=KLUFactorization()), saveat=0.05) #src
311311
using Test #src
312-
@test sol1[begin:end-1, 2:end] sol2[:, 2:end] rtol = 1e-3 #src
312+
@test sol1[begin:end-1, 2:end] sol2[begin:end, 2:end] rtol = 1e-3 #src
313313

314314
# To finish this example, let's solve a diffusion equation with constant Neumann boundary conditions:
315315
# ```math
@@ -386,7 +386,7 @@ resize_to_layout!(fig)
386386
fig
387387
@test_reference joinpath(@__DIR__, "../figures", "diffusion_equation_template_1.png") fig #src
388388
u_template = sol[begin:end-1, 2:end] #src
389-
u_fvm = fvm_sol[:, 2:end] #src
389+
u_fvm = fvm_sol[begin:end, 2:end] #src
390390
@test u_template u_fvm rtol = 1e-3 #src
391391

392392
# Here is a benchmark comparison.

0 commit comments

Comments
 (0)