Skip to content

Commit 55d44d9

Browse files
Fix flux comments (#2427)
Co-authored-by: Hendrik Ranocha <[email protected]>
1 parent 0fb8c65 commit 55d44d9

17 files changed

+20
-20
lines changed

src/equations/compressible_euler_2d.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ Should be used together with [`StructuredMesh`](@ref).
384384
return boundary_flux
385385
end
386386

387-
# Calculate 2D flux for a single point
387+
# Calculate 1D flux for a single point
388388
@inline function flux(u, orientation::Integer, equations::CompressibleEulerEquations2D)
389389
rho, rho_v1, rho_v2, rho_e = u
390390
v1 = rho_v1 / rho
@@ -404,7 +404,7 @@ end
404404
return SVector(f1, f2, f3, f4)
405405
end
406406

407-
# Calculate 2D flux for a single point in the normal direction
407+
# Calculate 1D flux for a single point in the normal direction
408408
# Note, this directional vector is not normalized
409409
@inline function flux(u, normal_direction::AbstractVector,
410410
equations::CompressibleEulerEquations2D)

src/equations/hyperbolic_diffusion_1d.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ function initial_condition_eoc_test_coupled_euler_gravity(x, t,
153153
return SVector(phi, q1)
154154
end
155155

156-
# Calculate 1D flux in for a single point
156+
# Calculate 1D flux for a single point
157157
@inline function flux(u, orientation::Integer,
158158
equations::HyperbolicDiffusionEquations1D)
159159
phi, q1 = u

src/equations/hyperbolic_diffusion_2d.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ function initial_condition_eoc_test_coupled_euler_gravity(x, t,
129129
return SVector(phi, q1, q2)
130130
end
131131

132-
# Calculate 1D flux in for a single point
132+
# Calculate 1D flux for a single point
133133
@inline function flux(u, orientation::Integer,
134134
equations::HyperbolicDiffusionEquations2D)
135135
phi, q1, q2 = u

src/equations/hyperbolic_diffusion_3d.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ function initial_condition_eoc_test_coupled_euler_gravity(x, t,
156156
return SVector(phi, q1, q2, q3)
157157
end
158158

159-
# Calculate 1D flux in for a single point
159+
# Calculate 1D flux for a single point
160160
@inline function flux(u, orientation::Integer,
161161
equations::HyperbolicDiffusionEquations3D)
162162
phi, q1, q2, q3 = u

src/equations/ideal_glm_mhd_1d.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ function initial_condition_weak_blast_wave(x, t, equations::IdealGlmMhdEquations
105105
return prim2cons(SVector(rho, v1, 0, 0, p, 1, 1, 1, 0), equations)
106106
end
107107

108-
# Calculate 1D flux in for a single point
108+
# Calculate 1D flux for a single point
109109
@inline function flux(u, orientation::Integer, equations::IdealGlmMhdEquations1D)
110110
rho, rho_v1, rho_v2, rho_v3, rho_e, B1, B2, B3 = u
111111
v1 = rho_v1 / rho

src/equations/ideal_glm_mhd_2d.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ end
128128
# Pre-defined source terms should be implemented as
129129
# function source_terms_WHATEVER(u, x, t, equations::IdealGlmMhdEquations2D)
130130

131-
# Calculate 1D flux in for a single point
131+
# Calculate 1D flux for a single point
132132
@inline function flux(u, orientation::Integer, equations::IdealGlmMhdEquations2D)
133133
rho, rho_v1, rho_v2, rho_v3, rho_e, B1, B2, B3, psi = u
134134
v1 = rho_v1 / rho

src/equations/ideal_glm_mhd_3d.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ end
138138
# Pre-defined source terms should be implemented as
139139
# function source_terms_WHATEVER(u, x, t, equations::IdealGlmMhdEquations3D)
140140

141-
# Calculate 1D flux in for a single point
141+
# Calculate 1D flux for a single point
142142
@inline function flux(u, orientation::Integer, equations::IdealGlmMhdEquations3D)
143143
rho, rho_v1, rho_v2, rho_v3, rho_e, B1, B2, B3, psi = u
144144
v1 = rho_v1 / rho

src/equations/ideal_glm_mhd_multicomponent_1d.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ function initial_condition_weak_blast_wave(x, t,
153153
return prim2cons(vcat(prim_other, prim_rho), equations)
154154
end
155155

156-
# Calculate 1D flux in for a single point
156+
# Calculate 1D flux for a single point
157157
@inline function flux(u, orientation::Integer,
158158
equations::IdealGlmMhdMulticomponentEquations1D)
159159
rho_v1, rho_v2, rho_v3, rho_e, B1, B2, B3 = u

src/equations/ideal_glm_mhd_multicomponent_2d.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ function initial_condition_weak_blast_wave(x, t,
178178
return prim2cons(vcat(prim_other, prim_rho), equations)
179179
end
180180

181-
# Calculate 1D flux in for a single point
181+
# Calculate 1D flux for a single point
182182
@inline function flux(u, orientation::Integer,
183183
equations::IdealGlmMhdMulticomponentEquations2D)
184184
rho_v1, rho_v2, rho_v3, rho_e, B1, B2, B3, psi = u

src/equations/inviscid_burgers_1d.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ end
7070
# Pre-defined source terms should be implemented as
7171
# function source_terms_WHATEVER(u, x, t, equations::InviscidBurgersEquation1D)
7272

73-
# Calculate 1D flux in for a single point
73+
# Calculate 1D flux for a single point
7474
@inline function flux(u, orientation::Integer, equation::InviscidBurgersEquation1D)
7575
return SVector(0.5f0 * u[1]^2)
7676
end

0 commit comments

Comments
 (0)