Mercurial > repos > public > sbplib_julia
comparison src/Grids/manifolds.jl @ 1940:1bd0e23499da feature/grids/manifolds
Change variable name in boundaries(::CartesianAtlas)
| author | Jonatan Werpers <jonatan@werpers.com> |
|---|---|
| date | Fri, 07 Feb 2025 13:58:29 +0100 |
| parents | 755fc0907e99 |
| children | 1e3089197397 |
comparison
equal
deleted
inserted
replaced
| 1939:5f6e455df31e | 1940:1bd0e23499da |
|---|---|
| 85 | 85 |
| 86 return c | 86 return c |
| 87 end | 87 end |
| 88 | 88 |
| 89 function boundaries(a::CartesianAtlas) | 89 function boundaries(a::CartesianAtlas) |
| 90 c = MultiBlockBoundary[] | 90 bs = MultiBlockBoundary[] |
| 91 | 91 |
| 92 for d ∈ 1:ndims(charts(a)) | 92 for d ∈ 1:ndims(charts(a)) |
| 93 Is = eachslice(CartesianIndices(charts(a)); dims=d) | 93 Is = eachslice(CartesianIndices(charts(a)); dims=d) |
| 94 | 94 |
| 95 for (i,b) ∈ ((1,LowerBoundary),(length(Is),UpperBoundary)) # For first and last slice | 95 for (i,b) ∈ ((1,LowerBoundary),(length(Is),UpperBoundary)) # For first and last slice |
| 96 for jk ∈ eachindex(Is[i]) # For each block in slice | 96 for jk ∈ eachindex(Is[i]) # For each block in slice |
| 97 Iᵢⱼₖ = Tuple(Is[i][jk]) | 97 Iᵢⱼₖ = Tuple(Is[i][jk]) |
| 98 push!(c, | 98 push!(bs, |
| 99 MultiBlockBoundary{Iᵢⱼₖ, CartesianBoundary{d,b}}(), | 99 MultiBlockBoundary{Iᵢⱼₖ, CartesianBoundary{d,b}}(), |
| 100 ) | 100 ) |
| 101 end | 101 end |
| 102 end | 102 end |
| 103 end | 103 end |
| 104 | 104 |
| 105 return c | 105 return bs |
| 106 end | 106 end |
| 107 | 107 |
| 108 | 108 |
| 109 struct UnstructuredAtlas{C<:Chart, CN<:Tuple{MultiBlockBoundary,MultiBlockBoundary}, CV<:AbstractVector{C}, CNV<:AbstractVector{CN}} <: Atlas | 109 struct UnstructuredAtlas{C<:Chart, CN<:Tuple{MultiBlockBoundary,MultiBlockBoundary}, CV<:AbstractVector{C}, CNV<:AbstractVector{CN}} <: Atlas |
| 110 charts::CV | 110 charts::CV |
