Mercurial > repos > public > sbplib_julia
comparison src/SbpOperators/d2.jl @ 651:67639b1c99ea
Merged feature/volume_and_boundary_operators
author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
---|---|
date | Wed, 20 Jan 2021 17:52:55 +0100 |
parents | f13d45c10f55 |
children | 80d5717ad2f9 |
comparison
equal
deleted
inserted
replaced
615:52749b687a67 | 651:67639b1c99ea |
---|---|
3 @enum Parity begin | 3 @enum Parity begin |
4 odd = -1 | 4 odd = -1 |
5 even = 1 | 5 even = 1 |
6 end | 6 end |
7 | 7 |
8 struct D2{T,N,M,K} <: ConstantStencilOperator | 8 struct D2{T,M} |
9 quadratureClosure::NTuple{M,T} | 9 innerStencil::Stencil{T} |
10 innerStencil::Stencil{T,N} | 10 closureStencils::NTuple{M,Stencil{T}} |
11 closureStencils::NTuple{M,Stencil{T,K}} | 11 eClosure::Stencil{T} |
12 eClosure::Stencil{T,M} | 12 dClosure::Stencil{T} |
13 dClosure::Stencil{T,M} | 13 quadratureClosure::NTuple{M,Stencil{T}} |
14 parity::Parity | 14 parity::Parity |
15 end | 15 end |
16 | 16 |
17 function closuresize(D::D2)::Int | 17 closuresize(D::D2{T,M}) where {T,M} = M |
18 return length(D.quadratureClosure) | |
19 end |