diff diffOp.jl @ 54:4300a3fbd818

switch grid to Grid in diffOp
author Ylva Rydin <ylva.rydin@telia.com>
date Mon, 14 Jan 2019 16:30:52 +0100
parents 947f7579ba9c
children c62ea0112d4d
line wrap: on
line diff
--- a/diffOp.jl	Mon Jan 14 11:30:36 2019 +0100
+++ b/diffOp.jl	Mon Jan 14 16:30:52 2019 +0100
@@ -16,7 +16,7 @@
     error("not implemented")
 end
 
-function interface(Du::DiffOp, Dv::DiffOp, b::grid.BoundaryId; type)
+function interface(Du::DiffOp, Dv::DiffOp, b::Grid.BoundaryId; type)
     error("not implemented")
 end
 
@@ -30,7 +30,7 @@
 
 # u = L*v
 function apply!(L::Laplace1D, u::AbstractVector, v::AbstractVector)
-    h = grid.spacings(L.grid)[1]
+    h = Grid.spacings(L.grid)[1]
     apply!(L.op, u, v, h)
     u .= L.a * u
     return nothing
@@ -47,7 +47,7 @@
 # u = L*v
 function apply!(L::Laplace2D, u::AbstractVector, v::AbstractVector)
     u .= 0*u
-    h = grid.spacings(L.grid)
+    h = Grid.spacings(L.grid)
 
     li = LinearIndices(L.grid.numberOfPointsPerDim)
     n_x, n_y = L.grid.numberOfPointsPerDim