Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jlchan committed Jan 3, 2024
1 parent 5e8545a commit 3db8680
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/equations/compressible_euler_quasi_1d.jl
Original file line number Diff line number Diff line change
Expand Up @@ -194,13 +194,16 @@ Further details are available in the paper:
return SVector(z, a_ll * p_avg, z, z)
end

@inline function flux_nonconservative_chan_etal(u_ll, u_rr, normal_direction::AbstractVector,
@inline function flux_nonconservative_chan_etal(u_ll, u_rr,
normal_direction::AbstractVector,
equations::CompressibleEulerEquationsQuasi1D)
return normal_direction[1] * flux_nonconservative_chan_etal(u_ll, u_rr, 1, equations)
return normal_direction[1] *
flux_nonconservative_chan_etal(u_ll, u_rr, 1, equations)
end

@inline function flux_nonconservative_chan_etal(u_ll, u_rr,
normal_ll::AbstractVector, normal_rr::AbstractVector,
@inline function flux_nonconservative_chan_etal(u_ll, u_rr,
normal_ll::AbstractVector,
normal_rr::AbstractVector,
equations::CompressibleEulerEquationsQuasi1D)
# normal_ll should be equal to normal_rr in 1D
return flux_nonconservative_chan_etal(u_ll, u_rr, normal_ll, equations)
Expand Down Expand Up @@ -246,7 +249,7 @@ Further details are available in the paper:
return SVector(f1, f2, f3, zero(eltype(u_ll)))
end

@inline function flux_chan_etal(u_ll, u_rr, normal_direction::AbstractVector,
@inline function flux_chan_etal(u_ll, u_rr, normal_direction::AbstractVector,
equations::CompressibleEulerEquationsQuasi1D)
return normal_direction[1] * flux_chan_etal(u_ll, u_rr, 1, equations)
end
Expand Down

0 comments on commit 3db8680

Please sign in to comment.