Mercurial > repos > public > sbplib_julia
view plotDerivative.jl @ 825:69700b0b1452 operator_storage_array_of_table
Remove unneeded type specification in boundary_operator signature
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Tue, 21 Dec 2021 16:02:11 +0100 |
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)