Mercurial > repos > public > sbplib_julia
comparison src/Grids/tensor_grid.jl @ 1602:3e7438e2a033 feature/boundary_conditions
Address review comments (1 left to be discussed)
author | Vidar Stiernström <vidar.stiernstrom@gmail.com> |
---|---|
date | Sat, 01 Jun 2024 17:39:54 -0700 |
parents | 37b05221beda |
children | b459082533f7 |
comparison
equal
deleted
inserted
replaced
1601:fad18896d20a | 1602:3e7438e2a033 |
---|---|
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)] # REVIEW: Seems clearer to me to just inline this and remove the function definition? | |
99 | |
100 | 98 |
101 function combined_coordinate_vector_type(coordinate_types...) | 99 function combined_coordinate_vector_type(coordinate_types...) |
102 combined_coord_length = mapreduce(_ncomponents, +, coordinate_types) | 100 combined_coord_length = mapreduce(_ncomponents, +, coordinate_types) |
103 combined_coord_type = mapreduce(eltype, promote_type, coordinate_types) | 101 combined_coord_type = mapreduce(eltype, promote_type, coordinate_types) |
104 | 102 |