Mercurial > repos > public > sbplib_julia
comparison src/RegionIndices/RegionIndices.jl @ 562:8f7919a9b398 feature/boundary_ops
Merge with default
author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
---|---|
date | Mon, 30 Nov 2020 18:30:24 +0100 |
parents | 011ca1639153 |
children | b41180efb6c2 |
comparison
equal
deleted
inserted
replaced
544:884be64e82d9 | 562:8f7919a9b398 |
---|---|
2 | 2 |
3 abstract type Region end | 3 abstract type Region end |
4 struct Interior <: Region end | 4 struct Interior <: Region end |
5 struct Lower <: Region end | 5 struct Lower <: Region end |
6 struct Upper <: Region end | 6 struct Upper <: Region end |
7 struct Unknown <: Region end | |
8 | 7 |
9 export Region, Interior, Lower, Upper, Unknown | 8 export Region, Interior, Lower, Upper |
10 | 9 |
11 struct Index{R<:Region, T<:Integer} | 10 struct Index{R<:Region, T<:Integer} |
12 i::T | 11 i::T |
13 | 12 |
14 Index{R,T}(i::T) where {R<:Region,T<:Integer} = new{R,T}(i) | 13 Index{R,T}(i::T) where {R<:Region,T<:Integer} = new{R,T}(i) |