Mercurial > repos > public > sbplib_julia
comparison src/Grids/Grids.jl @ 633:a78bda7084f6 feature/quadrature_as_outer_product
Merge w. default
author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
---|---|
date | Fri, 01 Jan 2021 16:34:55 +0100 |
parents | 212e266043dd |
children | f0ceddeae993 |
comparison
equal
deleted
inserted
replaced
561:04d7b4eb63ef | 633:a78bda7084f6 |
---|---|
5 export BoundaryIdentifier, CartesianBoundary | 5 export BoundaryIdentifier, CartesianBoundary |
6 | 6 |
7 abstract type BoundaryIdentifier end | 7 abstract type BoundaryIdentifier end |
8 struct CartesianBoundary{Dim, R<:Region} <: BoundaryIdentifier end | 8 struct CartesianBoundary{Dim, R<:Region} <: BoundaryIdentifier end |
9 dim(::CartesianBoundary{Dim, R}) where {Dim, R} = Dim | 9 dim(::CartesianBoundary{Dim, R}) where {Dim, R} = Dim |
10 region(::CartesianBoundary{Dim, R}) where {Dim, R} = R #TODO: Should return R() | 10 region(::CartesianBoundary{Dim, R}) where {Dim, R} = R() |
11 | 11 |
12 export dim, region | 12 export dim, region |
13 | 13 |
14 include("AbstractGrid.jl") | 14 include("AbstractGrid.jl") |
15 include("EquidistantGrid.jl") | 15 include("EquidistantGrid.jl") |