From 8ebecea9a9e380298538e613a3c7b504c2a4b0c4 Mon Sep 17 00:00:00 2001 From: Simon Candelaresi <10759273+SimonCan@users.noreply.github.com> Date: Mon, 18 Mar 2024 16:04:00 +0000 Subject: [PATCH] Update src/meshes/structured_mesh_view.jl Co-authored-by: Daniel Doehring --- src/meshes/structured_mesh_view.jl | 1 + 1 file changed, 1 insertion(+) 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)