Skip to content

Conversation

jrmaddison
Copy link
Contributor

Fixes which allow Cofunction controls to be used in some configurations.

tao_type_nls is xfailed as this leads to an obscure error within UFL.

@jrmaddison jrmaddison force-pushed the jrmaddison/cofunction_controls branch from 84efd8b to 4d482b8 Compare September 23, 2025 18:46
Comment on lines 345 to 347
def _ad_init_object(cls, obj):
from firedrake import Cofunction
return Cofunction(cls.function_space()).assign(obj)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why cls and not self here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, and should be a classmethod

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants