Mercurial > repos > public > sbplib_julia
comparison src/Grids/tensor_grid.jl @ 1604:b459082533f7 feature/boundary_conditions
Remove unnecessary white space changes to otherwise untouched files
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Sat, 08 Jun 2024 22:51:31 +0200 |
parents | 3e7438e2a033 |
children | 5f348cc5598e b02917bcd7d5 ab397590898e |
comparison
equal
deleted
inserted
replaced
1603:fca4a01d60c9 | 1604:b459082533f7 |
---|---|
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 | |
99 function combined_coordinate_vector_type(coordinate_types...) | 98 function combined_coordinate_vector_type(coordinate_types...) |
100 combined_coord_length = mapreduce(_ncomponents, +, coordinate_types) | 99 combined_coord_length = mapreduce(_ncomponents, +, coordinate_types) |
101 combined_coord_type = mapreduce(eltype, promote_type, coordinate_types) | 100 combined_coord_type = mapreduce(eltype, promote_type, coordinate_types) |
102 | 101 |
103 if combined_coord_length == 1 | 102 if combined_coord_length == 1 |
132 return (1, d) | 131 return (1, d) |
133 else | 132 else |
134 return (I, d-cumsum(nds)[I-1]) | 133 return (I, d-cumsum(nds)[I-1]) |
135 end | 134 end |
136 end | 135 end |
137 |