Skip to content

Commit

Permalink
cell check is needed, basix branch
Browse files Browse the repository at this point in the history
  • Loading branch information
mscroggs committed Sep 20, 2023
1 parent ef2427a commit 9e5884c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/fenicsx-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- name: Install Basix
run: |
python3 -m pip install git+https://github.com/FEniCS/basix.git
python3 -m pip install git+https://github.com/FEniCS/basix.git@mscroggs/irreducibleint
- name: Clone FFCx
uses: actions/checkout@v3
Expand Down Expand Up @@ -78,7 +78,7 @@ jobs:
- name: Install Basix and FFCx
run: |
python3 -m pip install git+https://github.com/FEniCS/basix.git
python3 -m pip install git+https://github.com/FEniCS/basix.git@mscroggs/irreducibleint
python3 -m pip install git+https://github.com/FEniCS/ffcx.git
- name: Clone DOLFINx
Expand Down
4 changes: 1 addition & 3 deletions ufl/algorithms/estimate_degrees.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,7 @@ def _reduce_degree(self, v, f):
are taken. Does not reduce the degree when TensorProduct elements
or quadrilateral elements are involved.
"""
# This cell check might be needed here. If all tests pass, remove this comment before merging (!)
# if isinstance(f, int) and v.ufl_domain().ufl_cell().cellname() not in ["quadrilateral", "hexahedron"]:
if isinstance(f, int):
if isinstance(f, int) and v.ufl_domain().ufl_cell().cellname() not in ["quadrilateral", "hexahedron"]:
return max(f - 1, 0)
else:
return f
Expand Down

0 comments on commit 9e5884c

Please sign in to comment.