changeset 1804:7eb20abc4b70 feature/grids/tensor_grid/spacing

Review: Handle spacing for boundary grids as well?
author Vidar Stiernström <vidar.stiernstrom@gmail.com>
date Wed, 02 Oct 2024 11:11:33 -0700
parents 87ebdd6eed95
children 189e69d44056
files src/Grids/tensor_grid.jl
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/Grids/tensor_grid.jl	Tue Sep 17 08:16:58 2024 +0200
+++ b/src/Grids/tensor_grid.jl	Wed Oct 02 11:11:33 2024 -0700
@@ -47,6 +47,9 @@
 Base.size(g::TensorGrid) = LazyTensors.concatenate_tuples(size.(g.grids)...)
 Base.size(g::TensorGrid, d) = size(g)[d]
 
+# Review: Handle boundary grids as well?
+# spacing(boundary_grid(g,id)) fails right now with
+# MethodError: no method matching spacing(::ZeroDimGrid{Float64})
 spacing(g::TensorGrid) = spacing.(g.grids)
 
 function min_spacing(g::TensorGrid)