Mercurial > repos > public > sbplib_julia
view plotDerivative.jl @ 59:60d575e4a2d8
Merge with latest changes
author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
---|---|
date | Wed, 16 Jan 2019 12:40:20 +0100 |
parents | 4300a3fbd818 |
children | 27a8d3021a1c 81d9510cb2d0 |
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)