Mercurial > repos > public > sbplib_julia
comparison EquidistantGrid.jl @ 141:18b3c63673b3
Merged with cell_based_test
author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
---|---|
date | Thu, 21 Feb 2019 16:55:03 +0100 |
parents | 99308f68e548 |
children |
comparison
equal
deleted
inserted
replaced
134:79699dda29be | 141:18b3c63673b3 |
---|---|
50 end | 50 end |
51 | 51 |
52 function pointsalongdim(grid::EquidistantGrid, dim::Integer) | 52 function pointsalongdim(grid::EquidistantGrid, dim::Integer) |
53 @assert dim<=dimension(grid) | 53 @assert dim<=dimension(grid) |
54 @assert dim>0 | 54 @assert dim>0 |
55 points = range(grid.limit_lower[dim],stop=grid.limit_lower[dim],length=grid.size[dim]) | 55 points = collect(range(grid.limit_lower[dim],stop=grid.limit_upper[dim],length=grid.size[dim])) |
56 end | 56 end |