Mercurial > repos > public > sbplib_julia
view plotDerivative2d.jl @ 1056:fe83ea1db953 feature/nested_stencils
Add argument restrictions to stencil constructors to get clearer error messages
(grafted from f74189c954d65eb5e2ce8de4e9210f74390b8cb7)
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Thu, 20 Jan 2022 15:17:37 +0100 |
parents | d61bfc8cf6a5 |
children |
line wrap: on
line source
include("sbpPlot.jl") g = sbp.Grid.EquidistantGrid((100,75), (0.0, 0.0), (2pi, 3/2*pi)) op = sbp.readOperator("d2_4th.txt","h_4th.txt") Laplace = sbp.Laplace(g, 1.0, op) init(x,y) = sin(x) + cos(y) v = sbp.Grid.evalOn(g,init) u = zero(v) sbp.apply!(Laplace,u,v) #@show u #@show u'*u plotgridfunction(g,u)