Skip to content

Commit

Permalink
calc source terms 3d offload
Browse files Browse the repository at this point in the history
  • Loading branch information
jkravs committed Sep 6, 2023
1 parent 4ea72b1 commit a597b10
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/solvers/dgsem_tree/dg_3d.jl
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,8 @@ function rhs_gpu!(du, u, t,
@trixi_timeit timer() "Jacobian gpu" apply_jacobian_gpu!(du, mesh, equations, dg, cache)

# Calculate source terms
@trixi_timeit timer() "source terms" begin
calc_sources!(du, u, t, source_terms, equations, dg, cache)
@trixi_timeit timer() "source terms gpu" begin
calc_sources_gpu!(du, u, t, source_terms, equations, dg, cache)
end

return nothing
Expand Down Expand Up @@ -1441,6 +1441,11 @@ function calc_sources!(du, u, t, source_terms::Nothing,
return nothing
end

function calc_sources_gpu!(du, u, t, source_terms::Nothing,
equations::AbstractEquations{3}, dg::DG, cache)
return nothing
end

function calc_sources!(du, u, t, source_terms,
equations::AbstractEquations{3}, dg::DG, cache)
@unpack node_coordinates = cache.elements
Expand Down

0 comments on commit a597b10

Please sign in to comment.