Mercurial > repos > public > sbplib_julia
comparison src/SbpOperators/volumeops/laplace/laplace.jl @ 948:1484073dfe27 feature/laplace_opset
Rename type parameter DiffOp to TM
| author | Jonatan Werpers <jonatan@werpers.com> |
|---|---|
| date | Mon, 14 Mar 2022 07:50:53 +0100 |
| parents | 38d1752a9aff |
| children | 66e8faf4bb4b |
comparison
equal
deleted
inserted
replaced
| 947:38d1752a9aff | 948:1484073dfe27 |
|---|---|
| 1 """ | 1 """ |
| 2 Laplace{T, Dim, DiffOp} <: TensorMapping{T, Dim, Dim} | 2 Laplace{T, Dim, TM} <: TensorMapping{T, Dim, Dim} |
| 3 | 3 |
| 4 Implements the Laplace operator, approximating ∑d²/xᵢ² , i = 1,...,`Dim` as a | 4 Implements the Laplace operator, approximating ∑d²/xᵢ² , i = 1,...,`Dim` as a |
| 5 `TensorMapping`. Additionally `Laplace` stores the stencil set (parsed from TOML) | 5 `TensorMapping`. Additionally `Laplace` stores the stencil set (parsed from TOML) |
| 6 used to construct the `TensorMapping`. | 6 used to construct the `TensorMapping`. |
| 7 """ | 7 """ |
| 8 struct Laplace{T, Dim, DiffOp<:TensorMapping{T, Dim, Dim}} <: TensorMapping{T, Dim, Dim} | 8 struct Laplace{T, Dim, TM<:TensorMapping{T, Dim, Dim}} <: TensorMapping{T, Dim, Dim} |
| 9 D::DiffOp# Differential operator | 9 D::TM# Differential operator |
| 10 stencil_set # Stencil set of the operator | 10 stencil_set # Stencil set of the operator |
| 11 end | 11 end |
| 12 | 12 |
| 13 """ | 13 """ |
| 14 Laplace(grid::Equidistant, stencil_set) | 14 Laplace(grid::Equidistant, stencil_set) |
