Mercurial > repos > public > sbplib_julia
comparison src/Grids/tensor_grid.jl @ 1599:37b05221beda feature/boundary_conditions
Review
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Wed, 29 May 2024 22:35:08 +0200 |
parents | 611ae2308aa1 |
children | 3e7438e2a033 |
comparison
equal
deleted
inserted
replaced
1598:19cdec9c21cb | 1599:37b05221beda |
---|---|
93 b_ind = Base.setindex(per_grid_ind, local_b_ind, grid_id(id)) | 93 b_ind = Base.setindex(per_grid_ind, local_b_ind, grid_id(id)) |
94 | 94 |
95 return LazyTensors.concatenate_tuples(b_ind...) | 95 return LazyTensors.concatenate_tuples(b_ind...) |
96 end | 96 end |
97 | 97 |
98 orthogonal_grid(g::TensorGrid, id::BoundaryIdentifier) = g.grids[grid_id(id)] | 98 orthogonal_grid(g::TensorGrid, id::BoundaryIdentifier) = g.grids[grid_id(id)] # REVIEW: Seems clearer to me to just inline this and remove the function definition? |
99 | 99 |
100 | 100 |
101 function combined_coordinate_vector_type(coordinate_types...) | 101 function combined_coordinate_vector_type(coordinate_types...) |
102 combined_coord_length = mapreduce(_ncomponents, +, coordinate_types) | 102 combined_coord_length = mapreduce(_ncomponents, +, coordinate_types) |
103 combined_coord_type = mapreduce(eltype, promote_type, coordinate_types) | 103 combined_coord_type = mapreduce(eltype, promote_type, coordinate_types) |