comparison src/SbpOperators/boundaryops/boundary_operator.jl @ 1281:1cc45207817e refactor/grids

Fix tests for boundary operator and boundary restriction
author Jonatan Werpers <jonatan@werpers.com>
date Mon, 27 Feb 2023 08:48:38 +0100
parents 716e721ce3eb
children e94ddef5e72f
comparison
equal deleted inserted replaced
1280:17d435c08773 1281:1cc45207817e
11 stencil::Stencil{T,N} 11 stencil::Stencil{T,N}
12 size::Int 12 size::Int
13 end 13 end
14 14
15 """ 15 """
16 BoundaryOperator(grid::EquidistantGrid{1}, closure_stencil, region) 16 BoundaryOperator(grid::EquidistantGrid, closure_stencil, region)
17 17
18 Constructs the BoundaryOperator with stencil `closure_stencil` for a one-dimensional `grid`, restricting to 18 Constructs the BoundaryOperator with stencil `closure_stencil` for a `EquidistantGrid` `grid`, restricting to
19 to the boundary specified by `region`. 19 to the boundary specified by `region`.
20 """ 20 """
21 function BoundaryOperator(grid::EquidistantGrid{1}, closure_stencil::Stencil{T,N}, region::Region) where {T,N} 21 function BoundaryOperator(grid::EquidistantGrid, closure_stencil::Stencil{T,N}, region::Region) where {T,N}
22 return BoundaryOperator{T,typeof(region),N}(closure_stencil,size(grid)[1]) 22 return BoundaryOperator{T,typeof(region),N}(closure_stencil,size(grid)[1])
23 end 23 end
24 24
25 """ 25 """
26 closure_size(::BoundaryOperator) 26 closure_size(::BoundaryOperator)