Mercurial > repos > public > sbplib_julia
comparison src/SbpOperators/volumeops/volume_operator.jl @ 619:332f65c1abf3 feature/volume_and_boundary_operators
Remove export of BoundaryOperator and VolumeOperator
author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
---|---|
date | Mon, 07 Dec 2020 12:21:22 +0100 |
parents | e71f2f81b5f8 |
children | 9f27f451d0a0 |
comparison
equal
deleted
inserted
replaced
618:c64793f77509 | 619:332f65c1abf3 |
---|---|
17 # Formulate the correct outer product sequence of the identity mappings and | 17 # Formulate the correct outer product sequence of the identity mappings and |
18 # the volume operator | 18 # the volume operator |
19 parts = Base.setindex(Is, op, direction) | 19 parts = Base.setindex(Is, op, direction) |
20 return foldl(⊗, parts) | 20 return foldl(⊗, parts) |
21 end | 21 end |
22 export volume_operator | |
23 | 22 |
24 """ | 23 """ |
25 VolumeOperator{T,N,M,K} <: TensorOperator{T,1} | 24 VolumeOperator{T,N,M,K} <: TensorOperator{T,1} |
26 Implements a one-dimensional constant coefficients volume operator | 25 Implements a one-dimensional constant coefficients volume operator |
27 """ | 26 """ |
29 inner_stencil::Stencil{T,N} | 28 inner_stencil::Stencil{T,N} |
30 closure_stencils::NTuple{M,Stencil{T,K}} | 29 closure_stencils::NTuple{M,Stencil{T,K}} |
31 size::NTuple{1,Int} | 30 size::NTuple{1,Int} |
32 parity::Parity | 31 parity::Parity |
33 end | 32 end |
34 export VolumeOperator | |
35 | 33 |
36 function VolumeOperator(grid::EquidistantGrid{1}, inner_stencil, closure_stencils, parity) | 34 function VolumeOperator(grid::EquidistantGrid{1}, inner_stencil, closure_stencils, parity) |
37 return VolumeOperator(inner_stencil, closure_stencils, size(grid), parity) | 35 return VolumeOperator(inner_stencil, closure_stencils, size(grid), parity) |
38 end | 36 end |
39 | 37 |