Skip to content

Commit

Permalink
Corrected comment on solver.
Browse files Browse the repository at this point in the history
  • Loading branch information
iomsn committed Mar 18, 2024
1 parent 70435c0 commit 4f6a9d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion examples/structured_2d_dgsem/elixir_advection_smview.jl
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ using Trixi
advection_velocity = (0.2, -0.7)
equations = LinearScalarAdvectionEquation2D(advection_velocity)

# Create DG solver with polynomial degree = 2 and (local) Lax-Friedrichs/Rusanov flux as surface flux
# Create DG solver with polynomial degree = 3
solver = DGSEM(polydeg = 3)#, surface_flux = flux_lax_friedrichs)

# Domain size of the parent mesh.
Expand Down
1 change: 1 addition & 0 deletions src/meshes/structured_mesh_view.jl
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ function StructuredMeshView(parent::StructuredMesh{NDIMS, RealT};
@assert index_min <= index_max
@assert all(index_min .> 0)
@assert index_max <= size(parent)

cells_per_dimension = index_max .- index_min .+ 1

# Compute cells sizes `deltas`
Expand Down

0 comments on commit 4f6a9d2

Please sign in to comment.