Skip to content

Commit

Permalink
remove threaded vector initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
PetrKryslUCSD committed Mar 15, 2024
1 parent 3c1de7c commit 50cbb92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "FinEtools"
uuid = "91bb5406-6c9a-523d-811d-0644c4229550"
authors = ["Petr Krysl <pkrysl@ucsd.edu>"]
version = "8.0.5"
version = "8.0.6"

[deps]
ChunkSplitters = "ae650224-84b6-46f8-82ea-d812ca08434e"
Expand Down
6 changes: 1 addition & 5 deletions src/MatrixUtilityModule.jl
Original file line number Diff line number Diff line change
Expand Up @@ -842,13 +842,9 @@ end
setvectorentries!(a, v = zero(eltype(a)))
Set entries of a long vector to a given constant.
The operation runs in parallel on as many threads as are available.
"""
function setvectorentries!(a, v = zero(eltype(a)))
@inbounds Threads.@threads for k in eachindex(a)
a[k] = v
end
a .= v
a
end

Expand Down

2 comments on commit 50cbb92

@PetrKryslUCSD
Copy link
Owner Author

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/102902

Tip: Release Notes

Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.

@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.

Tagging

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 v8.0.6 -m "<description of version>" 50cbb92e9463caa8a1d5ad68cb0f6fe30bb77464
git push origin v8.0.6

Please sign in to comment.