Mercurial > repos > public > sbplib_julia
comparison src/SbpOperators/volumeops/quadratures/quadrature.jl @ 640:0e20bfef5cee feature/volume_and_boundary_operators
remove extra space
author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
---|---|
date | Mon, 04 Jan 2021 16:59:11 +0100 |
parents | 08b2c7a2d063 |
children | 2a95beb9ef1d e14627e79a54 |
comparison
equal
deleted
inserted
replaced
639:bfb1adb2cd7e | 640:0e20bfef5cee |
---|---|
7 `inner_stencil` in the interior and a set of stencils `closure_stencils` | 7 `inner_stencil` in the interior and a set of stencils `closure_stencils` |
8 for the points in the closure regions. | 8 for the points in the closure regions. |
9 | 9 |
10 On a one-dimensional `grid`, `H` is a `VolumeOperator`. On a multi-dimensional | 10 On a one-dimensional `grid`, `H` is a `VolumeOperator`. On a multi-dimensional |
11 `grid`, `H` is the outer product of the 1-dimensional quadrature operators in | 11 `grid`, `H` is the outer product of the 1-dimensional quadrature operators in |
12 each coordinate direction. Also see the documentation of | 12 each coordinate direction. Also see the documentation of |
13 `SbpOperators.volume_operator(...)` for more details. | 13 `SbpOperators.volume_operator(...)` for more details. |
14 """ | 14 """ |
15 function Quadrature(grid::EquidistantGrid{Dim}, inner_stencil, closure_stencils) where Dim | 15 function Quadrature(grid::EquidistantGrid{Dim}, inner_stencil, closure_stencils) where Dim |
16 h = spacing(grid) | 16 h = spacing(grid) |
17 H = SbpOperators.volume_operator(grid, scale(inner_stencil,h[1]), scale.(closure_stencils,h[1]), even, 1) | 17 H = SbpOperators.volume_operator(grid, scale(inner_stencil,h[1]), scale.(closure_stencils,h[1]), even, 1) |