view Grids/src/Grids.jl @ 277:21e5c1dd6794 boundary_conditions

Add getindex-function for region indices. Update LazyArray tests. NOTE: Not sure if this is the way to go.
author Vidar Stiernström <vidar.stiernstrom@it.uu.se>
date Mon, 06 Jan 2020 12:08:00 +0100
parents 7d2ad8a73b1f
children
line wrap: on
line source

module Grids

using RegionIndices

export BoundaryIdentifier, CartesianBoundary

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

export dim, region

include("AbstractGrid.jl")
include("EquidistantGrid.jl")

end # module