view plotDerivative.jl @ 201:6b7019f2cd41 boundary_conditions

Add/fix test checking that no size assertion is performed when lazy operations and operations on lazy arrays are decorated using @inbounds
author Vidar Stiernström <vidar.stiernstrom@it.uu.se>
date Sun, 23 Jun 2019 21:27:03 +0200
parents 8d505e9bc715
children
line wrap: on
line source

g = sbp.Grid.EquidistantGrid((200,), (0.0,), (2pi,))
op =sbp.readOperator("d2_4th.txt","h_4th.txt")
Laplace = sbp.Laplace(g,1.0,op)

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

sbp.apply!(Laplace,u,v)

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