view src/Grids/boundary_identifier.jl @ 1208:e679d4fab8ee performance/get_region_type_inference

Add some tests for allocations
author Jonatan Werpers <jonatan@werpers.com>
date Fri, 03 Feb 2023 22:34:38 +0100
parents 0bb637898fd9
children
line wrap: on
line source


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()