Skip to content

Commit

Permalink
Add numerical support for other real types (fluxes) (trixi-framewor…
Browse files Browse the repository at this point in the history
…k#2021)

* start

* fix broken tests
  • Loading branch information
huiyuxie authored Aug 14, 2024
1 parent 5f5a232 commit 0cc13dd
Show file tree
Hide file tree
Showing 2 changed files with 88 additions and 230 deletions.
4 changes: 2 additions & 2 deletions src/equations/numerical_fluxes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ DG method (except floating point errors).
f_rr = flux(u_rr, orientation_or_normal_direction, equations)

# Average regular fluxes
return 0.5 * (f_ll + f_rr)
return 0.5f0 * (f_ll + f_rr)
end

"""
Expand Down Expand Up @@ -172,7 +172,7 @@ DissipationLocalLaxFriedrichs() = DissipationLocalLaxFriedrichs(max_abs_speed_na
equations)
λ = dissipation.max_abs_speed(u_ll, u_rr, orientation_or_normal_direction,
equations)
return -0.5 * λ * (u_rr - u_ll)
return -0.5f0 * λ * (u_rr - u_ll)
end

function Base.show(io::IO, d::DissipationLocalLaxFriedrichs)
Expand Down
Loading

0 comments on commit 0cc13dd

Please sign in to comment.