Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
KrisshChawla committed Nov 25, 2023
1 parent 33bc713 commit 240690e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/equations/compressible_euler_quasi_1d.jl
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ end

# Calculate 1D flux for a single point
@inline function flux(u, orientation::Integer,
equations::CompressibleEulerEquationsQuasi1D)
equations::CompressibleEulerEquationsQuasi1D)
a_rho, a_rho_v1, a_e, a = u
rho, v1, p, a = cons2prim(u, equations)
e = a_e / a
Expand Down Expand Up @@ -235,7 +235,7 @@ Further details are available in the paper:
# For flux differencing using non-conservative terms, we return the
# non-conservative flux scaled by 2. This cancels with a factor of 0.5
# in the arithmetic average of {p}.
p_avg = p_ll + p_rr
p_avg = p_ll + p_rr

z = zero(eltype(u_ll))

Expand Down
4 changes: 3 additions & 1 deletion test/test_unit.jl
Original file line number Diff line number Diff line change
Expand Up @@ -662,8 +662,10 @@ end

orientations = [1]
for orientation in orientations
@test flux_chan_etal(u, u, orientation, equations) flux(u, orientation, equations)
@test flux_chan_etal(u, u, orientation, equations)
flux(u, orientation, equations)
end
end

@timed_testset "Consistency check for HLL flux (naive): LEE" begin
flux_hll = FluxHLL(min_max_speed_naive)
Expand Down

0 comments on commit 240690e

Please sign in to comment.