unsupported operand type(s) for +: 'int' and 'TimeForm'

Bug #1185401 reported by Martin Sandve Alnæs
6
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'

Revision history for this message
Patrick Farrell (pefarrell) wrote :

Thanks for the suggestion, fixed in r679.

Changed in dolfin-adjoint:
status: New → Fix Committed
importance: Undecided → Wishlist
assignee: nobody → Patrick Farrell (pefarrell)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.