Skip to content

Commit

Permalink
Dummy for mortar calc
Browse files Browse the repository at this point in the history
  • Loading branch information
jkravs committed Jun 28, 2023
1 parent ee93f61 commit baf75e2
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions src/solvers/dgsem_tree/dg_2d.jl
Original file line number Diff line number Diff line change
Expand Up @@ -226,18 +226,18 @@ function rhs_gpu!(du, u, t,
@trixi_timeit timer() "prolong2mortars gpu" prolong2mortars_gpu!(
cache, dev_u, mesh, equations, dg.mortar, dg.surface_integral, dg)

# Calculate mortar fluxes
@trixi_timeit timer() "mortar flux" calc_mortar_flux_gpu!(
cache.elements.surface_flux_values, mesh,
have_nonconservative_terms(equations), equations,
dg.mortar, dg.surface_integral, dg, cache)

if !(backend isa CPU)
KernelAbstractions.copyto!(backend, du, dev_du)
else
Base.copyto!(du, dev_du)
end

# Calculate mortar fluxes
@trixi_timeit timer() "mortar flux" calc_mortar_flux!(
cache.elements.surface_flux_values, mesh,
have_nonconservative_terms(equations), equations,
dg.mortar, dg.surface_integral, dg, cache)

# Calculate surface integrals
@trixi_timeit timer() "surface integral" calc_surface_integral!(
du, u, mesh, equations, dg.surface_integral, dg, cache)
Expand Down Expand Up @@ -1321,6 +1321,16 @@ function calc_mortar_flux!(surface_flux_values,
return nothing
end

function calc_mortar_flux_gpu!(surface_flux_values,
mesh::TreeMesh{2},
nonconservative_terms::False, equations,
mortar_l2::LobattoLegendreMortarL2,
surface_integral, dg::DG, cache)

# skip for now since empty anyway
return nothing
end

function calc_mortar_flux!(surface_flux_values,
mesh::TreeMesh{2},
nonconservative_terms::True, equations,
Expand Down

0 comments on commit baf75e2

Please sign in to comment.