diff src/SbpOperators/volumeops/quadratures/quadrature.jl @ 671:e14627e79a54 feature/stencil_convenience

Add stencil constructor for centered stencils and change from tuple to vararg in stencil constructor taking cneter
author Jonatan Werpers <jonatan@werpers.com>
date Sat, 06 Feb 2021 21:42:57 +0100
parents 0e20bfef5cee
children 1ce3a104afc8
line wrap: on
line diff
--- a/src/SbpOperators/volumeops/quadratures/quadrature.jl	Sun Jan 31 20:57:58 2021 +0100
+++ b/src/SbpOperators/volumeops/quadratures/quadrature.jl	Sat Feb 06 21:42:57 2021 +0100
@@ -30,7 +30,7 @@
 closure stencils (i.e the operator is diagonal)
 """
 function DiagonalQuadrature(grid::EquidistantGrid, closure_stencils::NTuple{M,Stencil{T,1}}) where {M,T}
-    inner_stencil = Stencil(Tuple{T}(1),center=1)
+    inner_stencil = Stencil(one(T), center=1)
     return Quadrature(grid, inner_stencil, closure_stencils)
 end
 export DiagonalQuadrature