Mercurial > repos > public > sbplib_julia
comparison src/Grids/manifolds.jl @ 1927:fe18cdad2b27 feature/grids/manifolds
Test construction of CartesianAtlas with different type on the charts
| author | Jonatan Werpers <jonatan@werpers.com> |
|---|---|
| date | Fri, 07 Feb 2025 08:44:36 +0100 |
| parents | 297e3d74f697 |
| children | 96b3e9c516fe |
comparison
equal
deleted
inserted
replaced
| 1926:c02797f146c1 | 1927:fe18cdad2b27 |
|---|---|
| 56 | 56 |
| 57 TBD: What exactly should this return? | 57 TBD: What exactly should this return? |
| 58 """ | 58 """ |
| 59 function connections end | 59 function connections end |
| 60 | 60 |
| 61 struct CartesianAtlas <: Atlas | 61 struct CartesianAtlas{D,C<:Chart} <: Atlas |
| 62 charts::Matrix{Chart} | 62 charts::AbstractArray{C,D} |
| 63 end | 63 end |
| 64 | 64 |
| 65 charts(a::CartesianAtlas) = a.charts | 65 charts(a::CartesianAtlas) = a.charts |
| 66 Base.size(a::CartesianAtlas) = size(a.charts) | 66 Base.size(a::CartesianAtlas) = size(a.charts) |
| 67 | 67 |
