Mercurial > repos > public > sbplib_julia
changeset 241:1128ab4f5758 boundary_conditions
Add size method to EquidistantGrid
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Wed, 26 Jun 2019 20:23:23 +0200 |
parents | 6bce42abf43d |
children | 9819243102dd |
files | Grids/src/EquidistantGrid.jl |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/Grids/src/EquidistantGrid.jl Wed Jun 26 20:22:58 2019 +0200 +++ b/Grids/src/EquidistantGrid.jl Wed Jun 26 20:23:23 2019 +0200 @@ -25,6 +25,8 @@ CartesianIndices(grid.size) end +Base.size(g::EquidistantGrid) = g.size + # Returns the number of dimensions of an EquidistantGrid. # # @Input: grid - an EquidistantGrid