Skip to content

Commit c73b28f

Browse files
authored
Use extract_unique domain (#291)
* Use extract_unique domain * Add build requirements install * Add pytest installation * Add all ci deps * Remove another deprecated call * Yet another deprecated call
1 parent 72a1bfa commit c73b28f

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

.github/workflows/fenicsx-tests.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ jobs:
8383
cmake -G Ninja -DCMAKE_BUILD_TYPE=Developer -B build -S dolfinx/cpp/
8484
cmake --build build
8585
cmake --install build
86-
python3 -m pip -v install --break-system-packages --no-build-isolation --check-build-dependencies --config-settings=cmake.build-type="Developer" dolfinx/python/
86+
python3 -m pip install --break-system-packages -r dolfinx/python/build-requirements.txt
87+
python3 -m pip -v install --break-system-packages --no-build-isolation --check-build-dependencies --config-settings=cmake.build-type="Developer" dolfinx/python/[ci]
8788
- name: Run DOLFINx unit tests
8889
run: python3 -m pytest -n auto dolfinx/python/test/unit

ufl/pullback.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ def apply(self, expr):
356356
357357
Returns: The function pulled back to the reference cell
358358
"""
359-
domain = expr.ufl_domain()
359+
domain = extract_unique_domain(expr)
360360
space = FunctionSpace(domain, self._element)
361361
rflat = [expr[idx] for idx in np.ndindex(expr.ufl_shape)]
362362
g_components = []
@@ -435,7 +435,7 @@ def apply(self, expr):
435435
436436
Returns: The function pulled back to the reference cell
437437
"""
438-
domain = expr.ufl_domain()
438+
domain = extract_unique_domain(expr)
439439
space = FunctionSpace(domain, self._element)
440440
rflat = [expr[idx] for idx in np.ndindex(expr.ufl_shape)]
441441
g_components = []

ufl/split_functions.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#
88
# Modified by Anders Logg, 2008
99

10+
from ufl.domain import extract_unique_domain
1011
from ufl.functionspace import FunctionSpace
1112
from ufl.indexed import Indexed
1213
from ufl.permutation import compute_indices
@@ -21,7 +22,7 @@ def split(v):
2122
If v is a Coefficient or Argument in a mixed space, returns a tuple
2223
with the function components corresponding to the subelements.
2324
"""
24-
domain = v.ufl_domain()
25+
domain = extract_unique_domain(v)
2526

2627
# Default range is all of v
2728
begin = 0

0 commit comments

Comments
 (0)