Mercurial > repos > public > sbplib_julia
diff src/SbpOperators/d2.jl @ 637:4a81812150f4 feature/volume_and_boundary_operators
Change qudrature closure from tuple of reals to tuple of Stencils. Also remove parametrization of stencil width in D2 since this was illformed for the 2nd order case.
author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
---|---|
date | Sun, 03 Jan 2021 18:15:14 +0100 |
parents | b05f542b2e8f |
children | f13d45c10f55 |
line wrap: on
line diff
--- a/src/SbpOperators/d2.jl Fri Jan 01 16:45:48 2021 +0100 +++ b/src/SbpOperators/d2.jl Sun Jan 03 18:15:14 2021 +0100 @@ -5,15 +5,13 @@ even = 1 end -struct D2{T,N,M,K} <: ConstantStencilOperator - quadratureClosure::NTuple{M,T} - innerStencil::Stencil{T,N} - closureStencils::NTuple{M,Stencil{T,K}} - eClosure::Stencil{T,M} - dClosure::Stencil{T,M} +struct D2{T,M} <: ConstantStencilOperator + innerStencil::Stencil{T} + closureStencils::NTuple{M,Stencil{T}} + eClosure::Stencil{T} + dClosure::Stencil{T} + quadratureClosure::NTuple{M,Stencil{T}} parity::Parity end -function closuresize(D::D2)::Int - return length(D.quadratureClosure) -end +closuresize(D::D2{T,M}) where {T,M} = M