Skip to content

Commit

Permalink
Use extract_unique domain (#291)
Browse files Browse the repository at this point in the history
* Use extract_unique domain

* Add build requirements install

* Add pytest installation

* Add all ci deps

* Remove another deprecated call

* Yet another deprecated call
  • Loading branch information
jorgensd authored May 29, 2024
1 parent 72a1bfa commit c73b28f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/fenicsx-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ jobs:
cmake -G Ninja -DCMAKE_BUILD_TYPE=Developer -B build -S dolfinx/cpp/
cmake --build build
cmake --install build
python3 -m pip -v install --break-system-packages --no-build-isolation --check-build-dependencies --config-settings=cmake.build-type="Developer" dolfinx/python/
python3 -m pip install --break-system-packages -r dolfinx/python/build-requirements.txt
python3 -m pip -v install --break-system-packages --no-build-isolation --check-build-dependencies --config-settings=cmake.build-type="Developer" dolfinx/python/[ci]
- name: Run DOLFINx unit tests
run: python3 -m pytest -n auto dolfinx/python/test/unit
4 changes: 2 additions & 2 deletions ufl/pullback.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ def apply(self, expr):
Returns: The function pulled back to the reference cell
"""
domain = expr.ufl_domain()
domain = extract_unique_domain(expr)
space = FunctionSpace(domain, self._element)
rflat = [expr[idx] for idx in np.ndindex(expr.ufl_shape)]
g_components = []
Expand Down Expand Up @@ -435,7 +435,7 @@ def apply(self, expr):
Returns: The function pulled back to the reference cell
"""
domain = expr.ufl_domain()
domain = extract_unique_domain(expr)
space = FunctionSpace(domain, self._element)
rflat = [expr[idx] for idx in np.ndindex(expr.ufl_shape)]
g_components = []
Expand Down
3 changes: 2 additions & 1 deletion ufl/split_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#
# Modified by Anders Logg, 2008

from ufl.domain import extract_unique_domain
from ufl.functionspace import FunctionSpace
from ufl.indexed import Indexed
from ufl.permutation import compute_indices
Expand All @@ -21,7 +22,7 @@ def split(v):
If v is a Coefficient or Argument in a mixed space, returns a tuple
with the function components corresponding to the subelements.
"""
domain = v.ufl_domain()
domain = extract_unique_domain(v)

# Default range is all of v
begin = 0
Expand Down

0 comments on commit c73b28f

Please sign in to comment.