Mercurial > repos > public > sbplib_julia
diff DiffOps/src/DiffOps.jl @ 227:eb8525066f9b boundary_conditions
Express the DiffOp interface in a better way
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Wed, 26 Jun 2019 14:40:51 +0200 |
parents | b3506cfbb9d8 |
children | cd60382f392b |
line wrap: on
line diff
--- a/DiffOps/src/DiffOps.jl Wed Jun 26 14:02:28 2019 +0200 +++ b/DiffOps/src/DiffOps.jl Wed Jun 26 14:40:51 2019 +0200 @@ -6,16 +6,16 @@ export Laplace +""" + DiffOp + +Supertype of differential operator discretisations. +The action of the DiffOp is defined in the method + apply(D::DiffOp, v::AbstractVector, I...) +""" abstract type DiffOp end -# TBD: The "error("not implemented")" thing seems to be hiding good error information. How to fix that? Different way of saying that these should be implemented? -function apply(D::DiffOp, v::AbstractVector, i::Int) - error("not implemented") -end - -function innerProduct(D::DiffOp, u::AbstractVector, v::AbstractVector)::Real - error("not implemented") -end +function apply end function matrixRepresentation(D::DiffOp) error("not implemented")