Closed
Description
We have the NotImplementedError: Automatic differentiation is not supported for this operation.
for the operation Cofunction.assign()
Steps to reproduce:
from firedrake import *
from firedrake.adjoint import *
continue_annotation()
mesh = UnitSquareMesh(2, 2)
V = FunctionSpace(mesh, "CG", 1)
f = Cofunction(V.dual())
f.assign(Constant(1.0))
Question:
Is that expected? What is the main issue with having the automatic differentiation working for Cofunction.assign()
operation?