Skip to content

Commit 33f9894

Browse files
Bump crate-ci/typos from 1.42.3 to 1.44.0 in the all-github-actions group (#130)
* Bump crate-ci/typos in the all-github-actions group Bumps the all-github-actions group with 1 update: [crate-ci/typos](https://github.com/crate-ci/typos). Updates `crate-ci/typos` from 1.42.3 to 1.44.0 - [Release notes](https://github.com/crate-ci/typos/releases) - [Changelog](https://github.com/crate-ci/typos/blob/master/CHANGELOG.md) - [Commits](crate-ci/typos@v1.42.3...v1.44.0) --- updated-dependencies: - dependency-name: crate-ci/typos dependency-version: 1.44.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: all-github-actions ... Signed-off-by: dependabot[bot] <support@github.com> * add spaces to avoid spurious spellcheck ci failure --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Andrew Winters <andrew.ross.winters@liu.se>
1 parent b5cc01a commit 33f9894

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

.github/workflows/SpellCheck.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ jobs:
1010
- name: Checkout Actions Repository
1111
uses: actions/checkout@v6
1212
- name: Check spelling
13-
uses: crate-ci/typos@v1.42.3
13+
uses: crate-ci/typos@v1.44.0

src/equations/shallow_water_moments_1d.jl

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ Shallow water moment equations in one spatial dimensions. The equations are give
1414
\begin{cases}
1515
\partial_t h + \partial_x hv = 0, \\
1616
\partial_t hv + \partial_x (hv^2 + h\sum\limits_{i=1}^N \frac{\alpha_i^2}{2i+1}) = -gh\partial(h+b)_x,\\
17-
\partial_t h\alpha_i + \partial_x \left(2hv\alpha_i + h\sum\limits_{j,k=1}^N A_{ijk}\alpha_j \alpha_k \right) =
17+
\partial_t h\alpha_i + \partial_x \left(2hv\alpha_i + h\sum\limits_{j,k=1}^N A_{ijk}\alpha_j \alpha_k \right) =
1818
v\partial_x h\alpha_i - h\sum\limits_{j,k=1}^N B_{ijk} \alpha_k \partial_x h\alpha_j,
1919
\end{cases}
2020
```
2121
2222
The unknown quantities are the water and sediment height ``h``, the velocity ``v`` and the moments
23-
``\alpha_i`` for ``i = 1, ..., n_moments``. The terms ``A_{ijk}`` and ``B_{ijk}`` are moment tensors that
23+
``\alpha_i`` for ``i = 1, ..., n_moments``. The terms ``A_{ijk}`` and ``B_{ijk}`` are moment tensors that
2424
are precomputed using shifted Legendre polynomials and ``g`` is the gravitational acceleration.
2525
2626
The conservative variable water height ``h`` is measured from the bottom topography ``b``, therefore
@@ -85,7 +85,7 @@ end
8585

8686
# Allow for flexibility to set the gravitational acceleration and number of moments within an elixir
8787
# depending on the application. Here `gravity=1.0` or `gravity=9.81` are common values for the
88-
# gravitational acceleration. The reference total water height H0 defaults to 0.0 but is used for
88+
# gravitational acceleration. The reference total water height H0 defaults to 0.0 but is used for
8989
# the "lake-at-rest" well-balancedness test cases.
9090
function ShallowWaterMomentEquations1D(; gravity, H0 = zero(gravity), n_moments,
9191
nu = 0.1, lambda = 0.1, rho = 1000.0,
@@ -149,8 +149,8 @@ end
149149
"""
150150
source_term_newtonian_slip_friction(u, x, t, equations::Union{ShallowWaterMomentEquations1D,
151151
ShallowWaterLinearizedMomentEquations1D})
152-
153-
Bottom friction source term using a Newtonian slip friction model.
152+
153+
Bottom friction source term using a Newtonian slip friction model.
154154
The parameters slip length `lambda` and kinematic viscosity `nu` are set in the equation struct.
155155
156156
For details see the paper:
@@ -275,7 +275,7 @@ end
275275
@inline function Trixi.flux(u,
276276
orientation::Integer,
277277
equations::ShallowWaterMomentEquations1D)
278-
# Extract conservative variables
278+
# Extract conservative variables
279279
h = waterheight(u, equations)
280280
hv = u[2]
281281
ha = moments(u, equations)
@@ -309,7 +309,7 @@ end
309309
equations::ShallowWaterMomentEquations1D)
310310
311311
Total energy conservative split form, without the hydrostatic pressure.
312-
When the bottom topography is nonzero this scheme will be well-balanced when used with the
312+
When the bottom topography is nonzero this scheme will be well-balanced when used with the
313313
nonconservative flux [`flux_nonconservative_careaga_etal`](@ref).
314314
315315
To obtain an entropy stable and well-balanced formulation the `surface_flux` can be set as
@@ -369,7 +369,7 @@ end
369369
equations::ShallowWaterMomentEquations1D)
370370
371371
Non-symmetric path-conservative two-point flux discretizing the nonconservative term
372-
that contains the gradients of the bottom topography, the nonconservative pressure formulation and
372+
that contains the gradients of the bottom topography, the nonconservative pressure formulation and
373373
the moment tensor contributions.
374374
When the bottom topography is nonzero this scheme will be well-balanced when used with [`flux_careaga_etal`](@ref).
375375
@@ -436,11 +436,11 @@ end
436436

437437
# Provably entropy stable and well-balanced local Lax-Friedrichs dissipation for the SWME that avoids
438438
# spurious dissipation in the bottom topography.
439-
#
439+
#
440440
# For details see the paper:
441441
# - Julio Careaga, Patrick Ersing, Julian Koellermeier, Andrew R. Winters (2026)
442442
# Entropy analysis and entropy stable DG methods for the shallow water moment equations
443-
# [DOI: 10.48550/arXiv.2602.06513](https://doi.org/10.48550/arXiv.2602.06513)
443+
# [DOI: 10.48550/arXiv.2602.06513](https://doi.org/10.48550/arXiv.2602.06513)
444444
@inline function (dissipation::DissipationLaxFriedrichsEntropyVariables)(u_ll,
445445
u_rr,
446446
orientation_or_normal_direction,
@@ -464,7 +464,7 @@ end
464464
moments(u_rr, equations) / u_rr[1]))
465465
g = equations.gravity
466466

467-
# Construct the H matrix from H = yy' + Iz
467+
# Construct the H matrix from H = y y' + I z
468468
y = SVector{nmoments(equations) + 2, real(equations)}(1, v_avg, a_avg...)
469469
z = zero(MVector{nmoments(equations) + 2, real(equations)})
470470
for i in 0:nmoments(equations)
@@ -540,7 +540,7 @@ end
540540

541541
# Convert primitive to conservative variables
542542
@inline function Trixi.prim2cons(prim, equations::ShallowWaterMomentEquations1D)
543-
# To extract the total layer height and velocity we reuse the water height and momentum functions
543+
# To extract the total layer height and velocity we reuse the water height and momentum functions
544544
# from the conservative variables.
545545
H = waterheight(prim, equations)
546546
v = prim[2]
@@ -618,7 +618,7 @@ end
618618
end
619619

620620
# Calculate the error for the "lake-at-rest" test case where H = h + b should
621-
# be a constant value over time.
621+
# be a constant value over time.
622622
# Note, assumes there is a single reference water height `H0` with which to compare.
623623
@inline function Trixi.lake_at_rest_error(u, equations::ShallowWaterMomentEquations1D)
624624
h = waterheight(u, equations)

0 commit comments

Comments
 (0)