Designed to illustrate the use of SparseDiffTools
approach in the context of simple finite element cost functions.
- P1 triangular mesh, gradient computation with respect to the mesh points of
$|| u || ^ 2$ where$K(p)u = M(p) \mathbb{1}$ by the adjoint method.
>] add https://github.com/edljk/FemAdjoint.jl
using FemAdjoint
>] test FemAdjoint