Skip to content

Update adjoint documentation.#4168

Merged
dham merged 2 commits intomasterfrom
adjoint_notebooks
Apr 2, 2025
Merged

Update adjoint documentation.#4168
dham merged 2 commits intomasterfrom
adjoint_notebooks

Conversation

@dham
Copy link
Member

@dham dham commented Mar 28, 2025

Introduce documentation in the manual for adjoint solves. Known limitations:

  • no TLM or Hessian, I will come back to this in the future.
  • no mention of Riesz maps. I am deliberately ducking this until we fix it in May/June.

This sits on top of #4173 so there is a lot of website stuff in the diff. That will vanish presently. adjoint.rst is the guts of this PR.

@dham dham marked this pull request as draft March 28, 2025 11:13
@dham dham marked this pull request as ready for review March 31, 2025 11:50
Comment on lines +87 to +95
\frac{\mathrm{d}\hat{J}}{\mathrm{d}m}: M\rightarrow \mathbb{R}

\frac{\partial J}{\partial u}: V\rightarrow \mathbb{R}

\frac{\partial f}{\partial u}: V \times V \rightarrow \mathbb{R}

\frac{\partial f}{\partial m}: V \times M \rightarrow \mathbb{R}

\frac{\partial J}{\partial m}: M\rightarrow \mathbb{R}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Depends on definitions. Probably fine here to avoid too much technicality.

mesh = UnitIntervalMesh(n)
end = 0.3
timestep = Constant(1.0/n)
steps = int(end/float(timestep)) + 1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Usually better to avoid computing ints from floats

@dham dham force-pushed the adjoint_notebooks branch from 717eda0 to 8d51600 Compare April 2, 2025 11:09
@dham dham merged commit 5f4a387 into master Apr 2, 2025
13 checks passed
@dham dham deleted the adjoint_notebooks branch April 2, 2025 16:04
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.

2 participants