Mercurial > repos > public > sbplib_julia
comparison Grids/src/Grids.jl @ 217:4c62d0253bd4 package_refactor
Add RegionIndices as dependency of Grids
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Wed, 26 Jun 2019 12:55:01 +0200 |
parents | 1ad91e11b1f4 |
children | 235f0a771c8f |
comparison
equal
deleted
inserted
replaced
216:30112f73555c | 217:4c62d0253bd4 |
---|---|
1 module Grids | 1 module Grids |
2 | |
3 using RegionIndices | |
2 | 4 |
3 abstract type BoundaryIdentifier end | 5 abstract type BoundaryIdentifier end |
4 struct CartesianBoundary{Dim, R<:Region} <: BoundaryIdentifier end | 6 struct CartesianBoundary{Dim, R<:Region} <: BoundaryIdentifier end |
5 dim(::CartesianBoundary{Dim, R}) where {Dim, R} = Dim | 7 dim(::CartesianBoundary{Dim, R}) where {Dim, R} = Dim |
6 region(::CartesianBoundary{Dim, R}) where {Dim, R} = R | 8 region(::CartesianBoundary{Dim, R}) where {Dim, R} = R |