Skip to content

Commit 1902c7c

Browse files
committed
propagate labels
1 parent d551cc7 commit 1902c7c

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-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 = "FinEtools"
22
uuid = "91bb5406-6c9a-523d-811d-0644c4229550"
33
authors = ["Petr Krysl <pkrysl@ucsd.edu>"]
4-
version = "8.0.24"
4+
version = "8.0.25"
55

66
[deps]
77
DataDrop = "aa547a04-dd37-49ab-8e73-656744f8a8fc"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ The package supports application packages, for instance:
2525

2626
## News
2727

28-
- 06/17/2024: Propagate labels of extruded triangles.
28+
- 06/19/2024: Propagate labels of extruded quadrilaterals and triangles.
2929
- 05/19/2024: Make it possible to have different kinds of degrees of freedom.
3030
- 04/19/2024: Replace asserts with errors.
3131
- 04/11/2024: Speed up box selection of elements.

src/MeshHexahedronModule.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,7 @@ function _doextrude(fens, fes::FESetQ4, nLayers, extrusionh)
391391
nn1 = count(fens)
392392
nnt = nn1 * nLayers
393393
ngc = count(fes) * nLayers
394+
labels = zeros(Int, ngc)
394395
conn = connasarray(fes)
395396
hconn = zeros(eltype(conn), ngc, 8)
396397
xyz = zeros(eltype(fens.xyz), nn1 * (nLayers + 1), 3)
@@ -407,12 +408,13 @@ function _doextrude(fens, fes::FESetQ4, nLayers, extrusionh)
407408
gc = 1
408409
for k = 1:nLayers
409410
for i in eachindex(fes)
410-
hconn[gc, :] =
411-
[broadcast(+, conn[i, :], (k - 1) * nn1) broadcast(+, conn[i, :], k * nn1)]
411+
hconn[gc, :] = [broadcast(+, conn[i, :], (k - 1) * nn1) broadcast(+, conn[i, :], k * nn1)]
412+
labels[gc] = fes.label[i]
412413
gc = gc + 1
413414
end
414415
end
415416
efes = FESetH8(hconn)
417+
setlabel!(efes, labels)
416418
efens = FENodeSet(xyz)
417419
return efens, efes
418420
end

0 commit comments

Comments
 (0)