Mercurial > repos > public > sbplib_julia
comparison src/Grids/equidistant_grid.jl @ 1584:d7483e8af705 feature/sbp_operators/laplace_curvilinear
Merge feature/grids/manifolds
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Fri, 26 Apr 2024 08:45:54 +0200 |
parents | b9c7bab94241 |
children | d4a6f9effcdd |
comparison
equal
deleted
inserted
replaced
1563:6e910408c51a | 1584:d7483e8af705 |
---|---|
125 throw(DomainError("side length must be postive")) | 125 throw(DomainError("side length must be postive")) |
126 end | 126 end |
127 return EquidistantGrid(range(limit_lower, limit_upper, length=size)) # TBD: Should it use LinRange instead? | 127 return EquidistantGrid(range(limit_lower, limit_upper, length=size)) # TBD: Should it use LinRange instead? |
128 end | 128 end |
129 | 129 |
130 | |
131 equidistant_grid(hb::HyperBox, dims::Vararg{Int}) = equidistant_grid(hb.a, hb.b, dims...) | |
132 | |
133 | |
130 CartesianBoundary{D,BID} = TensorGridBoundary{D,BID} # TBD: What should we do about the naming of this boundary? | 134 CartesianBoundary{D,BID} = TensorGridBoundary{D,BID} # TBD: What should we do about the naming of this boundary? |
131 | 135 |
132 | 136 |
133 """ | 137 """ |
134 change_length(r::AbstractRange, n) | 138 change_length(r::AbstractRange, n) |