Skip to content

Commit 5084428

Browse files
committed
link to adjoint docs
1 parent c1cdc67 commit 5084428

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

demos/shape_optimization/shape_optimization.py.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ choose an initial guess (in this case, a unit disc centred at the origin)::
4040
from firedrake.adjoint import *
4141
mesh = UnitDiskMesh(refinement_level=3)
4242

43-
Then, we start annotating and turn the mesh coordinates into a control variable::
43+
Then, we :ref:`start annotating <adjoint-taping>` and turn the mesh coordinates into a control variable::
4444

4545
continue_annotation()
4646
Q = mesh.coordinates.function_space()

docs/source/adjoint.rst

+2
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,8 @@ The essence of this process is:
159159
derived automatically by applying UFL's :func:`~ufl.derivative`,
160160
:func:`~ufl.adjoint`, and :func:`~ufl.action` operators.
161161

162+
.. _adjoint-taping:
163+
162164
Taping an example calculation
163165
-----------------------------
164166

0 commit comments

Comments
 (0)