Mercurial > repos > public > sbplib_julia
changeset 1604:b459082533f7 feature/boundary_conditions
Remove unnecessary white space changes to otherwise untouched files
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Sat, 08 Jun 2024 22:51:31 +0200 |
parents | fca4a01d60c9 |
children | 1388149b54ad |
files | src/Grids/equidistant_grid.jl src/Grids/grid.jl src/Grids/tensor_grid.jl test/Grids/tensor_grid_test.jl |
diffstat | 4 files changed, 1 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/Grids/equidistant_grid.jl Tue Jun 04 16:46:14 2024 -0700 +++ b/src/Grids/equidistant_grid.jl Sat Jun 08 22:51:31 2024 +0200 @@ -47,6 +47,7 @@ """ inverse_spacing(g::EquidistantGrid) = 1/step(g.points) + boundary_identifiers(::EquidistantGrid) = (Lower(), Upper()) boundary_grid(g::EquidistantGrid, id::Lower) = ZeroDimGrid(g[begin]) boundary_grid(g::EquidistantGrid, id::Upper) = ZeroDimGrid(g[end])
--- a/src/Grids/grid.jl Tue Jun 04 16:46:14 2024 -0700 +++ b/src/Grids/grid.jl Sat Jun 08 22:51:31 2024 +0200 @@ -127,7 +127,6 @@ """ function boundary_indices end - """ eval_on(g::Grid, f)
--- a/src/Grids/tensor_grid.jl Tue Jun 04 16:46:14 2024 -0700 +++ b/src/Grids/tensor_grid.jl Sat Jun 08 22:51:31 2024 +0200 @@ -95,7 +95,6 @@ return LazyTensors.concatenate_tuples(b_ind...) end - function combined_coordinate_vector_type(coordinate_types...) combined_coord_length = mapreduce(_ncomponents, +, coordinate_types) combined_coord_type = mapreduce(eltype, promote_type, coordinate_types) @@ -134,4 +133,3 @@ return (I, d-cumsum(nds)[I-1]) end end -
--- a/test/Grids/tensor_grid_test.jl Tue Jun 04 16:46:14 2024 -0700 +++ b/test/Grids/tensor_grid_test.jl Sat Jun 08 22:51:31 2024 +0200 @@ -184,7 +184,6 @@ @test boundary_indices(TensorGrid(g₄,g₁), TensorGridBoundary{2, Lower}()) == (1,) @test boundary_indices(TensorGrid(g₄,g₁), TensorGridBoundary{2, Upper}()) == (11,) end - end @testset "combined_coordinate_vector_type" begin