Skip to content

Commit 9893b73

Browse files
Tidy up comments LBM (#2231)
1 parent cd3485b commit 9893b73

File tree

4 files changed

+2
-18
lines changed

4 files changed

+2
-18
lines changed

src/equations/lattice_boltzmann_2d.jl

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -235,9 +235,6 @@ No-slip wall boundary condition using the bounce-back approach.
235235
return flux
236236
end
237237

238-
# Pre-defined source terms should be implemented as
239-
# function source_terms_WHATEVER(u, x, t, equations::LatticeBoltzmannEquations2D)
240-
241238
# Calculate 1D flux in for a single point
242239
@inline function flux(u, orientation::Integer, equations::LatticeBoltzmannEquations2D)
243240
if orientation == 1
@@ -248,11 +245,6 @@ end
248245
return v_alpha .* u
249246
end
250247

251-
# Calculate maximum wave speed for local Lax-Friedrichs-type dissipation
252-
# @inline function max_abs_speed_naive(u_ll, u_rr, orientation::Integer, equations::LatticeBoltzmannEquations2D)
253-
# λ_max =
254-
# end
255-
256248
"""
257249
flux_godunov(u_ll, u_rr, orientation,
258250
equations::LatticeBoltzmannEquations2D)

src/equations/lattice_boltzmann_3d.jl

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -223,9 +223,6 @@ function initial_condition_constant(x, t, equations::LatticeBoltzmannEquations3D
223223
return equilibrium_distribution(rho, v1, v2, v3, equations)
224224
end
225225

226-
# Pre-defined source terms should be implemented as
227-
# function source_terms_WHATEVER(u, x, t, equations::LatticeBoltzmannEquations3D)
228-
229226
# Calculate 1D flux in for a single point
230227
@inline function flux(u, orientation::Integer, equations::LatticeBoltzmannEquations3D)
231228
if orientation == 1 # x-direction
@@ -238,11 +235,6 @@ end
238235
return v_alpha .* u
239236
end
240237

241-
# Calculate maximum wave speed for local Lax-Friedrichs-type dissipation
242-
# @inline function max_abs_speed_naive(u_ll, u_rr, orientation::Integer, equations::LatticeBoltzmannEquations3D)
243-
# λ_max =
244-
# end
245-
246238
"""
247239
flux_godunov(u_ll, u_rr, orientation,
248240
equations::LatticeBoltzmannEquations3D)

src/solvers/dgsem_tree/dg_2d.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1118,7 +1118,7 @@ end
11181118
# @views mul!(surface_flux_values[v, :, direction, large_element],
11191119
# mortar_l2.reverse_upper, fstar_upper[v, :])
11201120
# @views mul!(surface_flux_values[v, :, direction, large_element],
1121-
# mortar_l2.reverse_lower, fstar_lower[v, :], true, true)
1121+
# mortar_l2.reverse_lower, fstar_lower[v, :], true, true)
11221122
# end
11231123
# The code above could be replaced by the following code. However, the relative efficiency
11241124
# depends on the types of fstar_upper/fstar_lower and dg.l2mortar_reverse_upper.

src/solvers/dgsem_tree/dg_2d_parabolic.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,7 @@ end
725725
# @views mul!(surface_flux_values[v, :, direction, large_element],
726726
# mortar_l2.reverse_upper, fstar_upper[v, :])
727727
# @views mul!(surface_flux_values[v, :, direction, large_element],
728-
# mortar_l2.reverse_lower, fstar_lower[v, :], true, true)
728+
# mortar_l2.reverse_lower, fstar_lower[v, :], true, true)
729729
# end
730730
# The code above could be replaced by the following code. However, the relative efficiency
731731
# depends on the types of fstar_upper/fstar_lower and dg.l2mortar_reverse_upper.

0 commit comments

Comments
 (0)