changeset 252:9405c19b76bc boundary_conditions

Move boundary_value and similar methods of laplce
author Jonatan Werpers <jonatan@werpers.com>
date Thu, 27 Jun 2019 14:43:57 +0200
parents 89a101a63e7a
children 396eadb652bd
files DiffOps/src/laplace.jl
diffstat 1 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/DiffOps/src/laplace.jl	Thu Jun 27 14:37:21 2019 +0200
+++ b/DiffOps/src/laplace.jl	Thu Jun 27 14:43:57 2019 +0200
@@ -4,10 +4,6 @@
     op::D2{Float64,N,M,K}
 end
 
-boundary_value(L::Laplace, bId::CartesianBoundary) = BoundaryValue(L.op, L.grid, bId)
-normal_derivative(L::Laplace, bId::CartesianBoundary) = NormalDerivative(L.op, L.grid, bId)
-boundary_quadrature(L::Laplace, bId::CartesianBoundary) = throw(MethodError) # TODO: Implement this
-
 function apply(L::Laplace{Dim}, v::AbstractArray{T,Dim} where T, I::CartesianIndex{Dim}) where Dim
     error("not implemented")
 end
@@ -35,6 +31,9 @@
     apply(L, v, I)
 end
 
+boundary_value(L::Laplace, bId::CartesianBoundary) = BoundaryValue(L.op, L.grid, bId)
+normal_derivative(L::Laplace, bId::CartesianBoundary) = NormalDerivative(L.op, L.grid, bId)
+boundary_quadrature(L::Laplace, bId::CartesianBoundary) = throw(MethodError) # TODO: Implement this
 
 
 """