Mercurial > repos > public > sbplib_julia
diff diffOp.jl @ 2:43be32298ae2
Add function to get closure size
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Mon, 17 Dec 2018 12:45:30 +0100 |
parents | b714e341a0ba |
children | cb8e50ca9e15 |
line wrap: on
line diff
--- a/diffOp.jl Mon Dec 17 12:44:02 2018 +0100 +++ b/diffOp.jl Mon Dec 17 12:45:30 2018 +0100 @@ -0,0 +1,33 @@ +abstract type DiffOp end + +function apply(D::DiffOp, v::AbstractVector) where N + error("not implemented") +end + +function innerProduct(D::DiffOp, u::AbstractVector, v::AbstractVector)::Real + error("not implemented") +end + +function matrixRepresentation(D::DiffOp) + error("not implemented") +end + +function boundaryCondition(D::DiffOp) + error("not implemented") +end + +function interface(Du::DiffOp, Dv::DiffOp, b::BoundaryID; type) + error("not implemented") +end + + +# Differential operator for a*d^2/dx^2 +struct Laplace1D <: DiffOp + grid + a + op +end + +function apply(L::Laplace, v::AbstractVector)::AbstractVector + +end