Skip to content

Commit

Permalink
Fix set_solid_shell_thickness_direction
Browse files Browse the repository at this point in the history
  • Loading branch information
isteinbrecher committed Dec 16, 2024
1 parent 669b32e commit 9692a95
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions meshpy/four_c/solid_shell_thickness_direction.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,10 +207,8 @@ def set_solid_shell_thickness_direction(
for element in elements:
is_hex8 = isinstance(element, VolumeHEX8)
if is_hex8:
is_solid_shell = (
hasattr(element, "dat_pre_nodes")
and "SOLIDSH8" in element.dat_pre_nodes
)
is_solid_shell = "SOLIDSH8" in element.dat_pre_nodes # type: ignore[attr-defined]

if is_solid_shell:
# Get the element center and the Jacobian at the center
(
Expand Down

0 comments on commit 9692a95

Please sign in to comment.