Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielVandH committed Feb 9, 2024
1 parent 599640c commit 547a36c
Show file tree
Hide file tree
Showing 10 changed files with 2 additions and 2 deletions.
Binary file modified docs/src/figures/diffusion_equation_template_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/src/figures/laplaces_equation_template_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/src/figures/laplaces_equation_template_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/src/figures/maze_solution_1.mp4
Binary file not shown.
Binary file modified docs/src/figures/mean_exit_time_template_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/src/figures/mean_exit_time_template_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/src/figures/poissons_equation_template_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/src/figures/poissons_equation_template_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions docs/src/literate_wyos/diffusion_equations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ using LinearSolve #src
sol1 = solve(diff_eq, Tsit5(); saveat=0.05) #src
sol2 = solve(fvm_prob, TRBDF2(linsolve=KLUFactorization()), saveat=0.05) #src
using Test #src
@test sol1[begin:end-1, 2:end] sol2[:, 2:end] rtol = 1e-3 #src
@test sol1[begin:end-1, 2:end] sol2[begin:end, 2:end] rtol = 1e-3 #src

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

# Here is a benchmark comparison.
Expand Down

0 comments on commit 547a36c

Please sign in to comment.