Mercurial > repos > public > sbplib_julia
diff src/Grids/manifolds.jl @ 1946:c63116e2ec8e feature/grids/manifolds
Make boundaries() a method of boundary_identifiers
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Fri, 07 Feb 2025 17:37:42 +0100 |
parents | 19efb9dacfff |
children | dd77b45ee1ac |
line wrap: on
line diff
--- a/src/Grids/manifolds.jl Fri Feb 07 15:56:26 2025 +0100 +++ b/src/Grids/manifolds.jl Fri Feb 07 17:37:42 2025 +0100 @@ -33,7 +33,7 @@ jacobian(c::Chart, ξ) = jacobian(c.mapping, ξ) # TBD: Can we register a error hint for when jacobian is called with a function that doesn't have a registered jacobian? -boundaries(c::Chart) = boundary_identifiers(parameterspace(c)) +boundary_identifiers(c::Chart) = boundary_identifiers(parameterspace(c)) """ @@ -86,7 +86,7 @@ return c end -function boundaries(a::CartesianAtlas) +function boundary_identifiers(a::CartesianAtlas) bs = MultiBlockBoundary[] for d ∈ 1:ndims(charts(a)) @@ -114,11 +114,11 @@ charts(a::UnstructuredAtlas) = a.charts connections(a::UnstructuredAtlas) = a.connections -function boundaries(a::UnstructuredAtlas) +function boundary_identifiers(a::UnstructuredAtlas) bs = MultiBlockBoundary[] for (i,c) ∈ enumerate(charts(a)) - for b ∈ boundaries(c) + for b ∈ boundary_identifiers(c) mbb = MultiBlockBoundary{i,typeof(b)}() if !any(cn->mbb∈cn, connections(a))