Mercurial > repos > public > sbplib_julia
changeset 1932:ac63820222f8 feature/grids/manifolds
Make field types of CartesianAtlas concrete
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Fri, 07 Feb 2025 09:20:24 +0100 |
parents | bb2c708d724d |
children | 2801507dbee1 |
files | src/Grids/manifolds.jl test/Grids/manifolds_test.jl |
diffstat | 2 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/Grids/manifolds.jl Fri Feb 07 09:18:09 2025 +0100 +++ b/src/Grids/manifolds.jl Fri Feb 07 09:20:24 2025 +0100 @@ -58,8 +58,8 @@ """ function connections end -struct CartesianAtlas{D,C<:Chart} <: Atlas - charts::AbstractArray{C,D} +struct CartesianAtlas{D,C<:Chart,AT<:AbstractArray{C,D}} <: Atlas + charts::AT end charts(a::CartesianAtlas) = a.charts
--- a/test/Grids/manifolds_test.jl Fri Feb 07 09:18:09 2025 +0100 +++ b/test/Grids/manifolds_test.jl Fri Feb 07 09:20:24 2025 +0100 @@ -27,7 +27,8 @@ c2 = Chart(x->2x, unitsquare()) @test CartesianAtlas([c c2; c2 c]) isa CartesianAtlas - + @test CartesianAtlas(@SMatrix[c c; c c]) isa CartesianAtlas + @test CartesianAtlas(@SMatrix[c c2; c2 c]) isa CartesianAtlas @testset "connections" begin # 2D