Skip to content

Commit

Permalink
Improved formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
amrueda committed Oct 12, 2023
1 parent b0caf8e commit 6dae80a
Showing 1 changed file with 17 additions and 11 deletions.
28 changes: 17 additions & 11 deletions src/solvers/dgsem_tree/dg_2d_subcell_limiters.jl
Original file line number Diff line number Diff line change
Expand Up @@ -82,25 +82,31 @@ end
fhat1_R = fhat1_R_threaded[Threads.threadid()]
fhat2_L = fhat2_L_threaded[Threads.threadid()]
fhat2_R = fhat2_R_threaded[Threads.threadid()]
@trixi_timeit timer() "calcflux_fhat!" calcflux_fhat!(fhat1_L, fhat1_R, fhat2_L, fhat2_R, u, mesh,
nonconservative_terms, equations, volume_flux_dg, dg, element, cache)

@trixi_timeit timer() "calcflux_fhat!" begin
calcflux_fhat!(fhat1_L, fhat1_R, fhat2_L, fhat2_R, u, mesh,
nonconservative_terms, equations, volume_flux_dg, dg, element,
cache)
end
# low-order FV fluxes
@unpack fstar1_L_threaded, fstar1_R_threaded, fstar2_L_threaded, fstar2_R_threaded = cache

fstar1_L = fstar1_L_threaded[Threads.threadid()]
fstar2_L = fstar2_L_threaded[Threads.threadid()]
fstar1_R = fstar1_R_threaded[Threads.threadid()]
fstar2_R = fstar2_R_threaded[Threads.threadid()]
@trixi_timeit timer() "calcflux_fv!" calcflux_fv!(fstar1_L, fstar1_R, fstar2_L, fstar2_R, u, mesh,
nonconservative_terms, equations, volume_flux_fv, dg, element, cache)
@trixi_timeit timer() "calcflux_fv!" begin
calcflux_fv!(fstar1_L, fstar1_R, fstar2_L, fstar2_R, u, mesh,
nonconservative_terms, equations, volume_flux_fv, dg, element,
cache)
end

# antidiffusive flux
@trixi_timeit timer() "calcflux_antidiffusive!" calcflux_antidiffusive!(fhat1_L, fhat1_R, fhat2_L, fhat2_R,
fstar1_L, fstar1_R, fstar2_L, fstar2_R,
u, mesh,
nonconservative_terms, equations, limiter, dg, element,
cache)
@trixi_timeit timer() "calcflux_antidiffusive!" begin
calcflux_antidiffusive!(fhat1_L, fhat1_R, fhat2_L, fhat2_R,
fstar1_L, fstar1_R, fstar2_L, fstar2_R,
u, mesh, nonconservative_terms, equations, limiter, dg,
element, cache)
end

# Calculate volume integral contribution of low-order FV flux
for j in eachnode(dg), i in eachnode(dg)
Expand Down Expand Up @@ -214,7 +220,7 @@ end
@unpack weights, derivative_split = dg.basis
@unpack flux_temp_threaded, flux_temp_nonconservative_threaded = cache
@unpack fhat_temp_threaded, fhat_nonconservative_temp_threaded, phi_threaded = cache

volume_flux_cons, volume_flux_noncons = volume_flux

flux_temp = flux_temp_threaded[Threads.threadid()]
Expand Down

0 comments on commit 6dae80a

Please sign in to comment.