changeset 571:205238c342da feature/boundary_ops

Add methods for closure size of a boundary restriction
author Jonatan Werpers <jonatan@werpers.com>
date Tue, 01 Dec 2020 16:01:08 +0100
parents a8fe91861116
children 64f1b269e9fc
files src/SbpOperators/boundaryops/boundary_restriction.jl
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/SbpOperators/boundaryops/boundary_restriction.jl	Tue Dec 01 15:36:35 2020 +0100
+++ b/src/SbpOperators/boundaryops/boundary_restriction.jl	Tue Dec 01 16:01:08 2020 +0100
@@ -39,6 +39,8 @@
     return BoundaryRestriction{T,typeof(region),N}(closureStencil,size(grid)[1])
 end
 
+closuresize(::BoundaryRestriction{T,R,N}) where {T,R,N} = N
+
 LazyTensors.range_size(e::BoundaryRestriction) = ()
 LazyTensors.domain_size(e::BoundaryRestriction) = (e.size,)