diff plotDerivative.jl @ 56:27a8d3021a1c cell_based_test

Convert apply functions to cell-based
author Ylva Rydin <ylva.rydin@telia.com>
date Tue, 15 Jan 2019 12:26:06 +0100
parents 4300a3fbd818
children 8d505e9bc715
line wrap: on
line diff
--- a/plotDerivative.jl	Tue Jan 15 10:25:56 2019 +0100
+++ b/plotDerivative.jl	Tue Jan 15 12:26:06 2019 +0100
@@ -2,7 +2,7 @@
 op =sbp.readOperator("d2_4th.txt","h_4th.txt")
 Laplace = sbp.Laplace1D(g,1,op)
 
-init(x) = sin(x)
+init(x) = cos(x)
 v = sbp.Grid.evalOn(g,init)
 u = zeros(length(v))