Mercurial > repos > public > sbplib_julia
comparison src/Grids/grid.jl @ 1288:7de1df0aad6a refactor/grids
Add component_type function to Grid
| author | Jonatan Werpers <jonatan@werpers.com> |
|---|---|
| date | Fri, 03 Mar 2023 15:42:05 +0100 |
| parents | 1157f889bf50 |
| children | 3b7ebd135918 |
comparison
equal
deleted
inserted
replaced
| 1287:014d365c18de | 1288:7de1df0aad6a |
|---|---|
| 10 abstract type Grid{T,D} end | 10 abstract type Grid{T,D} end |
| 11 | 11 |
| 12 Base.ndims(::Grid{T,D}) where {T,D} = D | 12 Base.ndims(::Grid{T,D}) where {T,D} = D |
| 13 Base.eltype(::Type{<:Grid{T}}) where T = T | 13 Base.eltype(::Type{<:Grid{T}}) where T = T |
| 14 target_manifold_dim(::Grid{T}) where T = _ncomponents(T) # TBD: Name of this function?! | 14 target_manifold_dim(::Grid{T}) where T = _ncomponents(T) # TBD: Name of this function?! |
| 15 component_type(::Grid{T}) where T = eltype(T) | |
| 15 | 16 |
| 16 """ | 17 """ |
| 17 # TODO | 18 # TODO |
| 18 """ | 19 """ |
| 19 function refine end | 20 function refine end |
