Skip to content

Simplify input to non-linear problem - #3751

Merged
jorgensd merged 5 commits into
mainfrom
dokken/simplify-nls
Jun 16, 2025
Merged

Simplify input to non-linear problem#3751
jorgensd merged 5 commits into
mainfrom
dokken/simplify-nls

Conversation

@jorgensd

Copy link
Copy Markdown
Member

The matrix kind should determine what the vector kind should be.
The naming of inputs are now consistent with dolfinx.fem.petsc.LinearProblem (#3684)

Use interface to solve Cahn-Hilliard problem (resolves #3749)

…ermine what the vector kind should be.

use interface to solve Cahn-Hilliard problem
@jorgensd
jorgensd requested a review from jhale June 16, 2025 06:43
Comment thread python/demo/demo_cahn-hilliard.py Outdated
Comment thread python/demo/demo_cahn-hilliard.py
@jhale

jhale commented Jun 16, 2025

Copy link
Copy Markdown
Member

Looks good - two small comments then it can be merged.

@jorgensd
jorgensd requested a review from jhale June 16, 2025 09:01
@jorgensd

Copy link
Copy Markdown
Member Author

Looks good - two small comments then it can be merged.

Added a reply wrt to convergence checks. Do you want this specified in the demo, or is it sufficient that PETSc documents it?

@jorgensd
jorgensd requested a review from garth-wells June 16, 2025 09:02
@jorgensd
jorgensd enabled auto-merge June 16, 2025 09:37
@jorgensd
jorgensd added this pull request to the merge queue Jun 16, 2025
Merged via the queue into main with commit a5bcfc5 Jun 16, 2025
@jorgensd
jorgensd deleted the dokken/simplify-nls branch June 16, 2025 10:11
ordinary-slim pushed a commit to ordinary-slim/dolfinx that referenced this pull request Jul 6, 2025
* Simplify kind input to non-linear problem. The matrix kind should determine what the vector kind should be.
use interface to solve Cahn-Hilliard problem

* Remove features we do not show any  more

* Simplify fallback

* Document incremental convergence.
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.

Port Cahn-Hilliard demo to NonlinearProblem class

2 participants