diff --git a/src/meshes/structured_mesh_view.jl b/src/meshes/structured_mesh_view.jl index 66fe1d6c1df..ccefa2b7afb 100644 --- a/src/meshes/structured_mesh_view.jl +++ b/src/meshes/structured_mesh_view.jl @@ -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)