Mercurial > repos > public > sbplib_julia
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 664:7d7c1d636de3 | 671:e14627e79a54 |
|---|---|
| 28 | 28 |
| 29 Creates the quadrature operator with the inner stencil 1/h and 1-element sized | 29 Creates the quadrature operator with the inner stencil 1/h and 1-element sized |
| 30 closure stencils (i.e the operator is diagonal) | 30 closure stencils (i.e the operator is diagonal) |
| 31 """ | 31 """ |
| 32 function DiagonalQuadrature(grid::EquidistantGrid, closure_stencils::NTuple{M,Stencil{T,1}}) where {M,T} | 32 function DiagonalQuadrature(grid::EquidistantGrid, closure_stencils::NTuple{M,Stencil{T,1}}) where {M,T} |
| 33 inner_stencil = Stencil(Tuple{T}(1),center=1) | 33 inner_stencil = Stencil(one(T), center=1) |
| 34 return Quadrature(grid, inner_stencil, closure_stencils) | 34 return Quadrature(grid, inner_stencil, closure_stencils) |
| 35 end | 35 end |
| 36 export DiagonalQuadrature | 36 export DiagonalQuadrature |
