diff plotDerivative.jl @ 76:81d9510cb2d0

Make Laplace take dimension as a parameter
author Jonatan Werpers <jonatan@werpers.com>
date Thu, 24 Jan 2019 09:24:21 +0100
parents 4300a3fbd818
children 8d505e9bc715
line wrap: on
line diff
--- a/plotDerivative.jl	Thu Jan 17 15:19:33 2019 +0100
+++ b/plotDerivative.jl	Thu Jan 24 09:24:21 2019 +0100
@@ -1,6 +1,6 @@
-g = sbp.Grid.EquidistantGrid(200,(0, 2pi))
+g = sbp.Grid.EquidistantGrid((200,), (0.0,), (2pi,))
 op =sbp.readOperator("d2_4th.txt","h_4th.txt")
-Laplace = sbp.Laplace1D(g,1,op)
+Laplace = sbp.Laplace(g,1.0,op)
 
 init(x) = sin(x)
 v = sbp.Grid.evalOn(g,init)