Mercurial > repos > public > sbplib_julia
comparison test/Grids/equidistant_grid_test.jl @ 1595:611ae2308aa1 feature/boundary_conditions
Add orthogonal_grid
author | Vidar Stiernström <vidar.stiernstrom@gmail.com> |
---|---|
date | Sun, 26 May 2024 17:35:52 -0700 |
parents | efe1fc4cb6b0 |
children | 3e7438e2a033 |
comparison
equal
deleted
inserted
replaced
1594:d68d02dd882f | 1595:611ae2308aa1 |
---|---|
75 | 75 |
76 g = EquidistantGrid(2:0.1:10) | 76 g = EquidistantGrid(2:0.1:10) |
77 @test boundary_indices(g, Lower()) == (1,) | 77 @test boundary_indices(g, Lower()) == (1,) |
78 @test boundary_indices(g, Upper()) == (81,) | 78 @test boundary_indices(g, Upper()) == (81,) |
79 | 79 |
80 end | |
81 | |
82 @testset "orthogonal_grid" begin | |
83 g = EquidistantGrid(0:0.1:1) | |
84 @test orthogonal_grid(g, Lower()) == g | |
85 @test orthogonal_grid(g, Upper()) == g | |
80 end | 86 end |
81 | 87 |
82 @testset "refine" begin | 88 @testset "refine" begin |
83 g = EquidistantGrid(0:0.1:1) | 89 g = EquidistantGrid(0:0.1:1) |
84 @test refine(g, 1) == g | 90 @test refine(g, 1) == g |