Skip to content
Merged
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
14 changes: 7 additions & 7 deletions .github/workflows/ngsPETSc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:

steps:
- name: Check out repository code
uses: actions/checkout@v4
uses: actions/checkout@v7

- name: Install ngsPETSc
run: |
Expand All @@ -47,7 +47,7 @@ jobs:
timeout-minutes: 30

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7
with:
# Download ngsPETSc into a subdirectory not called 'ngsPETSc' to make sure
# that the package installs correctly. Otherwise 'import ngsPETSc' may
Expand Down Expand Up @@ -109,7 +109,7 @@ jobs:
find . -delete
firedrake-clean

- uses: actions/checkout@v4
- uses: actions/checkout@v7
with:
# Download ngsPETSc into a subdirectory not called 'ngsPETSc' to make sure
# that the package installs correctly. Otherwise 'import ngsPETSc' may
Expand Down Expand Up @@ -163,7 +163,7 @@ jobs:
find . -delete
firedrake-clean

- uses: actions/checkout@v4
- uses: actions/checkout@v7
with:
# Download ngsPETSc into a subdirectory not called 'ngsPETSc' to make sure
# that the package installs correctly. Otherwise 'import ngsPETSc' may
Expand Down Expand Up @@ -212,7 +212,7 @@ jobs:

- name: Install Netgen and ngsPETSc
run: |
python3 -m pip install --no-build-isolation pytest poetry
python3 -m pip install --no-build-isolation pytest poetry-core poetry-dynamic-versioning
python3 -m pip install . --check-build-dependencies --no-build-isolation

- name: Run tests (serial)
Expand All @@ -231,11 +231,11 @@ jobs:
timeout-minutes: 5
steps:
- name: Check out repository code
uses: actions/checkout@v5
uses: actions/checkout@v7

- name: Install Netgen and ngsPETSc
run: |
python3 -m pip install --no-build-isolation pytest poetry
python3 -m pip install --no-build-isolation pytest poetry-core poetry-dynamic-versioning
python3 -m pip install . --check-build-dependencies --no-build-isolation

- name: Run tests (serial)
Expand Down
28 changes: 19 additions & 9 deletions ngsPETSc/utils/fenicsx.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,15 +266,25 @@ def extract_linear_mesh(
]
T = [Ti.flatten().copy() for Ti in T]
V = V[:, :gdim].copy()

cpp_mesh = dolfinx.cpp.mesh.create_mesh(
self.comm,
T,
c_els,
V,
partitioner,
2 # Maximum number of cells connected to any facet
)
try:
cpp_mesh = dolfinx.cpp.mesh.create_mesh(
self.comm,
T,
c_els,
V,
partitioner,
2 # Maximum number of cells connected to any facet
)
except TypeError:
cpp_mesh = dolfinx.cpp.mesh.create_mesh(
self.comm,
T,
c_els,
V,
partitioner,
2, # Maximum number of cells connected to any facet,
1 # Number of threads used in entity permutation creation
)
# Wrap as Python object
mesh = dolfinx.mesh.Mesh(cpp_mesh, domain=None)

Expand Down
Loading