Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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/
Expand Down
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -64,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
Expand Down