Mercurial > repos > public > sbplib_julia
view grid.jl @ 165:9fc9167e9a4c boundary_conditions
Factor out function for geting the region of an index
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Tue, 21 May 2019 11:40:21 +0200 |
parents | 6b633624703a |
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