Mercurial > repos > public > sbplib_julia
comparison diffOp.jl @ 80:700a74c41b26 patch_based_test
Improve type stability
author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
---|---|
date | Thu, 24 Jan 2019 14:33:49 +0100 |
parents | 81d9510cb2d0 |
children | 7f72e7e14659 |
comparison
equal
deleted
inserted
replaced
79:015bd5f33a54 | 80:700a74c41b26 |
---|---|
31 function apply(c::Penalty, g, i::Int) | 31 function apply(c::Penalty, g, i::Int) |
32 error("not implemented") | 32 error("not implemented") |
33 end | 33 end |
34 | 34 |
35 # Differential operator for a*d^2/dx^2 | 35 # Differential operator for a*d^2/dx^2 |
36 struct Laplace{D, T<:Real} <: DiffOp | 36 struct Laplace{Dim, T<:Real} <: DiffOp |
37 grid::Grid.EquidistantGrid{D,T} | 37 grid::Grid.EquidistantGrid{Dim,T} |
38 a::T | 38 a::T |
39 op::D2{Float64} | 39 op::D2{Float64} |
40 end | 40 end |
41 | 41 |
42 # u = L*v | 42 # u = L*v |