Mercurial > repos > public > sbplib_julia
comparison ext/SbplibMakieExt.jl @ 1661:e2e468c45ed6 feature/grids/plotting
Remove unused variable
author | Vidar Stiernström <vidar.stiernstrom@gmail.com> |
---|---|
date | Sat, 29 Jun 2024 07:14:31 -0700 |
parents | 27d270c9cb89 |
children |
comparison
equal
deleted
inserted
replaced
1642:a154dd5f453d | 1661:e2e468c45ed6 |
---|---|
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 |