comparison src/Grids/equidistant_grid.jl @ 1492:d9d9ab18cdfc feature/grids/curvilinear

Merge default
author Jonatan Werpers <jonatan@werpers.com>
date Fri, 01 Dec 2023 11:52:26 +0100
parents 37cf9f79caa4
children 553111a15506 d7bc11053951
comparison
equal deleted inserted replaced
1451:2e08f3444354 1492:d9d9ab18cdfc
49 49
50 50
51 boundary_identifiers(::EquidistantGrid) = (Lower(), Upper()) 51 boundary_identifiers(::EquidistantGrid) = (Lower(), Upper())
52 boundary_grid(g::EquidistantGrid, id::Lower) = ZeroDimGrid(g[begin]) 52 boundary_grid(g::EquidistantGrid, id::Lower) = ZeroDimGrid(g[begin])
53 boundary_grid(g::EquidistantGrid, id::Upper) = ZeroDimGrid(g[end]) 53 boundary_grid(g::EquidistantGrid, id::Upper) = ZeroDimGrid(g[end])
54 54 boundary_indices(g::EquidistantGrid, id::Lower) = (1,)
55 boundary_indices(g::EquidistantGrid, id::Upper) = (length(g),)
55 56
56 """ 57 """
57 refine(g::EquidistantGrid, r::Int) 58 refine(g::EquidistantGrid, r::Int)
58 59
59 The grid where `g` is refined by the factor `r`. The factor is applied to the number of 60 The grid where `g` is refined by the factor `r`. The factor is applied to the number of