Skip to content

Commit

Permalink
Removed timers from MCL routines (not compatible with multi-threading)
Browse files Browse the repository at this point in the history
  • Loading branch information
amrueda committed Oct 23, 2023
1 parent 342bf60 commit f00ac01
Showing 1 changed file with 10 additions and 16 deletions.
26 changes: 10 additions & 16 deletions src/solvers/dgsem_tree/dg_2d_subcell_limiters.jl
Original file line number Diff line number Diff line change
Expand Up @@ -184,31 +184,25 @@ 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!" begin
calcflux_fhat!(fhat1_L, fhat1_R, fhat2_L, fhat2_R, u, mesh,
nonconservative_terms, equations, volume_flux_dg, dg, element,
cache)
end
calcflux_fhat!(fhat1_L, fhat1_R, fhat2_L, fhat2_R, u, mesh,
nonconservative_terms, equations, volume_flux_dg, dg, element,
cache)

# 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!" begin
calcflux_fv!(fstar1_L, fstar1_R, fstar2_L, fstar2_R, u, mesh,
nonconservative_terms, equations, volume_flux_fv, dg, element,
cache)
end
calcflux_fv!(fstar1_L, fstar1_R, fstar2_L, fstar2_R, u, mesh,
nonconservative_terms, equations, volume_flux_fv, dg, element,
cache)

# antidiffusive flux
@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
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)

# limit antidiffusive flux
calcflux_antidiffusive_limited!(u, mesh, nonconservative_terms, equations,
Expand Down

0 comments on commit f00ac01

Please sign in to comment.