Mercurial > repos > public > sbplib_julia
diff src/Grids/tensor_grid.jl @ 1289:3b7ebd135918 refactor/grids
Remove _component_type and replace with eltype
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Fri, 03 Mar 2023 15:44:39 +0100 |
parents | dcbac783e4c1 |
children | 5f05a708d730 |
line wrap: on
line diff
--- a/src/Grids/tensor_grid.jl Fri Mar 03 15:42:05 2023 +0100 +++ b/src/Grids/tensor_grid.jl Fri Mar 03 15:44:39 2023 +0100 @@ -79,7 +79,7 @@ function combined_coordinate_vector_type(coordinate_types...) combined_coord_length = mapreduce(_ncomponents, +, coordinate_types) - combined_coord_type = mapreduce(_component_type, promote_type, coordinate_types) + combined_coord_type = mapreduce(eltype, promote_type, coordinate_types) if combined_coord_length == 1 return combined_coord_type