Mercurial > repos > public > sbplib_julia
comparison src/Grids/grid.jl @ 1332:ad31c1022e42 refactor/grids
Rename function for coordinate size of a grid
| author | Jonatan Werpers <jonatan@werpers.com> |
|---|---|
| date | Wed, 03 May 2023 15:31:53 +0200 |
| parents | ed3ea0630825 |
| children | 79a2193da5c1 |
comparison
equal
deleted
inserted
replaced
| 1331:ed3ea0630825 | 1332:ad31c1022e42 |
|---|---|
| 17 """ | 17 """ |
| 18 abstract type Grid{T,D} end | 18 abstract type Grid{T,D} end |
| 19 | 19 |
| 20 Base.ndims(::Grid{T,D}) where {T,D} = D | 20 Base.ndims(::Grid{T,D}) where {T,D} = D |
| 21 Base.eltype(::Type{<:Grid{T}}) where T = T | 21 Base.eltype(::Type{<:Grid{T}}) where T = T |
| 22 target_manifold_dim(::Grid{T}) where T = _ncomponents(T) # TBD: Name of this function?! | 22 coordinate_size(::Grid{T}) where T = _ncomponents(T) # TBD: Name of this function?! |
| 23 component_type(::Grid{T}) where T = eltype(T) | 23 component_type(::Grid{T}) where T = eltype(T) |
| 24 | 24 |
| 25 """ | 25 """ |
| 26 refine(g::Grid, r) | 26 refine(g::Grid, r) |
| 27 | 27 |
