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
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ repos:

- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: 'v0.14.14'
rev: 'v0.15.0'
hooks:
# Run the linter.
- id: ruff
Expand Down
6 changes: 2 additions & 4 deletions src/scifem/mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,8 @@ def create_entity_markers(
num_entities_local = e_map.size_local + e_map.num_ghosts
markers = np.full(num_entities_local, -1, dtype=np.int32)

locate_entities = (
lambda on_boundary: dolfinx.mesh.locate_entities_boundary
if on_boundary
else dolfinx.mesh.locate_entities
locate_entities = lambda on_boundary: (
dolfinx.mesh.locate_entities_boundary if on_boundary else dolfinx.mesh.locate_entities
)

# Concatenate and sort the arrays based on indices
Expand Down
Loading