Skip to content

Commit

Permalink
Added P4estMeshView to Union.
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCan committed Aug 16, 2024
1 parent bf612da commit 9ea5422
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/semidiscretization/semidiscretization_coupled.jl
Original file line number Diff line number Diff line change
Expand Up @@ -519,12 +519,10 @@ function (boundary_condition::BoundaryConditionCoupled)(u_inner, normal_directio
# u_boundary = SVector(ntuple(v -> boundary_condition.u_boundary[v, node_index, cell_index],
# Val(nvariables(equations))))
u_boundary = SVector(ntuple(v -> boundary_condition.u_boundary[v, 1, 1],
Val(nvariables(equations)))) .* 10.0

@autoinfiltrate
Val(nvariables(equations))))

# Calculate boundary flux
if (normal_direction[1] > 0) # u_inner is "left" of boundary, u_boundary is "right" of boundary
if (normal_direction[1] >= 0) # u_inner is "left" of boundary, u_boundary is "right" of boundary
flux = surface_flux_function(u_inner, u_boundary, normal_direction, equations)
else # u_boundary is "left" of boundary, u_inner is "right" of boundary
flux = surface_flux_function(u_boundary, u_inner, normal_direction, equations)
Expand Down
1 change: 1 addition & 0 deletions src/solvers/dgsem_structured/dg_2d.jl
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ end
mesh::Union{StructuredMesh{2},
StructuredMeshView{2},
UnstructuredMesh2D, P4estMesh{2},
P4estMeshView{2},
T8codeMesh{2}},
nonconservative_terms::True, equations,
volume_flux, dg::DGSEM, cache, alpha = true)
Expand Down

0 comments on commit 9ea5422

Please sign in to comment.