Mercurial > repos > public > sbplib_julia
diff test/SbpOperators/boundaryops/boundary_restriction_test.jl @ 2042:5fb64e42138c bugfix/zero_dim_grid_boundary_ops
Add implementation of boundary_restriction for ZeroDimGrid throwing an error
| author | Jonatan Werpers <jonatan@werpers.com> |
|---|---|
| date | Thu, 05 Feb 2026 22:22:25 +0100 |
| parents | 471a948cd2b2 |
| children | c08bc343d1cd |
line wrap: on
line diff
--- a/test/SbpOperators/boundaryops/boundary_restriction_test.jl Thu Feb 05 22:20:55 2026 +0100 +++ b/test/SbpOperators/boundaryops/boundary_restriction_test.jl Thu Feb 05 22:22:25 2026 +0100 @@ -6,6 +6,7 @@ using Diffinitive.RegionIndices using Diffinitive.SbpOperators: BoundaryOperator, Stencil + @testset "boundary_restriction" begin stencil_set = read_stencil_set(sbp_operators_path()*"standard_diagonal.toml"; order = 4) e_closure = parse_stencil(stencil_set["e"]["closure"]) @@ -30,6 +31,11 @@ @test e_w isa InflatedTensor @test e_w isa LazyTensor{T,1,2} where T end + + @testset "0D" begin + g = ZeroDimGrid(1) + @test_throws ArgumentError("ZeroDimGrid has no boundaries") boundary_restriction(g, stencil_set, ()) + end end @testset "Application" begin
