Mercurial > repos > public > sbplib_julia
diff src/Grids/equidistant_grid.jl @ 1649:b02917bcd7d5 feature/grids/curvilinear
Merge default
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Wed, 26 Jun 2024 12:41:03 +0200 |
parents | 9113f437431d b459082533f7 |
children | 8250cf5a3ce9 51f0c5f895fb |
line wrap: on
line diff
--- a/src/Grids/equidistant_grid.jl Wed Jun 26 11:09:25 2024 +0200 +++ b/src/Grids/equidistant_grid.jl Wed Jun 26 12:41:03 2024 +0200 @@ -107,6 +107,9 @@ behaviors. """ function equidistant_grid(limit_lower, limit_upper, dims::Vararg{Int}) + if !(length(limit_lower) == length(limit_upper) == length(dims)) + throw(ArgumentError("All arguments must be of the same length")) + end gs = map(equidistant_grid, limit_lower, limit_upper, dims) return TensorGrid(gs...) end