diff EquidistantGrid.jl @ 137:99308f68e548 cell_based_test

Fix bug in pointsalongdim where an empty range was returned
author Vidar Stiernström <vidar.stiernstrom@it.uu.se>
date Thu, 21 Feb 2019 16:49:28 +0100
parents 155bbecf18bb
children
line wrap: on
line diff
--- a/EquidistantGrid.jl	Thu Feb 21 16:46:01 2019 +0100
+++ b/EquidistantGrid.jl	Thu Feb 21 16:49:28 2019 +0100
@@ -52,5 +52,5 @@
 function pointsalongdim(grid::EquidistantGrid, dim::Integer)
     @assert dim<=dimension(grid)
     @assert dim>0
-    points = range(grid.limit_lower[dim],stop=grid.limit_lower[dim],length=grid.size[dim])
+    points = collect(range(grid.limit_lower[dim],stop=grid.limit_upper[dim],length=grid.size[dim]))
 end