Mercurial > repos > public > sbplib_julia
diff src/Grids/mapped_grid.jl @ 1902:f93ba5832146 feature/grids/parameter_spaces
Copy changes related to ParameterSpace from feature/grids/manifolds
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Sat, 01 Feb 2025 22:12:53 +0100 |
parents | 516eaabf1169 |
children | 04c251bccbd4 dcbe8119fb0a |
line wrap: on
line diff
--- a/src/Grids/mapped_grid.jl Fri Jan 31 20:35:28 2025 +0100 +++ b/src/Grids/mapped_grid.jl Sat Feb 01 22:12:53 2025 +0100 @@ -94,7 +94,7 @@ # TODO: Make sure all methods of `mapped_grid` are implemented correctly and tested. """ - mapped_grid(x, J, size::Vararg{Int}) + mapped_grid(x, J, size...) A `MappedGrid` with a default logical grid on the D-dimensional unit hyper box [0,1]ᴰ. `x` and `J` are functions to be evaluated on the logical grid @@ -121,13 +121,13 @@ end """ - mapped_grid(x, J, parameterspace, size) + mapped_grid(x, J, ps::ParameterSpace, size...) A `MappedGrid` with logical grid `lg`. Physical coordinates and Jacobian are determined by the functions `x` and `J`. """ -function mapped_grid(x, J, parameterspace, size::Vararg{Int}) - lg = equidistant_grid(parameterspace, size...) +function mapped_grid(x, J, ps::ParameterSpace, size::Vararg{Int}) + lg = equidistant_grid(ps, size...) return mapped_grid(x, J, lg) end