Mercurial > repos > public > sbplib_julia
diff src/Grids/equidistant_grid.jl @ 1701:74f051444e0e
Make equidistant_grid() for 1D more restrictive in the types it accepts
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Tue, 03 Sep 2024 23:51:34 +0200 |
parents | 5f348cc5598e |
children | b5690ab5f0b8 |
line wrap: on
line diff
--- a/src/Grids/equidistant_grid.jl Wed Aug 28 10:12:37 2024 +0200 +++ b/src/Grids/equidistant_grid.jl Tue Sep 03 23:51:34 2024 +0200 @@ -121,7 +121,7 @@ Constructs a 1D equidistant grid. """ -function equidistant_grid(limit_lower::T, limit_upper::T, size::Int) where T +function equidistant_grid(limit_lower::Number, limit_upper::Number, size::Int) if any(size .<= 0) throw(DomainError("size must be postive")) end