comparison Grids/src/Grids.jl @ 221:235f0a771c8f package_refactor

Make all packages load properly
author Jonatan Werpers <jonatan@werpers.com>
date Wed, 26 Jun 2019 13:23:42 +0200
parents 4c62d0253bd4
children 7d2ad8a73b1f
comparison
equal deleted inserted replaced
220:5bba704a89d8 221:235f0a771c8f
1 module Grids 1 module Grids
2 2
3 using RegionIndices 3 using RegionIndices
4
5 export BoundaryIdentifier, CartesianBoundary
4 6
5 abstract type BoundaryIdentifier end 7 abstract type BoundaryIdentifier end
6 struct CartesianBoundary{Dim, R<:Region} <: BoundaryIdentifier end 8 struct CartesianBoundary{Dim, R<:Region} <: BoundaryIdentifier end
7 dim(::CartesianBoundary{Dim, R}) where {Dim, R} = Dim 9 dim(::CartesianBoundary{Dim, R}) where {Dim, R} = Dim
8 region(::CartesianBoundary{Dim, R}) where {Dim, R} = R 10 region(::CartesianBoundary{Dim, R}) where {Dim, R} = R