changeset 73:d04569696918

Add types to Laplace operators
author Jonatan Werpers <jonatan@werpers.com>
date Tue, 15 Jan 2019 19:51:16 +0100
parents 8cd8d83b92e7
children c47aaedcf71e
files diffOp.jl sbp.jl
diffstat 2 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/diffOp.jl	Fri Jan 18 10:12:23 2019 +0100
+++ b/diffOp.jl	Tue Jan 15 19:51:16 2019 +0100
@@ -34,9 +34,9 @@
 
 # Differential operator for a*d^2/dx^2
 struct Laplace1D <: DiffOp
-    grid
-    a
-    op
+    grid::Grid.EquidistantGrid
+    a::Real
+    op::D2{Float64}
 end
 
 # u = L*v
@@ -50,9 +50,9 @@
 
 # Differential operator for a*d^2/dx^2 + a*d^2/dy^2
 struct Laplace2D <: DiffOp
-    grid
-    a
-    op
+    grid::Grid.EquidistantGrid
+    a::Real
+    op::D2{Float64}
 end
 
 # u = L*v
--- a/sbp.jl	Fri Jan 18 10:12:23 2019 +0100
+++ b/sbp.jl	Tue Jan 15 19:51:16 2019 +0100
@@ -1,7 +1,7 @@
 module sbp
 include("grid.jl")
-include("diffOp.jl")
 include("stencil.jl")
 include("sbpD2.jl")
+include("diffOp.jl")
 include("TimeStepper.jl")
 end  # module