Mercurial > repos > public > sbplib_julia
comparison src/Grids/mapped_grid.jl @ 2075:83759a0d0f28 feature/sbp_operators/laplace_curvilinear
Fix boundary identifier types for methods on mapped grid
| author | Jonatan Werpers <jonatan@werpers.com> |
|---|---|
| date | Tue, 17 Feb 2026 21:21:59 +0100 |
| parents | e97f4352b8d0 |
| children |
comparison
equal
deleted
inserted
replaced
| 2074:8fe7233067fb | 2075:83759a0d0f28 |
|---|---|
| 68 Base.length(g::MappedGrid) = length(g.logical_grid) | 68 Base.length(g::MappedGrid) = length(g.logical_grid) |
| 69 Base.size(g::MappedGrid) = size(g.logical_grid) | 69 Base.size(g::MappedGrid) = size(g.logical_grid) |
| 70 Base.size(g::MappedGrid, d) = size(g.logical_grid, d) | 70 Base.size(g::MappedGrid, d) = size(g.logical_grid, d) |
| 71 | 71 |
| 72 boundary_identifiers(g::MappedGrid) = boundary_identifiers(g.logical_grid) | 72 boundary_identifiers(g::MappedGrid) = boundary_identifiers(g.logical_grid) |
| 73 boundary_indices(g::MappedGrid, id::TensorGridBoundary) = boundary_indices(g.logical_grid, id) | 73 boundary_indices(g::MappedGrid, id::BoundaryIdentifier) = boundary_indices(g.logical_grid, id) |
| 74 | 74 |
| 75 function boundary_grid(g::MappedGrid, id::TensorGridBoundary) | 75 function boundary_grid(g::MappedGrid, id::BoundaryIdentifier) |
| 76 b_indices = boundary_indices(g.logical_grid, id) | 76 b_indices = boundary_indices(g.logical_grid, id) |
| 77 | 77 |
| 78 # Calculate indices of needed jacobian components | 78 # Calculate indices of needed jacobian components |
| 79 D = ndims(g) | 79 D = ndims(g) |
| 80 all_indices = SVector{D}(1:D) | 80 all_indices = SVector{D}(1:D) |
