Skip to content

ReducedFunctional.derivative_cb_pre and ReducedFunctional.derivative_cb_post are overwritten if derivative_components is passed #168

Description

@miguelcoolchips

I was looking at this part of the code in ReducedFunctional

https://github.com/dolfin-adjoint/pyadjoint/blob/master/pyadjoint/reduced_functional.py#L91-L97

and I saw that if the user passes a derivative_cb_post and a derivative_components to the constructor, the former gets overwritten. Is this the intended behavior?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions