Mercurial > repos > public > sbplib_julia
comparison src/Grids/equidistant_grid.jl @ 1249:215f36712332 refactor/grids
Fix typo
| author | Jonatan Werpers <jonatan@werpers.com> |
|---|---|
| date | Wed, 22 Feb 2023 12:42:38 +0100 |
| parents | a5f2372d0e87 |
| children | 40ca0af6e480 |
comparison
equal
deleted
inserted
replaced
| 1248:a5f2372d0e87 | 1249:215f36712332 |
|---|---|
| 63 throw(DomainError(r, "Size minus 1 must be divisible by the ratio.")) | 63 throw(DomainError(r, "Size minus 1 must be divisible by the ratio.")) |
| 64 end | 64 end |
| 65 | 65 |
| 66 new_sz = (length(g) - 1)÷r + 1 | 66 new_sz = (length(g) - 1)÷r + 1 |
| 67 | 67 |
| 68 return EquidistantGrid(change_length(g.points), new_sz) | 68 return EquidistantGrid(change_length(g.points, new_sz)) |
| 69 end | 69 end |
| 70 | 70 |
| 71 | 71 |
| 72 | 72 |
| 73 | 73 |
