view src/Grids/boundary_identifier.jl @ 1141:805fa2ba837f bugfix/lazy_tensors/lazyfunctionarray

Add test for a bug in the constructor of LazyFunctionArray The constructor throws an error if the function provided is restricted to only work for Ints
author Jonatan Werpers <jonatan@werpers.com>
date Wed, 19 Oct 2022 23:10:58 +0200
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()