Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielDoehring committed Oct 27, 2023
1 parent 487d08d commit 653e2cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/equations/compressible_euler_2d.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1379,7 +1379,7 @@ function flux_hlle(u_ll, u_rr, normal_direction::AbstractVector,
sqrt_rho_ll = sqrt(rho_ll)
sqrt_rho_rr = sqrt(rho_rr)
inv_sum_sqrt_rho = inv(sqrt_rho_ll + sqrt_rho_rr)

v1_roe = (sqrt_rho_ll * v1_ll + sqrt_rho_rr * v1_rr) * inv_sum_sqrt_rho
v2_roe = (sqrt_rho_ll * v2_ll + sqrt_rho_rr * v2_rr) * inv_sum_sqrt_rho
v_roe = v1_roe * normal_direction[1] + v2_roe * normal_direction[2]
Expand Down
3 changes: 1 addition & 2 deletions src/equations/compressible_euler_3d.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1462,7 +1462,7 @@ function flux_hlle(u_ll, u_rr, normal_direction::AbstractVector,
v1_roe = (sqrt_rho_ll * v1_ll + sqrt_rho_rr * v1_rr) * inv_sum_sqrt_rho
v2_roe = (sqrt_rho_ll * v2_ll + sqrt_rho_rr * v2_rr) * inv_sum_sqrt_rho
v3_roe = (sqrt_rho_ll * v3_ll + sqrt_rho_rr * v3_rr) * inv_sum_sqrt_rho
v_roe = v1_roe * normal_direction[1] + v2_roe * normal_direction[2] +
v_roe = v1_roe * normal_direction[1] + v2_roe * normal_direction[2] +
v3_roe * normal_direction[3]
v_roe_mag = v1_roe^2 + v2_roe^2 + v3_roe^2

Expand Down Expand Up @@ -1516,7 +1516,6 @@ function flux_hlle(u_ll, u_rr, normal_direction::AbstractVector,
return SVector(f1, f2, f3, f4, f5)
end


@inline function max_abs_speeds(u, equations::CompressibleEulerEquations3D)
rho, v1, v2, v3, p = cons2prim(u, equations)
c = sqrt(equations.gamma * p / rho)
Expand Down

0 comments on commit 653e2cc

Please sign in to comment.