- edited description
subspaces are recreated on every .sub() call
Issue #206
resolved
Subspaces are recreated everytime they are requested.
MWE:
from dolfin import *
mesh = UnitSquareMesh(20, 20)
V = FunctionSpace(mesh, 'CG', 1)
W = V*V
print V.id(), W.sub(0).id(), W.sub(0).id()
On my computer, this gives
3 6 9
This issue is similar to #197.
Comments (5)
-
reporter -
reporter - edited description
-
- changed status to resolved
Fix issue 206.
→ <<cset c3345bfc8204>>
-
- changed status to open
Fix in pull request #167. Nevertheless, there was nothing harmful.
dolfin::SubSpace
object was constructed every time but those were just pointer intializations. Dofmap was not constructed redundantly. -
- changed status to resolved
Fixed committed in e10fed8
- Log in to comment