Mercurial > repos > public > sbplib_julia
comparison src/SbpOperators/volumeops/laplace/laplace.jl @ 1036:99d1f5651d0b feature/stencil_set_type
Remove todo, add ::StencilSet to some methods, and update docs
author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
---|---|
date | Tue, 22 Mar 2022 13:53:07 +0100 |
parents | 7bf3121c6864 |
children | 7fc8df5157a7 |
comparison
equal
deleted
inserted
replaced
1019:3031ce7a4999 | 1036:99d1f5651d0b |
---|---|
15 | 15 |
16 Creates the `Laplace` operator `Δ` on `grid` given a `stencil_set`. | 16 Creates the `Laplace` operator `Δ` on `grid` given a `stencil_set`. |
17 | 17 |
18 See also [`laplace`](@ref). | 18 See also [`laplace`](@ref). |
19 """ | 19 """ |
20 function Laplace(grid::EquidistantGrid, stencil_set) | 20 function Laplace(grid::EquidistantGrid, stencil_set::StencilSet) |
21 inner_stencil = parse_stencil(stencil_set["D2"]["inner_stencil"]) | 21 inner_stencil = parse_stencil(stencil_set["D2"]["inner_stencil"]) |
22 closure_stencils = parse_stencil.(stencil_set["D2"]["closure_stencils"]) | 22 closure_stencils = parse_stencil.(stencil_set["D2"]["closure_stencils"]) |
23 Δ = laplace(grid, inner_stencil,closure_stencils) | 23 Δ = laplace(grid, inner_stencil,closure_stencils) |
24 return Laplace(Δ,stencil_set) | 24 return Laplace(Δ,stencil_set) |
25 end | 25 end |