changeset 1140:0aa8ce9f30e2

Merged feature/grids
author Vidar Stiernström <vidar.stiernstrom@it.uu.se>
date Wed, 12 Oct 2022 10:44:44 +0200
parents 560ff49ff17f (current diff) 9625360faf06 (diff)
children 805fa2ba837f 9275d95e2d90 dd7325f91aa3 5ddf5ae48391 c9fdfb1efba8
files
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/Grids/boundary_identifier.jl	Wed Oct 12 10:44:44 2022 +0200
@@ -0,0 +1,6 @@
+
+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()
\ No newline at end of file