changeset 1280:17d435c08773 refactor/grids

Add missing exports and alias TensorGridBoundary to CartesianBoundary
author Jonatan Werpers <jonatan@werpers.com>
date Mon, 27 Feb 2023 08:48:08 +0100
parents 1157f889bf50
children 1cc45207817e
files src/Grids/Grids.jl src/Grids/equidistant_grid.jl
diffstat 2 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/Grids/Grids.jl	Sun Feb 26 21:20:52 2023 +0100
+++ b/src/Grids/Grids.jl	Mon Feb 27 08:48:08 2023 +0100
@@ -14,6 +14,9 @@
 
 export TensorGridBoundary
 
+export grid_id
+export boundary_id
+
 export eval_on
 export getcomponent
 
@@ -30,6 +33,7 @@
 export refine
 export coarsen
 export equidistant_grid
+export CartesianBoundary
 
 abstract type BoundaryIdentifier end
 
--- a/src/Grids/equidistant_grid.jl	Sun Feb 26 21:20:52 2023 +0100
+++ b/src/Grids/equidistant_grid.jl	Mon Feb 27 08:48:08 2023 +0100
@@ -118,9 +118,11 @@
 Constructs a 1D equidistant grid.
 """
 function equidistant_grid(size::Int, limit_lower::T, limit_upper::T) where T
+    # TBD: Should this really return a TensorGrid?
 	return equidistant_grid((size,),(limit_lower,),(limit_upper,))
 end
 
+CartesianBoundary{D,BID} = TensorGridBoundary{D,BID} # TBD: What should we do about the naming of this boundary?
 
 
 """