Skip to content

Commit

Permalink
Update src/meshes/structured_mesh_view.jl
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Doehring <[email protected]>
  • Loading branch information
SimonCan and DanielDoehring authored Mar 18, 2024
1 parent d313117 commit 8ebecea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/meshes/structured_mesh_view.jl
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ function StructuredMeshView(parent::StructuredMesh{NDIMS, RealT};
# Compute cells sizes `deltas`
deltas = (parent.mapping.coordinates_max .- parent.mapping.coordinates_min) ./
parent.cells_per_dimension
# Calculate the domain boundaries.
coordinates_min = parent.mapping.coordinates_min .+ deltas .* (index_min .- 1)
coordinates_max = parent.mapping.coordinates_min .+ deltas .* index_max
mapping = coordinates2mapping(coordinates_min, coordinates_max)
Expand Down

0 comments on commit 8ebecea

Please sign in to comment.