Mercurial > repos > public > sbplib_julia
comparison src/Grids/grid.jl @ 1272:3637daad71e8 refactor/grids
Add function target_manifold_dim for Grid
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Sat, 25 Feb 2023 22:49:43 +0100 |
parents | dcbac783e4c1 |
children | 7fab13c07412 |
comparison
equal
deleted
inserted
replaced
1271:5977d7628d55 | 1272:3637daad71e8 |
---|---|
11 abstract type Grid{T,D} end | 11 abstract type Grid{T,D} end |
12 | 12 |
13 | 13 |
14 Base.ndims(::Grid{T,D}) where {T,D} = D | 14 Base.ndims(::Grid{T,D}) where {T,D} = D |
15 Base.eltype(::Type{<:Grid{T}}) where T = T | 15 Base.eltype(::Type{<:Grid{T}}) where T = T |
16 target_manifold_dim(::Grid{T}) where T = _ncomponents(T) # TBD: Name of this function?! | |
16 | 17 |
17 """ | 18 """ |
18 # TODO | 19 # TODO |
19 """ | 20 """ |
20 function refine end | 21 function refine end |