Skip to content

Recent changes to Forms? #4196

Apr 3, 2025 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

This does look like it is due to the changes in #3947, specifically the changes from #3922 that were also merged in that PR.
The tensor argument to assemble now must be a Cofunction, whereas previously it was allowed to be a Function for backwards compatibility with pre-Cofunction code.

You can see that (what I assume is) the equivalent argument in firedrake.SCPC is now a Cofunction:

self.condensed_rhs = Cofunction(Vc.dual())

The default behaviour for dealing with boundary conditions was also changed in that PR - boundary conditions are assumed to already be enforced on the solution and the residual…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@lindsayad
Comment options

@JHopeCollins
Comment options

Answer selected by lindsayad
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants