Skip to content

Mypy fixes - #82

Merged
jorgensd merged 22 commits into
mainfrom
mypy
Sep 2, 2026
Merged

Mypy fixes#82
jorgensd merged 22 commits into
mainfrom
mypy

Conversation

@jorgensd

@jorgensd jorgensd commented Sep 1, 2026

Copy link
Copy Markdown
Member

Test-fixes

  • Split snes and ksp options to avoid warnings
  • Reduce tolerance for nonlinear problem, as done in Topology optimization example #81
  • Make perturbations physically correct in blocked solver (positive mu, non-divergence free f).

Bug-fixes

Use correct output type from re-computation (dolfinx_adjoint.Function rather than dolfinx.fem.Function). This means no usage of dolfinx.fem.Function.copy())

@jorgensd
jorgensd merged commit 2791859 into main Sep 2, 2026
6 checks passed
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.

1 participant