Skip to content

Commit

Permalink
propagate labels
Browse files Browse the repository at this point in the history
  • Loading branch information
PetrKryslUCSD committed Jun 19, 2024
1 parent d551cc7 commit 1902c7c
Show file tree
Hide file tree
Showing 3 changed files with 6 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 = "FinEtools"
uuid = "91bb5406-6c9a-523d-811d-0644c4229550"
authors = ["Petr Krysl <[email protected]>"]
version = "8.0.24"
version = "8.0.25"

[deps]
DataDrop = "aa547a04-dd37-49ab-8e73-656744f8a8fc"
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

- 06/17/2024: Propagate labels of extruded triangles.
- 06/19/2024: Propagate labels of extruded quadrilaterals and triangles.
- 05/19/2024: Make it possible to have different kinds of degrees of freedom.
- 04/19/2024: Replace asserts with errors.
- 04/11/2024: Speed up box selection of elements.
Expand Down
6 changes: 4 additions & 2 deletions src/MeshHexahedronModule.jl
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,7 @@ function _doextrude(fens, fes::FESetQ4, nLayers, extrusionh)
nn1 = count(fens)
nnt = nn1 * nLayers
ngc = count(fes) * nLayers
labels = zeros(Int, ngc)
conn = connasarray(fes)
hconn = zeros(eltype(conn), ngc, 8)
xyz = zeros(eltype(fens.xyz), nn1 * (nLayers + 1), 3)
Expand All @@ -407,12 +408,13 @@ function _doextrude(fens, fes::FESetQ4, nLayers, extrusionh)
gc = 1
for k = 1:nLayers
for i in eachindex(fes)
hconn[gc, :] =
[broadcast(+, conn[i, :], (k - 1) * nn1) broadcast(+, conn[i, :], k * nn1)]
hconn[gc, :] = [broadcast(+, conn[i, :], (k - 1) * nn1) broadcast(+, conn[i, :], k * nn1)]
labels[gc] = fes.label[i]
gc = gc + 1
end
end
efes = FESetH8(hconn)
setlabel!(efes, labels)
efens = FENodeSet(xyz)
return efens, efes
end
Expand Down

2 comments on commit 1902c7c

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

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.25 -m "<description of version>" 1902c7cbb9c0b59965eab73ad6404c548da72bcd
git push origin v8.0.25

Please sign in to comment.