Mercurial > repos > public > sbplib_julia
diff src/Grids/equidistant_grid.jl @ 1126:832ac87a54a3 feature/grids
Remove boundary_size
author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
---|---|
date | Wed, 05 Oct 2022 21:25:12 +0200 |
parents | c2d7e940639e |
children | dfbd62c7eb09 |
line wrap: on
line diff
--- a/src/Grids/equidistant_grid.jl Wed Oct 05 21:24:13 2022 +0200 +++ b/src/Grids/equidistant_grid.jl Wed Oct 05 21:25:12 2022 +0200 @@ -158,18 +158,6 @@ """ - boundary_size(grid::EquidistantGrid, id::CartesianBoundary) - -Returns the size of the boundary of `grid` specified by `id`. -""" -function boundary_size(grid::EquidistantGrid, id::CartesianBoundary) - orth_dims = orthogonal_dims(grid, dim(id)) - return grid.size[orth_dims] -end -boundary_size(::EquidistantGrid{1,T},::CartesianBoundary{1}) where T = () - - -""" refine(grid::EquidistantGrid, r::Int) Refines `grid` by a factor `r`. The factor is applied to the number of