Mercurial > repos > public > sbplib_julia
view 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 |
line wrap: on
line source
module Grid abstract type BoundaryIdentifier end struct CartesianBoundary{Dim, R<:Region} <: BoundaryIdentifier end dim(::CartesianBoundary{Dim, R}) where {Dim, R} = Dim region(::CartesianBoundary{Dim, R}) where {Dim, R} = R include("AbstractGrid.jl") include("EquidistantGrid.jl") end