Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: test_assemble_domains segfaults on 6 processes #3117

Closed
jpdean opened this issue Apr 1, 2024 · 2 comments · Fixed by #3118
Closed

[BUG]: test_assemble_domains segfaults on 6 processes #3117

jpdean opened this issue Apr 1, 2024 · 2 comments · Fixed by #3118
Labels
bug Something isn't working

Comments

@jpdean
Copy link
Member

jpdean commented Apr 1, 2024

Summarize the issue

test_assemble_domains fails with segfault on 6 processes

How to reproduce the bug

mpirun -n 6 python3 -m pytest test_assemble_domains.py

Minimal Example (Python)

No response

Output (Python)

No response

Version

main branch

DOLFINx git commit

No response

Installation

No response

Additional information

No response

@jpdean jpdean added the bug Something isn't working label Apr 1, 2024
@jorgensd
Copy link
Sponsor Member

jorgensd commented Apr 2, 2024

Traceback is:

test_assemble_domains.py::test_assembly_dx_domains[meshtags-none] python3: /usr/local/dolfinx-real64/include/dolfinx/fem/DirichletBC.h:593: void dolfinx::fem::DirichletBC<T, U>::mark_dofs(std::span<signed char>) const [with T = double; U = double]: Assertion `_dofs0[i] < (std::int32_t)markers.size()' failed.
Fatal Python error: Aborted

@jorgensd
Copy link
Sponsor Member

jorgensd commented Apr 2, 2024

This makes sense, as the test uses:

    bc = dirichletbc(Function(V), np.arange(30))

which I guess is out of range on 6 processes.
How about using
np.arange(V.dofmap.index_map.size_local // 2, dtype=np.int32)?

github-merge-queue bot pushed a commit that referenced this issue Apr 2, 2024
…domains.py` (#3118)

* Generalize bounds of bc for arbitrary partitioning. Resolves #3117

* Ruff formatting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants