Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: Stokes topology optimization example (ROL) throwing an error in firedrake.adjoint #3423

Open
diego-hayashi opened this issue Feb 23, 2024 · 0 comments
Assignees
Labels

Comments

@diego-hayashi
Copy link

Describe the bug
The Stokes topology optimization example (ROL) from pyadjoint is throwing an an error in firedrake.adjoint.

Steps to Reproduce
Run the stokes-topology-rol-firedrake.py example from pyadjoint.

Expected behavior
It was supposed to run fine. At least the FEniCS 2019.1.0 version of this same code works fine.

Error message
The traceback is the following:

Traceback (most recent call last):
  File "stokes-topology-rol-firedrake.py", line 130, in <module>
    rho_opt = solver.solve()
              ^^^^^^^^^^^^^^
  File "/home/opt/firedrake/src/pyadjoint/pyadjoint/tape.py", line 111, in wrapper
    return function(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/opt/firedrake/src/pyadjoint/pyadjoint/optimization/rol_solver.py", line 240, in solve
    self.solver.solve()
  File "/home/opt/firedrake/src/pyadjoint/pyadjoint/optimization/rol_solver.py", line 126, in applyAdjointJacobian
    self.con.jacobian_adjoint_action(x.dat, v.dat, jv.dat[0])
  File "/home/opt/firedrake/src/pyadjoint/pyadjoint/optimization/constraints.py", line 95, in jacobian_adjoint_action
    c.jacobian_adjoint_action(m, dp[i], tmp)
  File "/home/opt/firedrake/src/firedrake/firedrake/adjoint/ufl_constraints.py", line 102, in jacobian_adjoint_action
    raise NotImplementedError("Do I need to untangle all controls?")
NotImplementedError: Do I need to untangle all controls?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants