Skip to content

Commit 0899073

Browse files
benegeeranocha
andauthored
Apply suggestions from code review
Co-authored-by: Hendrik Ranocha <[email protected]>
1 parent 8574036 commit 0899073

File tree

2 files changed

+11
-14
lines changed

2 files changed

+11
-14
lines changed

src/solvers/dgsem_tree/dg_2d.jl

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -367,8 +367,7 @@ function calc_volume_integral!(du, u,
367367

368368
# Calculate FV volume integral contribution
369369
fv_kernel!(du, u, mesh, have_nonconservative_terms, equations,
370-
volume_flux_fv,
371-
dg, cache, element, alpha_element)
370+
volume_flux_fv, dg, cache, element, alpha_element)
372371
end
373372
end
374373

@@ -439,8 +438,8 @@ end
439438
# - `fstar2_R::AbstractArray{<:Real, 3}`
440439
@inline function calcflux_fv!(fstar1_L, fstar1_R, fstar2_L, fstar2_R,
441440
u::AbstractArray{<:Any, 4},
442-
mesh::TreeMesh{2}, have_nonconservative_terms::False,
443-
equations,
441+
mesh::TreeMesh{2},
442+
have_nonconservative_terms::False, equations,
444443
volume_flux_fv, dg::DGSEM, element, cache)
445444
fstar1_L[:, 1, :] .= zero(eltype(fstar1_L))
446445
fstar1_L[:, nnodes(dg) + 1, :] .= zero(eltype(fstar1_L))
@@ -485,8 +484,8 @@ end
485484
# - `u_leftright::AbstractArray{<:Real, 4}`
486485
@inline function calcflux_fv!(fstar1_L, fstar1_R, fstar2_L, fstar2_R,
487486
u::AbstractArray{<:Any, 4},
488-
mesh::TreeMesh{2}, have_nonconservative_terms::True,
489-
equations,
487+
mesh::TreeMesh{2},
488+
have_nonconservative_terms::True, equations,
490489
volume_flux_fv, dg::DGSEM, element, cache)
491490
volume_flux, nonconservative_flux = volume_flux_fv
492491

src/solvers/dgsem_tree/dg_3d.jl

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -429,8 +429,7 @@ function calc_volume_integral!(du, u,
429429

430430
# Calculate FV volume integral contribution
431431
fv_kernel!(du, u, mesh, have_nonconservative_terms, equations,
432-
volume_flux_fv,
433-
dg, cache, element, alpha_element)
432+
volume_flux_fv, dg, cache, element, alpha_element)
434433
end
435434
end
436435

@@ -472,9 +471,8 @@ end
472471
fstar3_R = fstar3_R_threaded[Threads.threadid()]
473472

474473
calcflux_fv!(fstar1_L, fstar1_R, fstar2_L, fstar2_R, fstar3_L, fstar3_R, u,
475-
mesh, have_nonconservative_terms, equations, volume_flux_fv, dg,
476-
element,
477-
cache)
474+
mesh, have_nonconservative_terms, equations,
475+
volume_flux_fv, dg, element, cache)
478476

479477
# Calculate FV volume integral contribution
480478
for k in eachnode(dg), j in eachnode(dg), i in eachnode(dg)
@@ -543,11 +541,11 @@ end
543541
return nothing
544542
end
545543

546-
# Calculate the finite volume fluxes inside the elements (**without non-conservative terms**).
544+
# Calculate the finite volume fluxes inside the elements (**with non-conservative terms**).
547545
@inline function calcflux_fv!(fstar1_L, fstar1_R, fstar2_L, fstar2_R, fstar3_L,
548546
fstar3_R, u,
549-
mesh::TreeMesh{3}, have_nonconservative_terms::True,
550-
equations,
547+
mesh::TreeMesh{3},
548+
have_nonconservative_terms::True, equations,
551549
volume_flux_fv, dg::DGSEM, element, cache)
552550
volume_flux, nonconservative_flux = volume_flux_fv
553551

0 commit comments

Comments
 (0)