Mercurial > repos > public > sbplib_julia
comparison src/Grids/EquidistantGrid.jl @ 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 | f0ceddeae993 |
comparison
equal
deleted
inserted
replaced
658:26b0eb83aea4 | 659:aa3066010569 |
---|---|
101 (CartesianBoundary(1,Lower), | 101 (CartesianBoundary(1,Lower), |
102 CartesianBoundary(1,Upper), | 102 CartesianBoundary(1,Upper), |
103 CartesianBoundary(2,Lower), | 103 CartesianBoundary(2,Lower), |
104 ...) | 104 ...) |
105 """ | 105 """ |
106 function boundary_identifiers(g::EquidistantGrid{Dim}) where Dim | 106 function boundary_identifiers(g::EquidistantGrid) |
107 bids = () | 107 bids = () |
108 for i=1:Dim | 108 for i=1:dimension(g) |
109 for r ∈ (Lower,Upper) | 109 for r ∈ (Lower,Upper) |
110 bids = (bids...,CartesianBoundary{i,r}()) | 110 bids = (bids...,CartesianBoundary{i,r}()) |
111 end | 111 end |
112 end | 112 end |
113 return bids | 113 return bids |