Skip to content

Automatic differentiation is not supported for Cofunction.assign #3464

Closed
@Ig-dolci

Description

@Ig-dolci

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?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions