Mercurial > repos > public > sbplib_julia
diff src/SbpOperators/boundaryops/boundary_restriction.jl @ 580:0779713f95a2 feature/boundary_ops
Add constructor that infers T and N
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Tue, 01 Dec 2020 17:47:14 +0100 |
parents | cd7d3949f692 |
children | aa44edea36fc |
line wrap: on
line diff
--- a/src/SbpOperators/boundaryops/boundary_restriction.jl Tue Dec 01 17:43:13 2020 +0100 +++ b/src/SbpOperators/boundaryops/boundary_restriction.jl Tue Dec 01 17:47:14 2020 +0100 @@ -35,6 +35,8 @@ end export BoundaryRestriction +BoundaryRestriction{R}(stencil::Stencil{T,N}, size::Int) where {T,R,N} = BoundaryRestriction{T,R,N}(stencil, size) + function BoundaryRestriction(grid::EquidistantGrid{1}, closureStencil::Stencil{T,N}, region::Region) where {T,N} return BoundaryRestriction{T,typeof(region),N}(closureStencil,size(grid)[1]) end