firedrakeproject / firedrake

Firedrake is an automated system for the portable solution of partial differential equations using the finite element method (FEM)
https://firedrakeproject.org
Other
516 stars 160 forks source link

BUG: Spaces compare as equal with their dual #3130

Open jrmaddison opened 1 year ago

jrmaddison commented 1 year ago

Describe the bug Dual spaces compare as equal with associated primal spaces.

Steps to Reproduce

from firedrake import *

mesh = UnitIntervalMesh(10)
V = FunctionSpace(mesh, "Lagrange", 1)
V_star = V.dual()

assert bool(V == V_star)  # Passes

Expected behavior Since the spaces differ, they should not compare as equal.

Error message No error.

Environment: Ubuntu 22.04

nbouziani commented 1 year ago

I have just fixed that in #3214

jrmaddison commented 8 months ago

Reopening for now as the fix is not yet merged.