Skip to content

Commit

Permalink
speed up searching of elements with a box
Browse files Browse the repository at this point in the history
  • Loading branch information
PetrKryslUCSD committed Apr 11, 2024
1 parent ba712aa commit 56c95e7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 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.13"
version = "8.0.14"

[deps]
ChunkSplitters = "ae650224-84b6-46f8-82ea-d812ca08434e"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ The package supports application packages, for instance:

## News


- 04/11/2024: Speed up box selection of elements.
- 03/21/2024: Implement element coloring.
- 03/12/2024: Move parallel functionality to FinEtoolsMultithreading.
- 02/19/2024: Implement mesh reordering.
Expand Down
4 changes: 3 additions & 1 deletion src/MeshSelectionModule.jl
Original file line number Diff line number Diff line change
Expand Up @@ -512,11 +512,13 @@ function selectelem(fens::FENodeSet, fes::ET; kwargs...) where {ET<:AbstractFESe
allinvalue = (allin === nothing) || ((allin !== nothing) && (allin))
# Select elements whose nodes are in the selected node list
nodelist = selectnode(fens; kwargs...)
node_selected = fill(false, count(fens))
node_selected[nodelist] .= true
nper = nodesperelem(fes)
for i in eachindex(fes.conn)
found = 0
for nd in fes.conn[i]
if nd in nodelist
if node_selected[nd]
found = found + 1
end
end
Expand Down

2 comments on commit 56c95e7

@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/104733

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.14 -m "<description of version>" 56c95e762f7dbe93b335fd3c07459f5749813ad3
git push origin v8.0.14

Also, note the warning: Version 8.0.14 skips over 8.0.13
This can be safely ignored. However, if you want to fix this you can do so. Call register() again after making the fix. This will update the Pull request.

Please sign in to comment.