comparison src/SbpOperators/boundaryops/boundary_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 e40e7439d1b4
children 9f27f451d0a0
comparison
equal deleted inserted replaced
618:c64793f77509 619:332f65c1abf3
22 # Formulate the correct outer product sequence of the identity mappings and 22 # Formulate the correct outer product sequence of the identity mappings and
23 # the boundary operator 23 # the boundary operator
24 parts = Base.setindex(Is, op, d) 24 parts = Base.setindex(Is, op, d)
25 return foldl(⊗, parts) 25 return foldl(⊗, parts)
26 end 26 end
27 export boundary_operator
28 27
29 """ 28 """
30 BoundaryOperator{T,R,N} <: TensorMapping{T,0,1} 29 BoundaryOperator{T,R,N} <: TensorMapping{T,0,1}
31 30
32 Implements the boundary operator `op` for 1D as a `TensorMapping` 31 Implements the boundary operator `op` for 1D as a `TensorMapping`
37 """ 36 """
38 struct BoundaryOperator{T,R<:Region,N} <: TensorMapping{T,0,1} 37 struct BoundaryOperator{T,R<:Region,N} <: TensorMapping{T,0,1}
39 stencil::Stencil{T,N} 38 stencil::Stencil{T,N}
40 size::Int 39 size::Int
41 end 40 end
42 export BoundaryOperator
43 41
44 BoundaryOperator{R}(stencil::Stencil{T,N}, size::Int) where {T,R,N} = BoundaryOperator{T,R,N}(stencil, size) 42 BoundaryOperator{R}(stencil::Stencil{T,N}, size::Int) where {T,R,N} = BoundaryOperator{T,R,N}(stencil, size)
45 43
46 """ 44 """
47 BoundaryOperator(grid::EquidistantGrid{1}, closure_stencil, region) 45 BoundaryOperator(grid::EquidistantGrid{1}, closure_stencil, region)