diff src/Grids/EquidistantGrid.jl @ 358:64ad8ec0eae0 feature/equidistant_grid/subgrid

Change name from subgrid to restrict
author Jonatan Werpers <jonatan@werpers.com>
date Mon, 28 Sep 2020 22:00:04 +0200
parents 8257cc75ea6b
children dacbcba33d7d
line wrap: on
line diff
--- a/src/Grids/EquidistantGrid.jl	Sun Sep 27 21:04:59 2020 +0200
+++ b/src/Grids/EquidistantGrid.jl	Mon Sep 28 22:00:04 2020 +0200
@@ -67,18 +67,18 @@
 end
 
 """
-    subgrid(::EquidistantGrid, dim)
+    restrict(::EquidistantGrid, dim)
 
 Pick out given dimensions from the grid and return a grid for them
 """
-function subgrid(grid::EquidistantGrid, dim)
+function restrict(grid::EquidistantGrid, dim)
     size = grid.size[dim]
     limit_lower = grid.limit_lower[dim]
     limit_upper = grid.limit_upper[dim]
 
     return EquidistantGrid(size, limit_lower, limit_upper)
 end
-export subgrid
+export restrict
 
 function pointsalongdim(grid::EquidistantGrid, dim::Integer)
     @assert dim<=dimension(grid)