diff src/SbpOperators/quadrature/diagonal_quadrature.jl @ 507:576c6d1acc28 feature/quadrature_as_outer_product

Make function naming more consistent.
author Vidar Stiernström <vidar.stiernstrom@it.uu.se>
date Sat, 07 Nov 2020 13:31:55 +0100
parents c2f991b819fc
children 09ae5b519b4c
line wrap: on
line diff
--- a/src/SbpOperators/quadrature/diagonal_quadrature.jl	Sat Nov 07 13:28:38 2020 +0100
+++ b/src/SbpOperators/quadrature/diagonal_quadrature.jl	Sat Nov 07 13:31:55 2020 +0100
@@ -60,7 +60,7 @@
 
 function LazyTensors.apply(H::DiagonalQuadrature{T},  v::AbstractVector{T}, index::Index{Unknown}) where T
     N = length(v);
-    r = getregion(Int(index), closuresize(H), N)
+    r = getregion(Int(index), closure_size(H), N)
     i = Index(Int(index), r)
     return LazyTensors.apply(H, v, i)
 end
@@ -68,8 +68,8 @@
 LazyTensors.apply_transpose(H::DiagonalQuadrature{T}, v::AbstractVector{T}, I::Index) where T = LazyTensors.apply(H,v,I)
 
 """
-    closuresize(H)
+    closure_size(H)
 Returns the size of the closure stencil of a DiagonalQuadrature `H`.
 """
-closuresize(H::DiagonalQuadrature{T,M}) where {T,M} = M
-export closuresize
+closure_size(H::DiagonalQuadrature{T,M}) where {T,M} = M
+export closure_size