Mercurial > repos > public > sbplib_julia
comparison grid.jl @ 164:6b633624703a boundary_conditions
Add getter functions for dim and region on a cartesian boundary identifier
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Tue, 21 May 2019 10:46:39 +0200 |
parents | cb9a789338a1 |
children | 074cb898f24e |
comparison
equal
deleted
inserted
replaced
163:766403c677b1 | 164:6b633624703a |
---|---|
1 module Grid | 1 module Grid |
2 | 2 |
3 abstract type BoundaryIdentifier end | 3 abstract type BoundaryIdentifier end |
4 struct CartesianBoundary{Dim, R<:Region} <: BoundaryIdentifier end | 4 struct CartesianBoundary{Dim, R<:Region} <: BoundaryIdentifier end |
5 dim(::CartesianBoundary{Dim, R}) where {Dim, R} = Dim | |
6 region(::CartesianBoundary{Dim, R}) where {Dim, R} = R | |
5 | 7 |
6 include("AbstractGrid.jl") | 8 include("AbstractGrid.jl") |
7 include("EquidistantGrid.jl") | 9 include("EquidistantGrid.jl") |
8 | 10 |
9 end | 11 end |