comparison ext/SbplibMakieExt.jl @ 1679:529b533a1dbb feature/sbp_operators/laplace_curvilinear

Merge feature/sbp_operators/laplace_curvilinear
author Jonatan Werpers <jonatan@werpers.com>
date Sun, 30 Jun 2024 10:57:05 +0200
parents e2e468c45ed6
children
comparison
equal deleted inserted replaced
1663:de6300bd36cc 1679:529b533a1dbb
6 6
7 7
8 function verticies_and_faces_and_values(g::Grid{<:Any,2}, gf::AbstractArray{<:Any, 2}) 8 function verticies_and_faces_and_values(g::Grid{<:Any,2}, gf::AbstractArray{<:Any, 2})
9 ps = map(Tuple, g)[:] 9 ps = map(Tuple, g)[:]
10 values = gf[:] 10 values = gf[:]
11
12 N = length(ps)
13
14 faces = Vector{NTuple{3,Int}}() 11 faces = Vector{NTuple{3,Int}}()
15 12
16 n,m = size(g) 13 n,m = size(g)
17 Li = LinearIndices((1:n, 1:m)) 14 Li = LinearIndices((1:n, 1:m))
18 for i ∈ 1:n-1, j = 1:m-1 15 for i ∈ 1:n-1, j = 1:m-1