Skip to content

Commit

Permalink
Merge branch 'dispersionrelation' of https://github.com/JoshuaLampert…
Browse files Browse the repository at this point in the history
…/DispersiveShallowWater.jl into dispersionrelation
  • Loading branch information
JoshuaLampert committed Jan 8, 2025
2 parents c99c369 + e14ba22 commit e7d1802
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/SpellCheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ jobs:
- name: Checkout Actions Repository
uses: actions/checkout@v4
- name: Check spelling
uses: crate-ci/typos@v1.28.1
uses: crate-ci/typos@v1.29.0
3 changes: 2 additions & 1 deletion test/test_unit.jl
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,8 @@ end
@test isapprox(wave_speed(disp_rel, equations, k), wave_speeds[i])
# Add test for correct broadcasting
@test isapprox(disp_rel.(equations, [k, k]), [frequencies[i], frequencies[i]])
@test isapprox(wave_speed.(disp_rel, equations, [k, k]), [wave_speeds[i], wave_speeds[i]])
@test isapprox(wave_speed.(disp_rel, equations, [k, k]),
[wave_speeds[i], wave_speeds[i]])
# For the normalized wave speed we expect c(0) = 1. Use eps() to avoid division by zero in c = omega / k
@test isapprox(wave_speed(disp_rel, equations, eps(), normalize = true), 1.0)
end
Expand Down

0 comments on commit e7d1802

Please sign in to comment.