changeset 579:cd7d3949f692 feature/boundary_ops

Change name from closuresize() to closure_size()
author Jonatan Werpers <jonatan@werpers.com>
date Tue, 01 Dec 2020 17:43:13 +0100
parents b24b910a9025
children 0779713f95a2
files src/SbpOperators/boundaryops/boundary_restriction.jl
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/SbpOperators/boundaryops/boundary_restriction.jl	Tue Dec 01 17:41:14 2020 +0100
+++ b/src/SbpOperators/boundaryops/boundary_restriction.jl	Tue Dec 01 17:43:13 2020 +0100
@@ -39,7 +39,7 @@
     return BoundaryRestriction{T,typeof(region),N}(closureStencil,size(grid)[1])
 end
 
-closuresize(::BoundaryRestriction{T,R,N}) where {T,R,N} = N
+closure_size(::BoundaryRestriction{T,R,N}) where {T,R,N} = N
 
 LazyTensors.range_size(e::BoundaryRestriction) = ()
 LazyTensors.domain_size(e::BoundaryRestriction) = (e.size,)
@@ -66,6 +66,6 @@
 end
 
 function LazyTensors.apply_transpose(e::BoundaryRestriction{T}, v::AbstractArray{T,0}, i) where T
-    r = getregion(i, closuresize(e), e.size)
+    r = getregion(i, closure_size(e), e.size)
     apply_transpose(e, v, Index(i,r))
 end