Mercurial > repos > public > sbplib_julia
comparison src/SbpOperators/laplace/secondderivative.jl @ 348:7fe43d902a27 refactor/remove_dynamic_size_tensormapping
Start trying to change LazyTensors
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Sat, 26 Sep 2020 15:20:18 +0200 |
parents | 01b851161018 |
children | 0844069ab5ff |
comparison
equal
deleted
inserted
replaced
344:f781d6da7d3d | 348:7fe43d902a27 |
---|---|
2 SecondDerivative{T<:Real,N,M,K} <: TensorOperator{T,1} | 2 SecondDerivative{T<:Real,N,M,K} <: TensorOperator{T,1} |
3 Implements the Laplace tensor operator `L` with constant grid spacing and coefficients | 3 Implements the Laplace tensor operator `L` with constant grid spacing and coefficients |
4 in 1D dimension | 4 in 1D dimension |
5 """ | 5 """ |
6 | 6 |
7 struct SecondDerivative{T,N,M,K} <: TensorOperator{T,1} | 7 struct SecondDerivative{T,N,M,K} <: TensorMapping{T,1,1} |
8 h_inv::T # The grid spacing could be included in the stencil already. Preferable? | 8 h_inv::T # The grid spacing could be included in the stencil already. Preferable? |
9 innerStencil::Stencil{T,N} | 9 innerStencil::Stencil{T,N} |
10 closureStencils::NTuple{M,Stencil{T,K}} | 10 closureStencils::NTuple{M,Stencil{T,K}} |
11 parity::Parity | 11 parity::Parity |
12 #TODO: Write a nice constructor | 12 #TODO: Write a nice constructor |