unsupported operand type(s) for +: 'int' and 'TimeForm'
Bug #1185401 reported by
Martin Sandve Alnæs
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dolfin-adjoint |
Fix Committed
|
Wishlist
|
Patrick Farrell |
Bug Description
TimeForm should implement + with int 0 to allow sums of timeform terms, such as:
Jdist = sum((u - zk)**2*dx()*dt[tk] for tk,zk in z)
TypeError: unsupported operand type(s) for +: 'int' and 'TimeForm'
To post a comment you must log in.
Thanks for the suggestion, fixed in r679.