Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,14 @@ jobs:
image: python:3.14.3-slim-trixie
steps:
# Git LFS requires git
- name: Install Git LFS
shell: bash
run: |
apt-get update
apt-get install -y --no-install-recommends git git-lfs
# - name: Install Git LFS
# shell: bash
# run: |
# apt-get update
# apt-get install -y --no-install-recommends git git-lfs
- uses: actions/checkout@v6
with:
lfs: true
# with: Reduce Git LFS bandwidth
# lfs: true
- uses: ./.github/actions/setup
# with:
# minimal: 'false'
Expand Down Expand Up @@ -235,17 +235,17 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
steps:
# Git LFS requires git
- name: Install Git LFS
shell: bash
run: |
dnf update -y
dnf install -y git-lfs
# - name: Install Git LFS
# shell: bash
# run: |
# dnf update -y
# dnf install -y git-lfs
# - uses: actions/setup-node@v6
# with:
# node-version: 'latest'
- uses: actions/checkout@v6
with:
lfs: true
# with: Reduce Git LFS bandwidth
# lfs: true
- uses: ./.github/actions/setup
with:
coverage: 'true'
Expand Down
6 changes: 5 additions & 1 deletion pyhope/mesh/transform/mesh_transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
# ----------------------------------------------------------------------------------------------------------------------------------
from __future__ import annotations
from typing import Final
from typing import cast
# ----------------------------------------------------------------------------------------------------------------------------------
# Third-party libraries
# ----------------------------------------------------------------------------------------------------------------------------------
Expand Down Expand Up @@ -91,6 +92,9 @@ def CalcStretching(nZones: int, zone: int, nElems: npt.NDArray, lEdges: npt.NDAr
handler = stretchingHandlers.get(stretchingType)
progFac, l0, dx = handler() if handler else (np.array(()), np.array(()), np.array(()))

if progFac is None or l0 is None or dx is None:
hopout.error(f'Missing parameter {[s for s in (progFac, l0, dx) if s is None]}, exiting...')

if stretchingType == 'combination':
for iDim in range(3):
if np.isclose(progFac[iDim], 0., atol=mesh_vars.tolInternal):
Expand Down Expand Up @@ -146,7 +150,7 @@ def CalcStretching(nZones: int, zone: int, nElems: npt.NDArray, lEdges: npt.NDAr
hopout.error('Stretching factor = 0 is invalid, exiting...')

# Return stretching factor
return progFac
return cast(np.ndarray, progFac)


def TransformMesh() -> None:
Expand Down
Loading