comparison src/Grids/equidistant_grid.jl @ 1602:3e7438e2a033 feature/boundary_conditions

Address review comments (1 left to be discussed)
author Vidar Stiernström <vidar.stiernstrom@gmail.com>
date Sat, 01 Jun 2024 17:39:54 -0700
parents 611ae2308aa1
children b459082533f7
comparison
equal deleted inserted replaced
1601:fad18896d20a 1602:3e7438e2a033
50 boundary_identifiers(::EquidistantGrid) = (Lower(), Upper()) 50 boundary_identifiers(::EquidistantGrid) = (Lower(), Upper())
51 boundary_grid(g::EquidistantGrid, id::Lower) = ZeroDimGrid(g[begin]) 51 boundary_grid(g::EquidistantGrid, id::Lower) = ZeroDimGrid(g[begin])
52 boundary_grid(g::EquidistantGrid, id::Upper) = ZeroDimGrid(g[end]) 52 boundary_grid(g::EquidistantGrid, id::Upper) = ZeroDimGrid(g[end])
53 boundary_indices(g::EquidistantGrid, id::Lower) = (1,) 53 boundary_indices(g::EquidistantGrid, id::Lower) = (1,)
54 boundary_indices(g::EquidistantGrid, id::Upper) = (length(g),) 54 boundary_indices(g::EquidistantGrid, id::Upper) = (length(g),)
55 orthogonal_grid(g::EquidistantGrid, id::Union{Lower,Upper}) = g
56 55
57 """ 56 """
58 refine(g::EquidistantGrid, r::Int) 57 refine(g::EquidistantGrid, r::Int)
59 58
60 The grid where `g` is refined by the factor `r`. The factor is applied to the number of 59 The grid where `g` is refined by the factor `r`. The factor is applied to the number of