Mercurial > repos > public > sbplib_julia
comparison Grids/src/Grids.jl @ 233:7d2ad8a73b1f boundary_conditions
Export dim and region from Grids
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Wed, 26 Jun 2019 17:52:20 +0200 |
parents | 235f0a771c8f |
children |
comparison
equal
deleted
inserted
replaced
232:a20bb4fac23d | 233:7d2ad8a73b1f |
---|---|
7 abstract type BoundaryIdentifier end | 7 abstract type BoundaryIdentifier end |
8 struct CartesianBoundary{Dim, R<:Region} <: BoundaryIdentifier end | 8 struct CartesianBoundary{Dim, R<:Region} <: BoundaryIdentifier end |
9 dim(::CartesianBoundary{Dim, R}) where {Dim, R} = Dim | 9 dim(::CartesianBoundary{Dim, R}) where {Dim, R} = Dim |
10 region(::CartesianBoundary{Dim, R}) where {Dim, R} = R | 10 region(::CartesianBoundary{Dim, R}) where {Dim, R} = R |
11 | 11 |
12 export dim, region | |
13 | |
12 include("AbstractGrid.jl") | 14 include("AbstractGrid.jl") |
13 include("EquidistantGrid.jl") | 15 include("EquidistantGrid.jl") |
14 | 16 |
15 end # module | 17 end # module |