Mercurial > repos > public > sbplib_julia
comparison src/Grids/equidistant_grid.jl @ 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 | 11b08b242e48 |
comparison
equal
deleted
inserted
replaced
| 1279:1157f889bf50 | 1280:17d435c08773 |
|---|---|
| 116 equidistant_grid(size::Int, limit_lower::T, limit_upper::T) | 116 equidistant_grid(size::Int, limit_lower::T, limit_upper::T) |
| 117 | 117 |
| 118 Constructs a 1D equidistant grid. | 118 Constructs a 1D equidistant grid. |
| 119 """ | 119 """ |
| 120 function equidistant_grid(size::Int, limit_lower::T, limit_upper::T) where T | 120 function equidistant_grid(size::Int, limit_lower::T, limit_upper::T) where T |
| 121 # TBD: Should this really return a TensorGrid? | |
| 121 return equidistant_grid((size,),(limit_lower,),(limit_upper,)) | 122 return equidistant_grid((size,),(limit_lower,),(limit_upper,)) |
| 122 end | 123 end |
| 123 | 124 |
| 125 CartesianBoundary{D,BID} = TensorGridBoundary{D,BID} # TBD: What should we do about the naming of this boundary? | |
| 124 | 126 |
| 125 | 127 |
| 126 """ | 128 """ |
| 127 change_length(::AbstractRange, n) | 129 change_length(::AbstractRange, n) |
| 128 | 130 |
