comparison SbpOperators/src/d2.jl @ 291:0f94dc29c4bf

Merge in branch boundary_conditions
author Jonatan Werpers <jonatan@werpers.com>
date Mon, 22 Jun 2020 21:43:05 +0200
parents 51e7de109c25
children
comparison
equal deleted inserted replaced
231:fbabfd4e8f20 291:0f94dc29c4bf
1 export D2, closuresize, readOperator
2
3 @enum Parity begin
4 odd = -1
5 even = 1
6 end
7
8 struct D2{T,N,M,K} <: ConstantStencilOperator
9 quadratureClosure::NTuple{M,T}
10 innerStencil::Stencil{T,N}
11 closureStencils::NTuple{M,Stencil{T,K}}
12 eClosure::Stencil{T,M}
13 dClosure::Stencil{T,M}
14 parity::Parity
15 end
16
17 function closuresize(D::D2)::Int
18 return length(D.quadratureClosure)
19 end