Mercurial > repos > public > sbplib_julia
changeset 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 | c64793f77509 |
children | bfc893d03cbf |
files | src/SbpOperators/boundaryops/boundary_operator.jl src/SbpOperators/boundaryops/boundary_restriction.jl src/SbpOperators/volumeops/derivatives/secondderivative.jl src/SbpOperators/volumeops/volume_operator.jl test/testSbpOperators.jl |
diffstat | 5 files changed, 5 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/src/SbpOperators/boundaryops/boundary_operator.jl Mon Dec 07 12:16:09 2020 +0100 +++ b/src/SbpOperators/boundaryops/boundary_operator.jl Mon Dec 07 12:21:22 2020 +0100 @@ -24,7 +24,6 @@ parts = Base.setindex(Is, op, d) return foldl(⊗, parts) end -export boundary_operator """ BoundaryOperator{T,R,N} <: TensorMapping{T,0,1} @@ -39,7 +38,6 @@ stencil::Stencil{T,N} size::Int end -export BoundaryOperator BoundaryOperator{R}(stencil::Stencil{T,N}, size::Int) where {T,R,N} = BoundaryOperator{T,R,N}(stencil, size)
--- a/src/SbpOperators/boundaryops/boundary_restriction.jl Mon Dec 07 12:16:09 2020 +0100 +++ b/src/SbpOperators/boundaryops/boundary_restriction.jl Mon Dec 07 12:21:22 2020 +0100 @@ -7,9 +7,9 @@ `e` is the restriction of a grid function to the boundary specified by `boundary` or `region` using some `closure_stencil`. `e'` is the prolongation of a grid function on the boundary to the whole grid using the same `closure_stencil`. On a one-dimensional `grid`, `e` is a `BoundaryOperator`. On a multi-dimensional `grid`, `e` is the inflation of -a `BoundaryOperator`. Also see the documentation of `boundary_operator(...)` for more details. +a `BoundaryOperator`. Also see the documentation of `SbpOperators.boundary_operator(...)` for more details. """ -BoundaryRestriction(grid::EquidistantGrid, closure_stencil::Stencil, boundary::CartesianBoundary) = boundary_operator(grid, closure_stencil, boundary) +BoundaryRestriction(grid::EquidistantGrid, closure_stencil::Stencil, boundary::CartesianBoundary) = SbpOperators.boundary_operator(grid, closure_stencil, boundary) BoundaryRestriction(grid::EquidistantGrid{1}, closure_stencil::Stencil, region::Region) = BoundaryRestriction(grid, closure_stencil, CartesianBoundary{1,typeof(region)}()) export BoundaryRestriction
--- a/src/SbpOperators/volumeops/derivatives/secondderivative.jl Mon Dec 07 12:16:09 2020 +0100 +++ b/src/SbpOperators/volumeops/derivatives/secondderivative.jl Mon Dec 07 12:21:22 2020 +0100 @@ -1,6 +1,6 @@ function SecondDerivative(grid::EquidistantGrid{Dim}, inner_stencil, closure_stencils, direction) where Dim h_inv = inverse_spacing(grid)[direction] - return volume_operator(grid, scale(inner_stencil,h_inv^2), scale.(closure_stencils,h_inv^2), even, direction) + return SbpOperators.volume_operator(grid, scale(inner_stencil,h_inv^2), scale.(closure_stencils,h_inv^2), even, direction) end SecondDerivative(grid::EquidistantGrid{1}, inner_stencil, closure_stencils) = SecondDerivative(grid,inner_stencil,closure_stencils,1) export SecondDerivative
--- a/src/SbpOperators/volumeops/volume_operator.jl Mon Dec 07 12:16:09 2020 +0100 +++ b/src/SbpOperators/volumeops/volume_operator.jl Mon Dec 07 12:21:22 2020 +0100 @@ -19,7 +19,6 @@ parts = Base.setindex(Is, op, direction) return foldl(⊗, parts) end -export volume_operator """ VolumeOperator{T,N,M,K} <: TensorOperator{T,1} @@ -31,7 +30,6 @@ size::NTuple{1,Int} parity::Parity end -export VolumeOperator function VolumeOperator(grid::EquidistantGrid{1}, inner_stencil, closure_stencils, parity) return VolumeOperator(inner_stencil, closure_stencils, size(grid), parity)
--- a/test/testSbpOperators.jl Mon Dec 07 12:16:09 2020 +0100 +++ b/test/testSbpOperators.jl Mon Dec 07 12:21:22 2020 +0100 @@ -7,6 +7,8 @@ using TOML import Sbplib.SbpOperators.Stencil +import Sbplib.SbpOperators.BoundaryOperator +import Sbplib.SbpOperators.boundary_operator @testset "SbpOperators" begin