Mercurial > repos > public > sbplib_julia
comparison Grids/src/Grids.jl @ 231:fbabfd4e8f20
Merge in boundary_conditions
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Wed, 26 Jun 2019 15:07:47 +0200 |
parents | 235f0a771c8f |
children | 7d2ad8a73b1f |
comparison
equal
deleted
inserted
replaced
144:ce56727e4232 | 231:fbabfd4e8f20 |
---|---|
1 module Grids | |
2 | |
3 using RegionIndices | |
4 | |
5 export BoundaryIdentifier, CartesianBoundary | |
6 | |
7 abstract type BoundaryIdentifier end | |
8 struct CartesianBoundary{Dim, R<:Region} <: BoundaryIdentifier end | |
9 dim(::CartesianBoundary{Dim, R}) where {Dim, R} = Dim | |
10 region(::CartesianBoundary{Dim, R}) where {Dim, R} = R | |
11 | |
12 include("AbstractGrid.jl") | |
13 include("EquidistantGrid.jl") | |
14 | |
15 end # module |