changeset 659:aa3066010569 feature/get_boundary_identifiers

Replace type parameter by function call
author Vidar Stiernström <vidar.stiernstrom@it.uu.se>
date Sat, 30 Jan 2021 20:23:44 +0100
parents 26b0eb83aea4
children b21fea54ca10
files src/Grids/EquidistantGrid.jl
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/Grids/EquidistantGrid.jl	Sat Jan 30 20:18:37 2021 +0100
+++ b/src/Grids/EquidistantGrid.jl	Sat Jan 30 20:23:44 2021 +0100
@@ -103,9 +103,9 @@
 	 CartesianBoundary(2,Lower),
 	 ...)
 """
-function boundary_identifiers(g::EquidistantGrid{Dim}) where Dim
+function boundary_identifiers(g::EquidistantGrid)
     bids = ()
-    for i=1:Dim
+    for i=1:dimension(g)
         for r ∈ (Lower,Upper)
             bids = (bids...,CartesianBoundary{i,r}())
         end