Skip to content

Consistency of input arguments to LinearProblem - #3849

Merged
jorgensd merged 4 commits into
mainfrom
dokken/linearproblem-consistency
Aug 15, 2025
Merged

Consistency of input arguments to LinearProblem#3849
jorgensd merged 4 commits into
mainfrom
dokken/linearproblem-consistency

Conversation

@jorgensd

Copy link
Copy Markdown
Member

As pointed out in #3848
there are some inconsistencies in LinearProblem and create_vector.

According to the documentation, create_vector should create a dolfinx-blocked vector if kind is None. This was currently not the case.

Similarly, this means that the default behavior of LinearProblem should reflect this, and kind=None gives you the DOLFINx blocked system.

Finally, default bcs=None was not correctly handled.

@jorgensd jorgensd linked an issue Aug 14, 2025 that may be closed by this pull request
Comment thread python/dolfinx/fem/petsc.py Outdated
Comment thread python/dolfinx/fem/petsc.py Outdated
@jorgensd
jorgensd enabled auto-merge August 15, 2025 16:50
@jorgensd
jorgensd added this pull request to the merge queue Aug 15, 2025
Merged via the queue into main with commit 8dade20 Aug 15, 2025
29 of 30 checks passed
@jorgensd
jorgensd deleted the dokken/linearproblem-consistency branch August 15, 2025 17:41
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.

Blocked linear solver default arguments are not accepted

2 participants