Mercurial > repos > public > sbplib_julia
comparison src/Grids/mapped_grid.jl @ 1571:c2620118f110 feature/grids/manifolds
Merge feature/grids/curvilinear
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Thu, 25 Apr 2024 14:00:40 +0200 |
parents | 90af15f38c62 063a2bfb03da |
children | aeb561754248 |
comparison
equal
deleted
inserted
replaced
1569:473cf7677e0f | 1571:c2620118f110 |
---|---|
51 # TBD: refine and coarsen could be implemented once we have a simple manifold implementation. | 51 # TBD: refine and coarsen could be implemented once we have a simple manifold implementation. |
52 # Before we do, we should consider the overhead of including such a field in the mapped grid struct. | 52 # Before we do, we should consider the overhead of including such a field in the mapped grid struct. |
53 | 53 |
54 function mapped_grid(x, J, size...) | 54 function mapped_grid(x, J, size...) |
55 D = length(size) | 55 D = length(size) |
56 lg = equidistant_grid(size, ntuple(i->0., D), ntuple(i->1., D)) | 56 lg = equidistant_grid(ntuple(i->0., D), ntuple(i->1., D), size...) |
57 return MappedGrid( | 57 return MappedGrid( |
58 lg, | 58 lg, |
59 map(x,lg), | 59 map(x,lg), |
60 map(J,lg), | 60 map(J,lg), |
61 ) | 61 ) |