view plotDerivative.jl @ 58:f3ea15c8ebb6

Clean up plotgridfunction now that the matplotlib backend works. The issue was not in the julia code, but rather the installation of matplotlib.
author Vidar Stiernström <vidar.stiernstrom@it.uu.se>
date Wed, 16 Jan 2019 12:39:42 +0100
parents 614b56a017b9
children 4300a3fbd818
line wrap: on
line source

g = sbp.grid.EquidistantGrid(200,(0, 2pi))
op =sbp.readOperator("d2_4th.txt","h_4th.txt")
Laplace = sbp.Laplace1D(g,1,op)

init(x) = sin(x)
v = sbp.Grid.evalOn(g,init)
u = zeros(length(v))

sbp.apply!(Laplace,u,v)

@show u
sbp.grid.plotgridfunction(g,u)