Skip to content

Commit

Permalink
Fix cofunction equality (#247)
Browse files Browse the repository at this point in the history
* Add trimmed serendipity

* Fix value shape for trimmed serendipity

* ufl plumbing update for trimmed serendipity.

* Plumbing for SminusDiv.py

* Adding in element stuff for SminusCurl.

* Fix typo

* remove spurioius names

* Update equality inheritance for Cofunctions

---------

Co-authored-by: Rob Kirby <[email protected]>
Co-authored-by: Justincrum <[email protected]>
Co-authored-by: David A. Ham <[email protected]>
Co-authored-by: ksagiyam <[email protected]>
Co-authored-by: ksagiyam <[email protected]>
Co-authored-by: Connor Ward <[email protected]>
Co-authored-by: Iglesia Dolci <[email protected]>
Co-authored-by: Jack Betteridge <[email protected]>
  • Loading branch information
9 people authored Nov 29, 2023
1 parent 60a1cfc commit 3fc1763
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ufl/coefficient.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ class Cofunction(BaseCoefficient, BaseForm):
_primal = False
_dual = True

__eq__ = BaseForm.__eq__

def __new__(cls, *args, **kw):
"""Create a new Cofunction."""
if args[0] and is_primal(args[0]):
Expand Down

0 comments on commit 3fc1763

Please sign in to comment.