diff src/Grids/boundary_identifier.jl @ 1888:eb70a0941cd6 allocation_testing

Merge default
author Jonatan Werpers <jonatan@werpers.com>
date Fri, 03 Feb 2023 23:02:46 +0100
parents 0bb637898fd9
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/Grids/boundary_identifier.jl	Fri Feb 03 23:02:46 2023 +0100
@@ -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