Mercurial > repos > public > sbplib_julia
diff src/Grids/Grids.jl @ 563:212e266043dd feature/boundary_ops
Fix region(CartesianBoundary) not returning an instance.
| author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
|---|---|
| date | Mon, 30 Nov 2020 18:34:48 +0100 |
| parents | afdfb027e439 |
| children | f0ceddeae993 |
line wrap: on
line diff
--- a/src/Grids/Grids.jl Mon Nov 30 18:30:24 2020 +0100 +++ b/src/Grids/Grids.jl Mon Nov 30 18:34:48 2020 +0100 @@ -7,7 +7,7 @@ abstract type BoundaryIdentifier end struct CartesianBoundary{Dim, R<:Region} <: BoundaryIdentifier end dim(::CartesianBoundary{Dim, R}) where {Dim, R} = Dim -region(::CartesianBoundary{Dim, R}) where {Dim, R} = R #TODO: Should return R() +region(::CartesianBoundary{Dim, R}) where {Dim, R} = R() export dim, region
