diff src/Grids/EquidistantGrid.jl @ 367:137a62635c49 refactor/remove_dynamic_size_tensormapping

Merge in default
author Jonatan Werpers <jonatan@werpers.com>
date Mon, 28 Sep 2020 22:52:49 +0200
parents 64ad8ec0eae0
children dacbcba33d7d
line wrap: on
line diff
--- a/src/Grids/EquidistantGrid.jl	Mon Sep 28 22:46:37 2020 +0200
+++ b/src/Grids/EquidistantGrid.jl	Mon Sep 28 22:52:49 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)