Skip to content

Commit

Permalink
fix creation of SVector
Browse files Browse the repository at this point in the history
  • Loading branch information
j-fu committed Dec 5, 2022
1 parent 24eb44a commit 5225576
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "GridVisualizeTools"
uuid = "5573ae12-3b76-41d9-b48c-81d0b6e61cc5"
authors = ["Jürgen Fuhrmann <juergen-fuhrmann@web.de>"]
version = "0.2.0"
version = "0.2.1"

[deps]
ColorSchemes = "35d6a980-a343-548e-a6ea-1d62b119f2f4"
Expand Down
6 changes: 3 additions & 3 deletions src/marching.jl
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ end
Collect isoline snippets on triangles ready for linesegments!
"""
function marching_triangles(coord,cellnodes,func,levels; Tp=SVector{2,Float32})
function marching_triangles(coord,cellnodes,func,levels; Tc=Float32, Tp=SVector{2,Tc})
points=Vector{Tp}(undef,0)
function isect(nodes)
(i1,i2,i3)=(1,2,3)
Expand Down Expand Up @@ -240,8 +240,8 @@ function marching_triangles(coord,cellnodes,func,levels; Tp=SVector{2,Float32})
x2=coord[1,n2]+α*dx32
y2=coord[2,n2]+α*dy32
end
push!(points,(x1,y1))
push!(points,(x2,y2))
push!(points,SVector{2,Tc}((x1,y1)))
push!(points,SVector{2,Tc}((x2,y2)))
end
end
end
Expand Down

2 comments on commit 5225576

@j-fu
Copy link
Member Author

@j-fu j-fu commented on 5225576 Dec 5, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/73490

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.2.1 -m "<description of version>" 52255760273af49da3963a58d0af1d583b5efba4
git push origin v0.2.1

Please sign in to comment.