Mercurial > repos > public > sbplib_julia
view test/Grids/manifolds_test.jl @ 1903:04c251bccbd4 feature/grids/manifolds
Merge feature/grids/parameter_spaces
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Sat, 01 Feb 2025 22:17:39 +0100 |
parents | 27534b471b6a |
children | e7f8d11c4670 |
line wrap: on
line source
using Test using Diffinitive.Grids using Diffinitive.RegionIndices using Diffinitive.LazyTensors @testset "Chart" begin c = Chart(x->2x, unitsquare()) @test c isa Chart{2} @test c([3,2]) == [6,4] @test parameterspace(c) == unitsquare() @test ndims(c) == 2 @test_broken jacobian(c, [3,2]) end @testset "CartesianAtlas" begin c = Chart(identity, unitsquare()) a = CartesianAtlas([c c; c c]) @test a isa Atlas @test charts(a) == [c c; c c] @test_broken connections(a) == [ ( ((1,1), CartesianBoundary{1,UpperBoundary}()), ((1,2), CartesianBoundary{1,LowerBoundary}()), ), ( ((1,1), CartesianBoundary{2,LowerBoundary}()), ((2,1), CartesianBoundary{2,UpperBoundary}()), ), ( ((2,2), CartesianBoundary{1,LowerBoundary}()), ((2,1), CartesianBoundary{1,UpperBoundary}()), ), ( ((2,2), CartesianBoundary{2,UpperBoundary}()), ((1,2), CartesianBoundary{2,LowerBoundary}()), ) ] end @testset "UnstructuredAtlas" begin @test_broken false end @testset "Line" begin @test_broken false end @testset "LineSegment" begin @test_broken false end @testset "linesegments" begin @test_broken false end @testset "polygon_edges" begin @test_broken false end @testset "Circle" begin @test_broken false end @testset "TransfiniteInterpolationSurface" begin @test_broken false end