diff diffOp.jl @ 80:700a74c41b26 patch_based_test

Improve type stability
author Vidar Stiernström <vidar.stiernstrom@it.uu.se>
date Thu, 24 Jan 2019 14:33:49 +0100
parents 81d9510cb2d0
children 7f72e7e14659
line wrap: on
line diff
--- a/diffOp.jl	Thu Jan 24 14:27:57 2019 +0100
+++ b/diffOp.jl	Thu Jan 24 14:33:49 2019 +0100
@@ -33,8 +33,8 @@
 end
 
 # Differential operator for a*d^2/dx^2
-struct Laplace{D, T<:Real} <: DiffOp
-    grid::Grid.EquidistantGrid{D,T}
+struct Laplace{Dim, T<:Real} <: DiffOp
+    grid::Grid.EquidistantGrid{Dim,T}
     a::T
     op::D2{Float64}
 end