Installing pyadjoint

dolfin-adjoint

To use dolfin-adjoint with FEniCS, consult the dolfin-adjoint documentation.

Firedrake

Pyadjoint is automatically installed in Firedrake. No separate installation is required.

PIP (all platforms)

Install dolfin-adjoint and its Python dependencies with pip:

pip install git+https://github.com/dolfin-adjoint/pyadjoint.git

Test your installation by running:

python3 -c "import fenics_adjoint"

Optional dependencies:

Source code

The source code of pyadjoint is available on https://github.com/dolfin-adjoint/pyadjoint.