Skip to content

Commit 5225576

Browse files
committed
fix creation of SVector
1 parent 24eb44a commit 5225576

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "GridVisualizeTools"
22
uuid = "5573ae12-3b76-41d9-b48c-81d0b6e61cc5"
33
authors = ["Jürgen Fuhrmann <juergen-fuhrmann@web.de>"]
4-
version = "0.2.0"
4+
version = "0.2.1"
55

66
[deps]
77
ColorSchemes = "35d6a980-a343-548e-a6ea-1d62b119f2f4"

src/marching.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ end
200200
201201
Collect isoline snippets on triangles ready for linesegments!
202202
"""
203-
function marching_triangles(coord,cellnodes,func,levels; Tp=SVector{2,Float32})
203+
function marching_triangles(coord,cellnodes,func,levels; Tc=Float32, Tp=SVector{2,Tc})
204204
points=Vector{Tp}(undef,0)
205205
function isect(nodes)
206206
(i1,i2,i3)=(1,2,3)
@@ -240,8 +240,8 @@ function marching_triangles(coord,cellnodes,func,levels; Tp=SVector{2,Float32})
240240
x2=coord[1,n2]+α*dx32
241241
y2=coord[2,n2]+α*dy32
242242
end
243-
push!(points,(x1,y1))
244-
push!(points,(x2,y2))
243+
push!(points,SVector{2,Tc}((x1,y1)))
244+
push!(points,SVector{2,Tc}((x2,y2)))
245245
end
246246
end
247247
end

0 commit comments

Comments
 (0)