Mercurial > repos > public > sbplib_julia
comparison src/Grids/tensor_grid.jl @ 1337:f265799bc2b6 refactor/grids
Remove some comments
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Thu, 04 May 2023 08:38:48 +0200 |
parents | ed3ea0630825 |
children | 5604676d8426 |
comparison
equal
deleted
inserted
replaced
1336:52087a6c0682 | 1337:f265799bc2b6 |
---|---|
6 """ | 6 """ |
7 struct TensorGrid{T,D,GT<:NTuple{N,Grid} where N} <: Grid{T,D} | 7 struct TensorGrid{T,D,GT<:NTuple{N,Grid} where N} <: Grid{T,D} |
8 grids::GT | 8 grids::GT |
9 | 9 |
10 function TensorGrid(gs...) | 10 function TensorGrid(gs...) |
11 # T = combined_coordinate_vector_type(eltype.(gs)...) | |
12 T = mapreduce(eltype, combined_coordinate_vector_type, gs) | 11 T = mapreduce(eltype, combined_coordinate_vector_type, gs) |
13 D = sum(ndims, gs) | 12 D = sum(ndims, gs) |
14 | 13 |
15 return new{T,D,typeof(gs)}(gs) | 14 return new{T,D,typeof(gs)}(gs) |
16 end | 15 end |
90 end | 89 end |
91 end | 90 end |
92 | 91 |
93 function combine_coordinates(coords...) | 92 function combine_coordinates(coords...) |
94 return mapreduce(SVector, vcat, coords) | 93 return mapreduce(SVector, vcat, coords) |
95 # return SVector(coords...) | |
96 end | 94 end |