Mercurial > repos > public > sbplib_julia
comparison src/Grids/tensor_grid.jl @ 1330:5f05a708d730 refactor/grids
grid.l: More documentation
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Tue, 02 May 2023 22:42:25 +0200 |
parents | 3b7ebd135918 |
children | ed3ea0630825 |
comparison
equal
deleted
inserted
replaced
1329:e94ddef5e72f | 1330:5f05a708d730 |
---|---|
44 | 44 |
45 refine(g::TensorGrid, r::Int) = mapreduce(g->refine(g,r), TensorGrid, g.grids) | 45 refine(g::TensorGrid, r::Int) = mapreduce(g->refine(g,r), TensorGrid, g.grids) |
46 coarsen(g::TensorGrid, r::Int) = mapreduce(g->coarsen(g,r), TensorGrid, g.grids) | 46 coarsen(g::TensorGrid, r::Int) = mapreduce(g->coarsen(g,r), TensorGrid, g.grids) |
47 | 47 |
48 """ | 48 """ |
49 TensorGridBoundary{N, BID} <: BoundaryIdentifier | |
49 # TODO: | 50 # TODO: |
50 """ | 51 """ |
51 struct TensorGridBoundary{N, BID} <: BoundaryIdentifier end | 52 struct TensorGridBoundary{N, BID} <: BoundaryIdentifier end |
52 grid_id(::TensorGridBoundary{N, BID}) where {N, BID} = N | 53 grid_id(::TensorGridBoundary{N, BID}) where {N, BID} = N |
53 boundary_id(::TensorGridBoundary{N, BID}) where {N, BID} = BID() | 54 boundary_id(::TensorGridBoundary{N, BID}) where {N, BID} = BID() |