From a23590b18b33380fe95669b18e62eaa84151d0f4 Mon Sep 17 00:00:00 2001 From: Henrik Finsberg Date: Sun, 26 Jul 2026 17:11:55 +0200 Subject: [PATCH 1/2] Add conda installation instructions --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index c67b22d..3ea8b0b 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,14 @@ The main way to install the package is via pip: python3 -m pip install dolfinx-adjoint ``` +### via conda + +You can also install dolfinx-adjoint via conda which also comes with **DOLFINx** + +```bash +conda install -c conda-forge dolfinx-adjoint +``` + ### Development Install To install the latest development version directly from the repository, use: From affd102fe8788149df57f164253f9e7bfca25b2b Mon Sep 17 00:00:00 2001 From: Henrik Finsberg Date: Mon, 27 Jul 2026 16:02:52 +0200 Subject: [PATCH 2/2] Ruff --- .pre-commit-config.yaml | 4 ++-- README.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 39c107b..13eff70 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,7 +15,7 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: 'v0.15.14' + rev: 'v0.16.0' hooks: # Run the linter. - id: ruff @@ -24,7 +24,7 @@ repos: - id: ruff-format - repo: https://github.com/pre-commit/mirrors-mypy - rev: v2.1.0 + rev: v2.3.0 hooks: - id: mypy files: ^src/|^tests/ diff --git a/README.md b/README.md index 3ea8b0b..b5e08ce 100644 --- a/README.md +++ b/README.md @@ -72,7 +72,7 @@ V = dolfinx.fem.functionspace(mesh, ("Lagrange", 1)) # Use dolfinx_adjoint overloaded types # This ensures operations are tracked on the pyadjoint tape! f = dolfinx_adjoint.Function(V, name="Control") -f.interpolate(lambda x: x[0] + x[1]) # Initial guess for control +f.interpolate(lambda x: x[0] + x[1]) # Initial guess for control uh = dolfinx_adjoint.Function(V, name="State") # Define UFL forms for a simple Poisson problem: - \Delta u = f