Skip to content

Commit

Permalink
fix mistake in comment
Browse files Browse the repository at this point in the history
  • Loading branch information
tristanmontoya committed Jan 7, 2025
1 parent 18d9e91 commit 0f4c546
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
5 changes: 2 additions & 3 deletions src/equations/covariant_advection.jl
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,8 @@ end
return SVector(u[1], z, z)
end

# Flux for abstract covariant equations as a function of the state vector u, as well as the
# auxiliary variables aux_vars, which contain the geometric information required for the
# covariant form
# Flux as a function of the state vector u, as well as the auxiliary variables aux_vars,
# which contain the geometric information required for the covariant form
@inline function Trixi.flux(u, aux_vars, orientation::Integer,
equations::CovariantLinearAdvectionEquation2D)
z = zero(eltype(u))
Expand Down
4 changes: 2 additions & 2 deletions src/equations/covariant_shallow_water.jl
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ end
return 0.5f0 * (dot(vcov, vcon) + equations.gravity * h^2)
end

# The flux for the covariant form takes in the element container and node/element indices
# in order to give the flux access to the geometric information
# Flux as a function of the state vector u, as well as the auxiliary variables aux_vars,
# which contain the geometric information required for the covariant form
@inline function Trixi.flux(u, aux_vars, orientation::Integer,
equations::CovariantShallowWaterEquations2D)
h, h_vcon1, h_vcon2 = u
Expand Down
2 changes: 1 addition & 1 deletion src/equations/reference_data.jl
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ This problem corresponds to Case 5 of the test suite described in the following
K = 7.848f-6
R = 4.0f0

A = 0.5f0 * K * (2 * EARTH_ROTATION_RATE + omega) * (cos(lat))^2 +
A = 0.5f0 * omega * (2 * EARTH_ROTATION_RATE + omega) * (cos(lat))^2 +
0.25f0 * K^2 * (cos(lat))^(2 * R) *
((R + 1) * (cos(lat))^2 + (2 * R^2 - R - 2) - 2 * R^2 / ((cos(lat))^2))
B = 2 * (EARTH_ROTATION_RATE + omega) * K / ((R + 1) * (R + 2)) * (cos(lat))^R *
Expand Down

0 comments on commit 0f4c546

Please sign in to comment.