comparison src/Grids/mapped_grid.jl @ 1792:08710ebe940d feature/grids/curvilinear

Update docstring
author Vidar Stiernström <vidar.stiernstrom@gmail.com>
date Sun, 29 Sep 2024 12:53:22 -0700
parents 43c0bfc13de3
children 4d55ac2892a2
comparison
equal deleted inserted replaced
1791:3e4ae9bfe86a 1792:08710ebe940d
96 96
97 97
98 """ 98 """
99 mapped_grid(x, J, size::Vararg{Int}) 99 mapped_grid(x, J, size::Vararg{Int})
100 100
101 A `MappedGrid` with a default logical grid on a unit hyper box. `x` and `J` 101 A `MappedGrid` with a default logical grid on the D-dimensional unit hyper
102 are functions to be evaluated on the logical grid and `size` determines the 102 box [0,1]ᴰ. `x` and `J`are functions to be evaluated on the logical grid
103 size of the logical grid. 103 and `size` determines the size of the logical grid.
104 """ 104 """
105 function mapped_grid(x, J, size::Vararg{Int}) 105 function mapped_grid(x, J, size::Vararg{Int})
106 D = length(size) 106 D = length(size)
107 lg = equidistant_grid(ntuple(i->0., D), ntuple(i->1., D), size...) 107 lg = equidistant_grid(ntuple(i->0., D), ntuple(i->1., D), size...)
108 return mapped_grid(lg, x, J) 108 return mapped_grid(lg, x, J)