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

Generalize bounds of bc for arbitrary partitioning in test_assembly_domains.py #3118

Merged
merged 2 commits into from
Apr 2, 2024

Conversation

jorgensd
Copy link
Sponsor Member

@jorgensd jorgensd commented Apr 2, 2024

Resolves #3117

@@ -89,7 +89,7 @@ def test_assembly_dx_domains(mode, meshtags_factory):
A2.scatter_reverse()
assert np.allclose(A.data, A2.data)

bc = dirichletbc(Function(V), np.arange(30))
bc = dirichletbc(Function(V), np.arange(V.dofmap.index_map.size_local // 2, dtype=np.int32))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Any reason for this over locating the DOFs on part of the boundary?

Copy link
Sponsor Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure why this was the original design (introduced in #1177). I guess it was added to cover the original reported issue (#1110)

@jorgensd jorgensd added this pull request to the merge queue Apr 2, 2024
Merged via the queue into main with commit f55ca1a Apr 2, 2024
19 checks passed
@jorgensd jorgensd deleted the dokken/generalize_assembly_bcs branch April 2, 2024 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG]: test_assemble_domains segfaults on 6 processes
3 participants